LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.app.behaviorinterface
Interface LyPanelBehaviorInterface

All Superinterfaces:
LyActionBehaviorInterface, LyBehaviorInterface
All Known Subinterfaces:
LyEditTableBehaviorInterface, LyImportTableBehaviorInterface, LyTableBehaviorInterface, LyTreeBaseBehaviorInterface, LyTreeBehaviorInterface
All Known Implementing Classes:
LyEditTableBehavior, LyImportTableBehavior, LySocialBehavior, LyTableBehavior, LyTreeBehavior

public interface LyPanelBehaviorInterface
extends LyActionBehaviorInterface

This interface defines the methods to implement in order to modify the default behavior of a panel controller.

See Also:
LyPanelController

Field Summary
static java.lang.String __VERSION
          File version
 
Method Summary
 void completePopupMenu(LyPanelController panelController, LyPopupMenu menu)
          Completes a popup menu before displaying it.
 LyInfoDataList<LyAction,LyClassInfo> getPopupMenuActions(LyPanelController panelController, LyInfoDataList<LyAction,LyClassInfo> actions, boolean selection)
          Gets the ordered list of pairs of (action, classInfo) to display in a popup menu.
 boolean needRefresh(LyPanelController panelController, LyObject object, LyValueSet oldValues)
          Checks if the panel needs a refresh when an object changed is received.
 LyFilter validateFilter(LyPanelController panelController, LyFilter filter)
          Method used to enable a filter.
 
Methods inherited from interface leon.app.behaviorinterface.LyActionBehaviorInterface
endAction, getClientContext, getContextTitle, getHelpFile, getImage, getImageTooltip, getKeyValue, getMenuItemImage, getTitle, reset, startAction
 
Methods inherited from interface leon.app.behaviorinterface.LyBehaviorInterface
free, handleDemand, init
 

Field Detail

__VERSION

static final java.lang.String __VERSION
File version

See Also:
Constant Field Values
Method Detail

getPopupMenuActions

LyInfoDataList<LyAction,LyClassInfo> getPopupMenuActions(LyPanelController panelController,
                                                         LyInfoDataList<LyAction,LyClassInfo> actions,
                                                         boolean selection)
Gets the ordered list of pairs of (action, classInfo) to display in a popup menu.
The default implementation does nothing and returns the given actions data list.

Parameters:
panelController - Panel controller that displays the menu.
actions - List of pairs (action, classInfo) that the controller is about to present in popup menu on current selection.
selection - Boolean indicating if popup menu is asked or not on selection.
Returns:
List of pairs (action, classInfo) that the controller will display in menu.

completePopupMenu

void completePopupMenu(LyPanelController panelController,
                       LyPopupMenu menu)
Completes a popup menu before displaying it. The default implementation does nothing and returns the popup menu built by the controller.

Parameters:
panelController - Panel controller that displays the menu.
menu - Popup menu built by the panel controller.

needRefresh

boolean needRefresh(LyPanelController panelController,
                    LyObject object,
                    LyValueSet oldValues)
Checks if the panel needs a refresh when an object changed is received. This method is given to enable optimization when object changes are received.

Parameters:
panelController - Panel controller that received the object change.
object - The object that changed.
oldValues - The previous values.
Returns:
True if the panel has to be refreshed, false otherwise.

validateFilter

LyFilter validateFilter(LyPanelController panelController,
                        LyFilter filter)
Method used to enable a filter.

Parameters:
panelController - Panel controller that asks for the filtering.
filter - The filter that is asked.
Returns:
The enabled filter.

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com