Package elisa :: Package plugins :: Package base :: Package activities :: Module menu_activity :: Class MenuActivity
[hide private]
[frames] | no frames]

Class MenuActivity

source code


DOCME

Nested Classes [hide private]

Inherited from core.component.Component: __metaclass__

Instance Methods [hide private]
MenuNodeModel
_create_menu_model(self, text, icon, thumbnail_source='frontend', parent='frontend')
Create a new MenuModel, give it a text and an icon.
source code
 
loadmore(self, model)
Request new menu_models for model.
source code
 
unload(self, model)
Clear the children models of model removing all corresponding references from the activity.
source code
 
set_directory_actions(self, menu_model, uri)
DOCME
source code
elisa.base_components.model.Model
get_model(self)
Return a model filled with the data generated by the activity.
source code
 
_create_activity(self, activity_path) source code

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

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__, __setattr__, __str__

Static Methods [hide private]

Inherited from core.component.Component: __classinit__

Class Variables [hide private]
  menu_name = ''
  menu_icon_name = ''
string name = 'menu_activity'
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]

Inherited from core.component.Component: config, path

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_create_menu_model(self, text, icon, thumbnail_source='frontend', parent='frontend')

source code 

Create a new MenuModel, give it a text and an icon.

This method is just an helper for the developer who don't want to directly use the plugin_registry to create a base:menu_model Component.
Parameters:
  • text (string) - data to store under menu_item.text attribute
  • icon (string) - data to store under menu_item.icon attribute
  • thumbnail_source (elisa.core.media_uri.MediaUri) - data to store under menu_item.thumbnail_source attribute
  • parent (MenuNodeModel) - the parent model
Returns: MenuNodeModel

loadmore(self, model)

source code 
Request new menu_models for model.
Parameters:

unload(self, model)

source code 
Clear the children models of model removing all corresponding references from the activity.
Parameters:

get_model(self)

source code 
Return a model filled with the data generated by the activity.
Returns: elisa.base_components.model.Model
Overrides: base_components.activity.Activity.get_model
(inherited documentation)