Package elisa :: Package plugins :: Package bad :: Package raval_frontend :: Module elisa_controller :: Class ElisaController
[hide private]
[frames] | no frames]

Class ElisaController

source code


Nested Classes [hide private]

Inherited from core.component.Component: __metaclass__

Instance Methods [hide private]
 
initialize(self)
Initialize various variables internal to the Component.
source code
 
attribute_set(self, origin, key, old_value, new_value)
Called when an attribute of the model to which it is connected changes.
source code
bool
handle_input(self, input_event)
Process an input event.
source code
 
model_changed(self, old_model, new_model)
Called when model is set to a new value.
source code
 
focus(self)
Grab the focus.
source code
 
focused_changed(self, old_focused, new_focused)
Called when focused is set to a new value.
source code

Inherited from base_components.controller.Controller: __init__, backend__get, backend__set, backend_changed, focused__get, focused__set, model__get, model__set, 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__, __repr__, __str__

Static Methods [hide private]

Inherited from core.component.Component: __classinit__

Class Variables [hide private]
tuple of strings supported_models = ('base:elisa_model')
list of models that are compatible with the controller identified by their path: 'plugin:model'
dictionary: keys: strings; values: list of strings or strings bindings = {'dvd_player': 'dvd_player', 'manager': 'manager', ...
associations between model's attribute and Controller's attributes; if an attribute contained in bindings' keys is changed or created in model, it is replicated in all the corresponding attributes of the controller defined in bindings values
dict default_config = {'start_fullscreen': '1'}
used when nothing found in Application's config
dict config_doc = {'start_fullscreen': 'whether or not Elisa should...
documentation for each option of the default configuration.
string name = 'elisa_controller'
Component's name

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

Inherited from extern.log.log.Loggable: logCategory

Instance Variables [hide private]

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]

initialize(self)

source code 

Initialize various variables internal to the Component.

This method is called by the plugin_registry after the component's config has been loaded.

Override this method if you need to perform some initializations that would normally go in Component's constructor but can't be done there because they require access to the component's config.
Overrides: base_components.controller.Controller.initialize

attribute_set(self, origin, key, old_value, new_value)

source code 
Called when an attribute of the model to which it is connected changes.
Overrides: base_components.controller.Controller.attribute_set
(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)

model_changed(self, old_model, new_model)

source code 

Called when model is set to a new value.

Override if you wish to react to that change. Do not forget to call the parent class method.
Overrides: base_components.controller.Controller.model_changed
(inherited documentation)

focus(self)

source code 
Grab the focus. The controller previously owning the focus loses it.
Overrides: base_components.controller.Controller.focus
(inherited documentation)

focused_changed(self, old_focused, new_focused)

source code 

Called when focused is set to a new value.

Override if you wish to react to that change. Do not forget to call the parent class method.
Overrides: base_components.controller.Controller.focused_changed
(inherited documentation)

Class Variable Details [hide private]

bindings

associations between model's attribute and Controller's attributes; if an attribute contained in bindings' keys is changed or created in model, it is replicated in all the corresponding attributes of the controller defined in bindings values
Type:
dictionary: keys: strings; values: list of strings or strings
Value:
{'dvd_player': 'dvd_player',
 'manager': 'manager',
 'player': 'player',
 'slideshow': 'slideshow'}

config_doc

documentation for each option of the default configuration. Keys should be same as the ones in default_config and values should be strings
Type:
dict
Value:
{'start_fullscreen': 'whether or not Elisa should start fullscreen'}