Package elisa :: Package plugins :: Package bad :: Package raval_frontend :: Module list_controller :: Class ListController
[hide private]
[frames] | no frames]

Class ListController

source code


DOCME

Nested Classes [hide private]

Inherited from core.component.Component: __metaclass__

Instance Methods [hide private]
 
__init__(self)
Lazily set name from class name styled with underscores (class ComponentBar -> name component_bar.
source code
 
__repr__(self)
repr(x)
source code
 
activate_item(self, origin) source code
 
next_item(self, step=1) source code
 
previous_item(self, step=1) source code
 
set_current_index(self) source code
bool
handle_input(self, input_event)
Process an input event.
source code
 
inserted(self, elements, position)
Message sent by a ListObservable when new elements are inserted in it.
source code
 
removed(self, elements, position)
Message sent by a ListObservable when elements are removed from it.
source code
 
modified(self, position, value)
Message sent by a ListObservable when one of its elements is modified.
source code
 
dirtied(self)
Message sent by a ListObservable when it is completely changed.
source code
 
element_attribute_set(self, position, key, old_value, new_value)
Message sent by a ListObservable when an attribute of one of its element is changed.
source code

Inherited from base_components.controller.Controller: attribute_set, backend__get, backend__set, backend_changed, focus, focused__get, focused__set, focused_changed, initialize, model__get, model__set, model_changed, parent__get, parent__set

Inherited from core.component.Component: clean, load_config, save_config

Inherited from core.observers.observable.Observable: __setattr__, add_observer, remove_observer

Inherited from extern.log.log.Loggable: debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __str__

Static Methods [hide private]

Inherited from core.component.Component: __classinit__

Class Variables [hide private]
tuple of strings supported_models = ('base:list_model')
list of models that are compatible with the controller identified by their path: 'plugin:model'
  action_called = True
string name = 'list_controller'
Component's name

Inherited from base_components.controller.Controller: bindings

Inherited from core.component.Component: checked, config_doc, default_config, id, plugin

Inherited from extern.log.log.Loggable: logCategory

Instance Variables [hide private]
int current_index
index of the currently selected item in the list

Inherited from base_components.controller.Controller: backend, focused, model, parent

Inherited from core.component.Component: config, path

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Lazily set name from class name styled with underscores (class ComponentBar -> name component_bar. Also set log category based on component name, with a 'comp_' prefix.
Overrides: base_components.controller.Controller.__init__

__repr__(self)
(Representation operator)

source code 
repr(x)
Overrides: object.__repr__
(inherited documentation)

handle_input(self, input_event)

source code 
Process an input event. It can decide that no further processing should be done by returning True or let its parent controller process it by returning False.
Returns: bool
Overrides: base_components.controller.Controller.handle_input
(inherited documentation)

inserted(self, elements, position)

source code 
Message sent by a ListObservable when new elements are inserted in it.
Overrides: core.observers.list.ListObserver.inserted
(inherited documentation)

removed(self, elements, position)

source code 
Message sent by a ListObservable when elements are removed from it.
Overrides: core.observers.list.ListObserver.removed
(inherited documentation)

modified(self, position, value)

source code 
Message sent by a ListObservable when one of its elements is modified.
Overrides: core.observers.list.ListObserver.modified
(inherited documentation)

dirtied(self)

source code 
Message sent by a ListObservable when it is completely changed. For example, this happens after a reverse or a sort.
Overrides: core.observers.list.ListObserver.dirtied
(inherited documentation)

element_attribute_set(self, position, key, old_value, new_value)

source code 
Message sent by a ListObservable when an attribute of one of its element is changed.
Overrides: core.observers.list.ListObserver.element_attribute_set
(inherited documentation)