LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.control
Class LyFindController

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

public class LyFindController
extends LyUserInputController

This is the controller for the find action.


Field Summary
static java.lang.String __VERSION
          File Version
static java.lang.String DEMAND_CLOSE_FIND
          Menu id : Find.
static java.lang.String DEMAND_FIND
          Menu id : Find.
static java.lang.String DEMAND_FIND_CASE_SENSITIVE
          Find popup : Case sensitive.
static java.lang.String DEMAND_FIND_FIELD
          Find popup : Find field.
static java.lang.String DEMAND_FIND_PATTERN
          Find popup : Find pattern.
static java.lang.String DEMAND_FIND_WHOLE_WORD
          Find popup : Whole word.
static java.lang.String DEMAND_NEXT
          Menu id : Find next.
static java.lang.String DEMAND_PREVIOUS
          Menu id : Find previous.
 
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
LyFindController(LySession session, LyController parent, LyAction action, LyClassInfo classInfo, LyObjectList context)
          Constructor for the find action
 
Method Summary
 LyFieldInfo getFieldInfo()
          Field info used for search.
 LyInfoList<LyFieldInfo> getFields()
          Gets fields available for find action.
 java.lang.String getPattern()
          Search pattern.
 void hideView(boolean free)
          Hide the view.
 boolean isCaseSensitive()
          Case-sensitive.
 boolean isVisible()
          Returns visible state.
 boolean isWholeWord()
          Whole word.
 void setCaseSensitive(boolean sensitive)
          Set the case sensitive status
 void setFieldInfo(LyFieldInfo fieldInfo)
          Field info used for search.
 void setPattern(java.lang.String pattern)
          Search pattern.
 void setWholeWord(boolean word)
          Set the whole word search mode
 void showView()
          Make the view visible to the user.
 void updateFindMenu(LyAreaController parent)
          Update the find menuitem status.
 
Methods inherited from class leon.control.LyUserInputController
actionDemand, 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, infoEvent, initialize, isInitialized, isOutlined, menuDemand, reset, selectFileDemand, setContext, setContext, setContextClient, setIdle, setPreference, setViewController, 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

DEMAND_FIND

public static final java.lang.String DEMAND_FIND
Menu id : Find.


DEMAND_CLOSE_FIND

public static final java.lang.String DEMAND_CLOSE_FIND
Menu id : Find.


DEMAND_NEXT

public static final java.lang.String DEMAND_NEXT
Menu id : Find next.


DEMAND_PREVIOUS

public static final java.lang.String DEMAND_PREVIOUS
Menu id : Find previous.


DEMAND_FIND_PATTERN

public static final java.lang.String DEMAND_FIND_PATTERN
Find popup : Find pattern.


DEMAND_FIND_FIELD

public static final java.lang.String DEMAND_FIND_FIELD
Find popup : Find field.


DEMAND_FIND_WHOLE_WORD

public static final java.lang.String DEMAND_FIND_WHOLE_WORD
Find popup : Whole word.


DEMAND_FIND_CASE_SENSITIVE

public static final java.lang.String DEMAND_FIND_CASE_SENSITIVE
Find popup : Case sensitive.

Constructor Detail

LyFindController

public LyFindController(LySession session,
                        LyController parent,
                        LyAction action,
                        LyClassInfo classInfo,
                        LyObjectList context)
Constructor for the find action

Parameters:
session - the current session
parent - the parent action
action - the action to invoke
classInfo - a classinfo
context - the current context
Method Detail

getPattern

public java.lang.String getPattern()
Search pattern.

Returns:
the search pattern

setPattern

public void setPattern(java.lang.String pattern)
Search pattern.

Parameters:
pattern - the pattern to set

getFieldInfo

public LyFieldInfo getFieldInfo()
Field info used for search.

Returns:
the current field

setFieldInfo

public void setFieldInfo(LyFieldInfo fieldInfo)
Field info used for search.

Parameters:
fieldInfo - the fieldInfo to use

isWholeWord

public boolean isWholeWord()
Whole word.

Returns:
true if the search is on whole word

setWholeWord

public void setWholeWord(boolean word)
Set the whole word search mode

Parameters:
word - the whole word search mode

isCaseSensitive

public boolean isCaseSensitive()
Case-sensitive.

Returns:
the case sensitive status

setCaseSensitive

public void setCaseSensitive(boolean sensitive)
Set the case sensitive status

Parameters:
sensitive - the status

getFields

public LyInfoList<LyFieldInfo> getFields()
Gets fields available for find action.

Returns:
a list of fields

showView

public void showView()
Make the view visible to the user.

Overrides:
showView in class LyAreaController

hideView

public void hideView(boolean free)
Hide the view.

Overrides:
hideView in class LyAreaController
Parameters:
free - indicates if this controller must be freed

isVisible

public boolean isVisible()
Returns visible state.

Returns:
the visible status

updateFindMenu

public void updateFindMenu(LyAreaController parent)
Update the find menuitem status.

Parameters:
parent - parent controller

(c) January 2013 - W4 S.A.

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