LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.control
Class LyTreeBaseController

java.lang.Object
  extended by leon.control.LyController
      extended by leon.control.LyAreaController
          extended by leon.control.LyPanelController
              extended by leon.control.LyTreeBaseController
All Implemented Interfaces:
LyGetSessionInterface, LyContextInterface, LyGetActionInterface, LySelectFileListenerInterface, LyGuiListener, LyInfoListener, LyEvaluator, LyDemandListener, LyAnswerInterface, LyQuestionAnswerInterface
Direct Known Subclasses:
LyTreeController

public abstract class LyTreeBaseController
extends LyPanelController

This class implements the basics of a tree controller. It is used to factorize code between all tree controllers. It is associated with a builder (LyTreeBuilder) and a behavior that implements LyTreeBaseBehaviorInterface. There is no default implementation of this behavior.

See Also:
LyTreeBuilder, LyTreeBaseBehaviorInterface, LyTreeController, LyFilterEditorController

Field Summary
static java.lang.String __VERSION
          File Version
 
Fields inherited from class leon.control.LyPanelController
DEMAND_DEFAULT_FOR_MOBILE_PREFERENCE, DEMAND_DEFAULT_PREFERENCE, DEMAND_PREFERENCE_TARGET, DEMAND_SAVE_PREFERENCE, DEMAND_SELECT_ALL, DEMAND_SHARED_PREFERENCE, DEMAND_UNSELECT_ALL, EXTEND_SIMPLE_FILTER, EXTENDED_FILTER_NEW, FAST_FILTER, FILTER_ACTIVE, FILTER_SET, PREFERENCE_TARGET_ACTION, PREFERENCE_TARGET_CLASS, SIMPLE_FILTER_NEW
 
Fields inherited from class leon.control.LyAreaController
DEFAULT_MENU_ITEM_IMAGE_SIZE, DEMAND_APPLY, DEMAND_CANCEL, DEMAND_CLOSE, DEMAND_CREATE_CHART, DEMAND_DELETE_CHART, DEMAND_DELETE_OBJECTINFOS, DEMAND_DELETE_PREFERENCE, DEMAND_UPDATE_VIEW, DEMAND_VALIDATE
 
Fields inherited from class leon.control.LyController
_nbControllers, _nextId, CONTROLLER_ID_SEP, DEFAULT_IMAGE_FORMAT, DEMAND_HELP, ID_SEP
 
Constructor Summary
LyTreeBaseController(LySession session, LyController parent, LyAction action, LyObjectList context)
          Constructor.
 
Method Summary
 void clearTreeContent()
          Empty the tree (remove all nodes).
 LyPanel getPanelComponent()
          Accessor to panel component.
 LyTree getTreeComponent()
          Accessor to the Tree component (view).
 void updateContent()
          Reset the content of the view (Nodes) The current implementation does nothing.
 void updateMessages()
          Reset the message bar status if any The current implementation does nothing.
 void updateTools()
          Updates the status of tools contained in the toolbar.
 
Methods inherited from class leon.control.LyPanelController
actionDemand, buildFilter, closeBorderPanel, enablesMultiSelection, endFilter, findObject, free, getContent, getFilter, getFilterController, getFilterEditorController, getPreference, getRefreshTime, getSelection, isFilterActive, isHorizontal, objectAdded, objectChanged, objectRemoved, objectStateChanged, objectUserEvent, questionAnswer, reset, selectAllObjects, selectObject, setFilter, setIdle, setPreference, setRefreshTime, updatePreferencesMenu, workSpaceEventsGrouped
 
Methods inherited from class leon.control.LyAreaController
canClose, canFree, clearViewCache, completeMenuBar, completeMessages, free, getAction, getAreaStackController, getBehavior, getBehaviorInterface, getBuilder, getClassInfo, getContext, getContextClient, getContextTitle, getDefaultAction, getEnvironment, getFastEditionAction, getHelpFile, getImage, getImageTooltip, getInfoLabel, getInfoLabel, getKeyValue, getLabel, getLastModified, getMenuItemImage, getName, getParameter, getParameter, getParameterMarks, getParent, getParent, getParentAreaController, getShortLabel, getTarget, getTitle, getViewController, getViewController, hasMark, hasNotMark, hasViewController, hideView, infoEvent, initialize, isInitialized, isOutlined, isViewResizable, menuDemand, reset, selectFileDemand, setContext, setContext, setContextClient, setViewController, showView, showView, testParameter, toString, update, updateTitleBar
 
Methods inherited from class leon.control.LyController
activateViewDemand, demandPerformed, dragDropDemand, getApplication, getClassInfo, getComponent, getId, getImage, getImage, getImage, getImage, getImageFromPrefix, getImageFromPrefix, getImageFromPrefix, getName, getObjectId, getSession, getUserData, getView, getViewManager, helpDemand, hideView, isFreed, isIdle, selectionDemand, setBuilder, setBuilderClass, setLastModified, setName, setUserData, showError, showError, showWarning, updateViewFromValues
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
File Version

See Also:
Constant Field Values
Constructor Detail

LyTreeBaseController

public LyTreeBaseController(LySession session,
                            LyController parent,
                            LyAction action,
                            LyObjectList context)
Constructor.

Parameters:
session - current session associated to the controller. The controller automatically registers on the specified session.
parent - parent controller (or null for 'root' controller). Controller hierarchy indicates a child controller (for example a dialog created from a main view)
action - related action. If an action is specified, the controller uses action parameters (action name, action specific XML view description ...)
context - current context (may be null if the view is not contextual to a list of objects).
Method Detail

updateContent

public void updateContent()
Reset the content of the view (Nodes) The current implementation does nothing.


updateMessages

public void updateMessages()
Reset the message bar status if any The current implementation does nothing.


updateTools

public void updateTools()
Description copied from class: LyPanelController
Updates the status of tools contained in the toolbar.
The state of each tool is computed by calling the enableAction() method on current session with the action corresponding to the tool as a parameter.

See Also:
LyPanelController.updateTools()

clearTreeContent

public void clearTreeContent()
Empty the tree (remove all nodes).


getTreeComponent

public LyTree getTreeComponent()
Accessor to the Tree component (view).

Returns:
The tree view component

getPanelComponent

public LyPanel getPanelComponent()
Accessor to panel component.

Specified by:
getPanelComponent in class LyPanelController
Returns:
the panel component
See Also:
getTreeComponent()

(c) January 2013 - W4 S.A.

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