cz.cuni.pogamut.shed.presenter
Interface IPresenter

Package class diagram package IPresenter
All Known Implementing Classes:
PrimitivePresenter

public interface IPresenter

Presenter is responsible for presenting some widget in the scene. Its job is to update the widget according to the stuff the widget should reflect. It also provides context menu actions, edit action and accept actions.

Author:
Honza Havlicek

Method Summary
 AbstractAcceptAction[] getAcceptProviders()
          Get array of accept providers of this
 org.netbeans.api.visual.action.WidgetAction getEditAction()
          Get edit action that will be invoked upon double click.
 Action[] getMenuActions()
          Get(create) actions that should be displayed in the context menu of the widgets that use this presenter.
 void register()
          Register its listeners into the lap tree.
 void unregister()
          Unregister its listeners that were registered in the register() method.
 

Method Detail

register

void register()
Register its listeners into the lap tree. Presenter must react to wide array of events in the tree. E.g. expanded action must listen not only to the name property of the action, but also to all competences and AP in the tree.


unregister

void unregister()
Unregister its listeners that were registered in the register() method.


getMenuActions

Action[] getMenuActions()
Get(create) actions that should be displayed in the context menu of the widgets that use this presenter.

Returns:
Actions that will be in the menu or null for no menu.

getAcceptProviders

AbstractAcceptAction[] getAcceptProviders()
Get array of accept providers of this

Returns:
Array of accept providers. If null, no accept provider.

getEditAction

org.netbeans.api.visual.action.WidgetAction getEditAction()
Get edit action that will be invoked upon double click.

Returns:
Edit action for the widget that is being represented. If null, no edit action.


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.