LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.app.behavior
Class LyDashboardBehavior

java.lang.Object
  extended by leon.app.behavior.LyBehavior
      extended by leon.app.behavior.LyActionBehavior
          extended by leon.app.behavior.LyDashboardBehavior
All Implemented Interfaces:
LyActionBehaviorInterface, LyBehaviorInterface, LyDashboardBehaviorInterface, LyGetSessionInterface

public class LyDashboardBehavior
extends LyActionBehavior
implements LyDashboardBehaviorInterface

This class implements the default behavior for a LyDashboardController.

See Also:
LyDashboardController, LyDashboardBehaviorInterface

Field Summary
static java.lang.String __VERSION
          File version
 
Constructor Summary
LyDashboardBehavior()
          Default constructor.
 
Method Summary
 LyTab buildTab(LyDashboardController dashboard, LyAreaController areaController)
          Builds a tab for given area controller when the useTabs mode is active.
 void closeController(LyDashboardController dashboard, LyAreaController controller)
          Method called when a controller is closed in the dasboard panel.
 LyInfoList<LyAction> getActions(LyDashboardController dashboard, LyInfoList<LyAction> actions)
          Get the list of actions displayed in the dashboard.
 LyInfoList<LyClassInfo> getSearchClasses(LyDashboardController dashboard)
          Get the classes list to be dispalyed in search tool.
 boolean isFreedOnClose(LyDashboardController dashboard, LyAction action, LyViewController viewController)
          Indicates if the given sub view controller has to be freed when closed.
 boolean isFreedOnClose(LyDashboardController dashboard, LyViewController viewController)
          Deprecated. Use LyDashboardBehaviorInterface.isFreedOnClose(LyDashboardController, LyAction, LyViewController) instead.
 void openController(LyDashboardController dashboard, LyAreaController controller)
          Method called when a new controller is (re)opened in the dasboard panel.
 boolean openNewView(LyDashboardController dashboard, LyAction action)
          Indicates if the given action has to be opened in a new view.
 
Methods inherited from class leon.app.behavior.LyActionBehavior
endAction, getClientContext, getContextTitle, getHelpFile, getImage, getImageTooltip, getKeyValue, getMenuItemImage, getTitle, 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, getTitle, 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

LyDashboardBehavior

public LyDashboardBehavior()
Default constructor.

Method Detail

isFreedOnClose

public boolean isFreedOnClose(LyDashboardController dashboard,
                              LyViewController viewController)
Deprecated. Use LyDashboardBehaviorInterface.isFreedOnClose(LyDashboardController, LyAction, LyViewController) instead.

Indicates if the given sub view controller has to freed when closed.

Specified by:
isFreedOnClose in interface LyDashboardBehaviorInterface
Parameters:
dashboard - Dashboard controller.
viewController - View controller.
Returns:
True if the given view controller is freed on closing, false otherwise.
See Also:
LyDashboardBehaviorInterface.isFreedOnClose(LyDashboardController,LyAction,LyViewController)

isFreedOnClose

public boolean isFreedOnClose(LyDashboardController dashboard,
                              LyAction action,
                              LyViewController viewController)
Indicates if the given sub view controller has to be freed when closed.

Specified by:
isFreedOnClose in interface LyDashboardBehaviorInterface
Parameters:
dashboard - Dashboard controller.
action - The action of the sub view controller.
viewController - View controller.
Returns:
True if the given view controller is freed on closing, false otherwise.

openNewView

public boolean openNewView(LyDashboardController dashboard,
                           LyAction action)
Indicates if the given action has to be opened in a new view. Default implementation uses the _useSingleView parameter of the dashboard action.

Specified by:
openNewView in interface LyDashboardBehaviorInterface
Parameters:
dashboard - Dashboard controller.
action - The action to be opened.
Returns:
True if the given action has to be opened in a new view, false otherwise.

openController

public void openController(LyDashboardController dashboard,
                           LyAreaController controller)
Method called when a new controller is (re)opened in the dasboard panel.

Specified by:
openController in interface LyDashboardBehaviorInterface
Parameters:
dashboard - Dashboard controller.
controller - Area controller opened in the dashboard.

closeController

public void closeController(LyDashboardController dashboard,
                            LyAreaController controller)
Method called when a controller is closed in the dasboard panel.

Specified by:
closeController in interface LyDashboardBehaviorInterface
Parameters:
dashboard - Dashboard controller.
controller - Area controller closed in the dashboard.

buildTab

public LyTab buildTab(LyDashboardController dashboard,
                      LyAreaController areaController)
Builds a tab for given area controller when the useTabs mode is active.

Specified by:
buildTab in interface LyDashboardBehaviorInterface
Parameters:
dashboard - Dashboard controller.
areaController - Area controller opened in the dashboard.
Returns:
the newly build tab

getActions

public LyInfoList<LyAction> getActions(LyDashboardController dashboard,
                                       LyInfoList<LyAction> actions)
Get the list of actions displayed in the dashboard.

Specified by:
getActions in interface LyDashboardBehaviorInterface
Parameters:
dashboard - Dashboard controller.
actions - List of actions declared in the model. Can be null.
Returns:

getSearchClasses

public LyInfoList<LyClassInfo> getSearchClasses(LyDashboardController dashboard)
Get the classes list to be dispalyed in search tool.

Specified by:
getSearchClasses in interface LyDashboardBehaviorInterface
Parameters:
dashboard - Dashboard controller.
Returns:
the classes list used for search, null to let the controller do the job.

(c) January 2013 - W4 S.A.

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