LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.control
Class LySelectByNameController

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

public class LySelectByNameController
extends LyUserInputController
implements LyTransverseInterface

This is the controller for the select by name action.


Field Summary
static java.lang.String __VERSION
          File Version
static char[] IGNORED_CHARACTERS
          Ignored characters in regular expressions.
static java.lang.String REFRESH_SEARCH_TEXT
          Refresh search text identifier.
static java.lang.String SEARCH_RESULTS
          Search results identifier.
static java.lang.String SEARCH_TEXT
          Search text identifier.
 
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
LySelectByNameController(LySession session, LyController parent, LyAction action)
          Constructor.
LySelectByNameController(LySession session, LyController parent, LyAction action, LyClassInfo classInfo)
          Constructor.
LySelectByNameController(LySession session, LyController parent, LyAction action, LyClassInfo classInfo, LyObjectList context)
          Constructor.
LySelectByNameController(LySession session, LyController parent, LyAction action, LyObjectList context)
          Constructor.
 
Method Summary
 void actionDemand(LyActionDemand demand)
          Invoked when an action occurs.
 boolean setContext(LyWorkSpace context)
          Overridden to use the _allowSetContext parameter to check if context may be set.
 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.LyUserInputController
addBoolean, addBoolean, addChoice, addChoice, addDate, addDate, addFile, addFile, addLabel, addLabel, addList, addList, addNumber, addNumber, addRelation, addRelation, addText, addText, addText, getBehaviorInterface, getClassInfo, getComponent, getFormComponent, getImage, getInputId, getTitleBar, getViewController, isDialog, isViewResizable, reset, setBehavior, setBuilder, setDialog, setImage, setInputId, setTitleBar
 
Methods inherited from class leon.control.LyAreaController
canClose, canFree, clearViewCache, completeMenuBar, completeMessages, free, free, getAction, getAreaStackController, getBehavior, getBuilder, getContent, getContext, getContextClient, getContextTitle, getDefaultAction, getEnvironment, getFastEditionAction, getHelpFile, getImageTooltip, getInfoLabel, getInfoLabel, getKeyValue, getLabel, getLastModified, getMenuItemImage, getName, getParameter, getParameter, getParameterMarks, getParent, getParent, getParentAreaController, getRefreshTime, getSelection, getShortLabel, getTarget, getTitle, getViewController, hasMark, hasNotMark, hasViewController, hideView, infoEvent, initialize, isInitialized, isOutlined, menuDemand, reset, selectFileDemand, setContext, setContextClient, setIdle, setPreference, setViewController, showView, showView, testParameter, toString, update, updateTitleBar
 
Methods inherited from class leon.control.LyController
activateViewDemand, demandPerformed, dragDropDemand, getApplication, getClassInfo, getId, getImage, getImage, getImage, getImage, getImageFromPrefix, getImageFromPrefix, getImageFromPrefix, getName, getObjectId, getSession, getUserData, getView, getViewManager, helpDemand, hideView, isFreed, isIdle, selectionDemand, 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

SEARCH_TEXT

public static final java.lang.String SEARCH_TEXT
Search text identifier.


REFRESH_SEARCH_TEXT

public static final java.lang.String REFRESH_SEARCH_TEXT
Refresh search text identifier.


SEARCH_RESULTS

public static final java.lang.String SEARCH_RESULTS
Search results identifier.


IGNORED_CHARACTERS

public static final char[] IGNORED_CHARACTERS
Ignored characters in regular expressions.

Constructor Detail

LySelectByNameController

public LySelectByNameController(LySession session,
                                LyController parent,
                                LyAction action)
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 ...)

LySelectByNameController

public LySelectByNameController(LySession session,
                                LyController parent,
                                LyAction action,
                                LyClassInfo classInfo)
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 - This parameter is not used. Kept from introspection compatibility.

LySelectByNameController

public LySelectByNameController(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).

LySelectByNameController

public LySelectByNameController(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 - This parameter is not used. Kept from introspection compatibility.
context - current context (may be null if the view is not contextual to a list of objects).
Method Detail

actionDemand

public void actionDemand(LyActionDemand demand)
Invoked when an action occurs. (LyDemandListener interface) The current implementation calls the userInputDemand method of the behavior.

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

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 this action
relation - the relation fieldInfo which is updated as the result of the current action (usually dynamic popup creation)

setContext

public boolean setContext(LyWorkSpace context)
Overridden to use the _allowSetContext parameter to check if context may be set.

Specified by:
setContext in interface LyContextInterface
Overrides:
setContext in class LyAreaController
Parameters:
context - Current context, or null if no context is set for the view
Returns:
true if done
See Also:
LyAreaController.setContext(LyWorkSpace)

(c) January 2013 - W4 S.A.

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