Package elisa :: Package base_components :: Module model :: Class Model
[hide private]
[frames] | no frames]

Class Model

source code


Holds data that can be rendered by several elisa.base_components.view.Views. It is provided by elisa.base_components.activity.Activity components that fill it with data they would like to be displayed. Models can inherit from each other to include more information and can also be composed of other models to build more complex screens.

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

Inherited from core.component.Component: clean, initialize, 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]
string name = 'model'
Component's name

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

Inherited from extern.log.log.Loggable: logCategory

Instance Variables [hide private]
elisa.base_components.action.Action activate_action
action fired when the Model gets activated
elisa.base_components.activity.Activity activity
reference to the activity which created the Model
boolean loading
True if the model is not yet filled, False otherwise
elisa.base_components.model.Model parent
parent model; None if the model is a root

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: core.component.Component.__init__
(inherited documentation)