LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.control
Class LyOutlineController

java.lang.Object
  extended by leon.control.LyController
      extended by leon.control.LyAreaController
          extended by leon.control.LyMultiAreaController
              extended by leon.control.LyFormController
                  extended by leon.control.LyOutlineController
All Implemented Interfaces:
LyGetSessionInterface, LyContextInterface, LyGetActionInterface, LySelectFileListenerInterface, LyAdvancedWorkSpaceListener, LyGuiListener, LyWorkSpaceListener, LyGetClassInfoInterface, LyInfoListener, LyEvaluator, LyDemandListener

public class LyOutlineController
extends LyFormController

Controller for the ouline view.


Field Summary
static java.lang.String __VERSION
          File Version
static java.lang.String DEMAND_ROW_TOOL
          Demand id : Row tool.
 
Fields inherited from class leon.control.LyFormController
DEMAND_APPLY, DEMAND_NEXT_OBJECT, DEMAND_NEXT_STEP, DEMAND_PREVIOUS_OBJECT, DEMAND_PREVIOUS_STEP, DEMAND_SAVE, DEMAND_SELECTION, DEMAND_VALIDATE, FORM_FIELD_SEP
 
Fields inherited from class leon.control.LyAreaController
DEFAULT_MENU_ITEM_IMAGE_SIZE, DEMAND_CANCEL, DEMAND_CLOSE, DEMAND_CREATE_CHART, DEMAND_DELETE_CHART, DEMAND_DELETE_OBJECTINFOS, DEMAND_DELETE_PREFERENCE, DEMAND_UPDATE_VIEW
 
Fields inherited from class leon.control.LyController
_nbControllers, _nextId, CONTROLLER_ID_SEP, DEFAULT_IMAGE_FORMAT, DEMAND_HELP, ID_SEP
 
Constructor Summary
LyOutlineController(LySession session, LyController parent, LyAction action, LyClassInfo classInfo, LyObjectList context)
          Constructor.
 
Method Summary
 void actionDemand(LyActionDemand demand)
          Invoked when an action occurs.
 void empty()
          Clear the content of this controller
 void free()
          Free this controller.
 java.lang.String getContextTitle()
          Gets context title associated with this controller.
 LyInfoList<LyClassInfo> getDisplayedClassInfos()
          Gets list of classes concerned by the action if specified.
 LyAreaController getLastOutlinedController()
          Return the last outlined controller.
 LyAction getSetAction(LyObject object, LyFieldInfo fieldInfo)
          Finds the best suited action for fast edition of given field.
 LyTable getTableComponent()
          Accessor to the Table component.
 boolean isOutlined()
          Indicates if the view for this area acts on the outline view.
 void menuDemand(LyMenuDemand demand)
          Invoked when an menu item notification is sent to this listener.
 void reset(boolean full)
          Reset the entire view : everything is rebuilt.
 void selectionChanged(LyAreaController controller)
          Method used to update the outline view when the selection changed.
 void selectionDemand(LySelectionDemand demand)
          Invoked when a selection occurs.
 boolean setContext(LyWorkSpace context)
          Set current controller context.
 void updateContent()
          Update the table content.
 
Methods inherited from class leon.control.LyFormController
clearViewCache, contains, fieldControllerFactory, findFormField, free, getAreaController, getBehaviorInterface, getClassInfo, getCompositionRelation, getContent, getDefaultFieldUnit, getEnvironment, getFieldController, getFieldMarks, getFields, getFieldValue, getFieldValue, getFormField, getImage, getImage, getKeyValue, getObject, getObjectList, getSelection, getState, getTabs, isChangingObject, isComposition, isDisplayed, isViewResizable, objectAdded, objectChanged, objectRemoved, objectStateChanged, objectUserEvent, resetFormContent, resetFromObject, setActiveField, setCompositionRelation, setFieldMarks, setObjects, setState, showError, workSpaceEventsGrouped
 
Methods inherited from class leon.control.LyMultiAreaController
addAreaController, addAreaControllerStack, canClose, getAreaController, getAreaController, getAreaControllersCount, getAreaControllerStack, getAreaControllerStackCount, getFinalAreaControllers, getLastModified, openSubAreaController, removeAreaController, removeAreaControllerStack, setAction, setContextClient, setIdle, setViewController, update
 
Methods inherited from class leon.control.LyAreaController
canFree, completeMenuBar, completeMessages, getAction, getAreaStackController, getBehavior, getBuilder, getContext, getContextClient, getDefaultAction, getFastEditionAction, getHelpFile, getImageTooltip, getInfoLabel, getInfoLabel, getLabel, getMenuItemImage, getName, getParameter, getParameter, getParameterMarks, getParent, getParent, getParentAreaController, getRefreshTime, getShortLabel, getTarget, getTitle, getViewController, getViewController, hasMark, hasNotMark, hasViewController, hideView, infoEvent, initialize, isInitialized, reset, selectFileDemand, setContext, setPreference, showView, showView, testParameter, toString, updateTitleBar
 
Methods inherited from class leon.control.LyController
activateViewDemand, demandPerformed, dragDropDemand, getApplication, getClassInfo, getComponent, getId, getImage, getImage, getImage, getImageFromPrefix, getImageFromPrefix, getImageFromPrefix, getName, getObjectId, getSession, getUserData, getView, getViewManager, helpDemand, hideView, isFreed, isIdle, setBuilder, setBuilderClass, setLastModified, setName, setUserData, 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

DEMAND_ROW_TOOL

public static final java.lang.String DEMAND_ROW_TOOL
Demand id : Row tool.

Constructor Detail

LyOutlineController

public LyOutlineController(LySession session,
                           LyController parent,
                           LyAction action,
                           LyClassInfo classInfo,
                           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 ...)
classInfo - the associated classInfo
context - current context (may be null if the view is not contextual to a list of objects).
Method Detail

reset

public void reset(boolean full)
Reset the entire view : everything is rebuilt.

Overrides:
reset in class LyFormController
Parameters:
full - Boolean indicating if a full reset (including reset of datas) is requiered or not (only reset graphical area).

getContextTitle

public java.lang.String getContextTitle()
Description copied from class: LyAreaController
Gets context title associated with this controller.

Overrides:
getContextTitle in class LyAreaController
Returns:
the title corresponding to the action.
See Also:
LyAreaController.getContextTitle()

getDisplayedClassInfos

public LyInfoList<LyClassInfo> getDisplayedClassInfos()
Gets list of classes concerned by the action if specified.

Returns:
Info list containing classes concerned by the action, null if not specified.

selectionChanged

public void selectionChanged(LyAreaController controller)
Method used to update the outline view when the selection changed.

Parameters:
controller - The controller where the selection has changed.

getLastOutlinedController

public LyAreaController getLastOutlinedController()
Return the last outlined controller.

Returns:
the last outlined controller.

setContext

public boolean setContext(LyWorkSpace context)
Set current controller context.

Specified by:
setContext in interface LyContextInterface
Overrides:
setContext in class LyFormController
Parameters:
context - current context or null if none is specified
Returns:
true if successfull
See Also:
LyContextInterface.getContext()

updateContent

public void updateContent()
Update the table content. Called when the selection change, or when the object selected is modified.


getTableComponent

public LyTable getTableComponent()
Accessor to the Table component.

Returns:
the table component

actionDemand

public void actionDemand(LyActionDemand demand)
Invoked when an action occurs. At this level, the implementation manages user interaction on tree nodes.

Overrides:
actionDemand in class LyFormController
Parameters:
demand - demand parameters sent by the view component.
See Also:
LyController.demandPerformed(leon.view.event.LyDemand)

getSetAction

public LyAction getSetAction(LyObject object,
                             LyFieldInfo fieldInfo)
Finds the best suited action for fast edition of given field.

Parameters:
object - an object
fieldInfo - field info to be edited
Returns:
Action found for fast edition of specified field, could be null if not found.

menuDemand

public void menuDemand(LyMenuDemand demand)
Invoked when an menu item notification is sent to this listener.

This method overriden to create a popup menu : buildPopupMenu.

Overrides:
menuDemand in class LyFormController
Parameters:
demand - demand parameters sent by the view component.
See Also:
LyController.demandPerformed(leon.view.event.LyDemand)

selectionDemand

public void selectionDemand(LySelectionDemand demand)
Invoked when a selection occurs. This method handles: select all, unselect all and objects by objects selection

Overrides:
selectionDemand in class LyController
Parameters:
demand - selection event created from the view. User interaction.
See Also:
LyController.demandPerformed(leon.view.event.LyDemand)

isOutlined

public boolean isOutlined()
Indicates if the view for this area acts on the outline view. By default, always return false.

Overrides:
isOutlined in class LyAreaController
Returns:
true if this area acts on the outline view, false otherwise.

free

public void free()
Free this controller.

Overrides:
free in class LyAreaController
See Also:
LyAreaController.free(LyController)

empty

public void empty()
Clear the content of this controller


(c) January 2013 - W4 S.A.

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