LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.control
Class LySelectController

java.lang.Object
  extended by leon.control.LyController
      extended by leon.control.LyAreaController
          extended by leon.control.LyMultiAreaController
              extended by leon.control.LyCompoundAreaController
                  extended by leon.control.LySelectController
All Implemented Interfaces:
LyGetSessionInterface, LyContextInterface, LyGetActionInterface, LySelectFileListenerInterface, LyTransverseInterface, LyGuiListener, LyInfoListener, LyEvaluator, LyDemandListener

public class LySelectController
extends LyCompoundAreaController
implements LyTransverseInterface


Field Summary
static java.lang.String __VERSION
          File Version
 
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
LySelectController(LySession session, LyController parent, LyAction action, LyClassInfo classInfo, LyObjectList context)
          Constructor.
 
Method Summary
 void actionDemand(LyActionDemand demand)
          Invoked when an action occurs.
 LyFormResultInterface getFormResultClient()
          Accessor to the LyFormResultInterface instance that must be notified at the end of the process.
 LyRelationFieldInfo getRelationParent()
          Accessor to the relation field info using the select action.
 void setRelationParent(LyFormResultInterface client, LyRelationFieldInfo relation)
          Sets relation parent : this method is invoked when this controller is a child of another form (dynamic popup creation of an object in a relation field).
 
Methods inherited from class leon.control.LyCompoundAreaController
free, getContextClient, reset, setAction, setAction, setAction, setAction, setAction, setContext, setContextClient
 
Methods inherited from class leon.control.LyMultiAreaController
addAreaController, addAreaControllerStack, canClose, clearViewCache, getAreaController, getAreaController, getAreaControllersCount, getAreaControllerStack, getAreaControllerStackCount, getFinalAreaControllers, getLastModified, isViewResizable, openSubAreaController, removeAreaController, removeAreaControllerStack, setIdle, setViewController, update
 
Methods inherited from class leon.control.LyAreaController
canFree, completeMenuBar, completeMessages, free, getAction, getAreaStackController, getBehavior, getBehaviorInterface, getBuilder, getClassInfo, getContent, getContext, getContextTitle, getDefaultAction, getEnvironment, getFastEditionAction, getHelpFile, getImage, getImageTooltip, getInfoLabel, getInfoLabel, getKeyValue, getLabel, getMenuItemImage, getName, getParameter, getParameter, getParameterMarks, getParent, getParent, getParentAreaController, getRefreshTime, getSelection, getShortLabel, getTarget, getTitle, getViewController, getViewController, hasMark, hasNotMark, hasViewController, hideView, infoEvent, initialize, isInitialized, isOutlined, menuDemand, 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, 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

LySelectController

public LySelectController(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. The action should be an instance of LyCompoundAction. If an action is specified, the controller uses action parameters (action name, action specific XML view description ...)
classInfo - classInfo : useless in this controller, should be null. Kept for compatibility.
context - current context (may be null if the view is not contextual to a list of objects).
Method Detail

setRelationParent

public void setRelationParent(LyFormResultInterface client,
                              LyRelationFieldInfo relation)
Sets relation parent : this method is invoked when this controller is a child of another form (dynamic popup creation of an object in a relation field).

Specified by:
setRelationParent in interface LyTransverseInterface
Parameters:
client - the client of the current action
relation - the relation fieldInfo which is updated as the result of the current action (usually dynamic popup creation)

actionDemand

public void actionDemand(LyActionDemand demand)
Invoked when an action occurs.

Overrides:
actionDemand in class LyCompoundAreaController
Parameters:
demand - the action demand
See Also:
LyController.demandPerformed(leon.view.event.LyDemand)

getFormResultClient

public LyFormResultInterface getFormResultClient()
Accessor to the LyFormResultInterface instance that must be notified at the end of the process.

Returns:
the form result client

getRelationParent

public LyRelationFieldInfo getRelationParent()
Accessor to the relation field info using the select action.

Returns:
the parent relation

(c) January 2013 - W4 S.A.

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