LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.app.behavior
Class LyPanelBehavior

java.lang.Object
  extended by leon.app.behavior.LyBehavior
      extended by leon.app.behavior.LyActionBehavior
          extended by leon.app.behavior.LyPanelBehavior
All Implemented Interfaces:
LyActionBehaviorInterface, LyBehaviorInterface, LyGetSessionInterface
Direct Known Subclasses:
LyTableBehavior, LyTreeBehavior

public abstract class LyPanelBehavior
extends LyActionBehavior
implements LyActionBehaviorInterface

This class implements the default behavior for actions that are controlled by a panel controller.


Field Summary
static java.lang.String __VERSION
          File version
 
Constructor Summary
LyPanelBehavior()
          Construct a panel behavior.
 
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.
 java.lang.String getTitle(LyAreaController areaController, LyAction action)
          Gets title corresponding to the given action.
 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 class leon.app.behavior.LyActionBehavior
endAction, getClientContext, getContextTitle, getHelpFile, getImage, getImageTooltip, getKeyValue, getMenuItemImage, reset, startAction
 
Methods inherited from class leon.app.behavior.LyBehavior
free, getSession, handleDemand, init
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface leon.app.behaviorinterface.LyActionBehaviorInterface
endAction, getClientContext, getContextTitle, getHelpFile, getImage, getImageTooltip, getKeyValue, getMenuItemImage, reset, startAction
 
Methods inherited from interface leon.app.behaviorinterface.LyBehaviorInterface
free, handleDemand, init
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
File version

See Also:
Constant Field Values
Constructor Detail

LyPanelBehavior

public LyPanelBehavior()
Construct a panel behavior.

Method Detail

getPopupMenuActions

public 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

public 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

public boolean needRefresh(LyPanelController panelController,
                           LyObject object,
                           LyValueSet oldValues)
Checks if the panel needs a refresh when an object changed is 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.

getTitle

public java.lang.String getTitle(LyAreaController areaController,
                                 LyAction action)
Gets title corresponding to the given action.
The default implementation returns the action name.

Specified by:
getTitle in interface LyActionBehaviorInterface
Overrides:
getTitle in class LyActionBehavior
Parameters:
areaController - the current LyAreaController instance
action - the action that was executed
Returns:
the given action name

validateFilter

public 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