LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.control
Class LySimpleFilterController

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.LySimpleFilterController
All Implemented Interfaces:
LyGetSessionInterface, LyContextInterface, LyGetActionInterface, LySelectFileListenerInterface, LyAdvancedWorkSpaceListener, LyGuiListener, LyWorkSpaceListener, LyGetClassInfoInterface, LyInfoListener, LyEvaluator, LyDemandListener
Direct Known Subclasses:
LyFilterController, LyFilterCriterionController, LyFilterRelationController

public abstract class LySimpleFilterController
extends LyFormController

This class implements the simple filter edition area.

See Also:
LyFilterController, LyFilterCriterionController, LyFilterRelationController

Field Summary
static java.lang.String __VERSION
          File Version
 
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
LySimpleFilterController(LySession session, LyController parent, LyAction action, LyClassInfo classInfo, LyObjectList objects)
          Constructor.
 
Method Summary
 boolean checkIfModified()
          Checks if a value has been modified in the form.
 java.lang.Class<?> getBehaviorInterface()
          Method that gives the interface that must be implemented by the behavior associated to this controller.
 LyFilter getDefaultFilter()
          Default filter (initial values).
 LyFilterEndInterface getFilterEndInterface()
          Gets client (listener) for closing notification.
 void setContextClient(LyAreaController controller)
          Set accessor to the context client area controller which will receive contextual notification when something occur on this area controller.
 void setFilterEndInterface(LyFilterEndInterface endInterface)
          Sets client (listener) for closing notification.
 
Methods inherited from class leon.control.LyFormController
actionDemand, clearViewCache, contains, fieldControllerFactory, findFormField, free, getAreaController, getClassInfo, getCompositionRelation, getContent, getDefaultFieldUnit, getEnvironment, getFieldController, getFieldMarks, getFields, getFieldValue, getFieldValue, getFormField, getImage, getImage, getKeyValue, getObject, getObjectList, getSelection, getState, getTabs, isChangingObject, isComposition, isDisplayed, isViewResizable, menuDemand, objectAdded, objectChanged, objectRemoved, objectStateChanged, objectUserEvent, reset, resetFormContent, resetFromObject, setActiveField, setCompositionRelation, setContext, 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, setIdle, setViewController, update
 
Methods inherited from class leon.control.LyAreaController
canFree, completeMenuBar, completeMessages, free, getAction, getAreaStackController, getBehavior, getBuilder, getContext, getContextClient, getContextTitle, 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, isOutlined, 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, selectionDemand, 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
Constructor Detail

LySimpleFilterController

public LySimpleFilterController(LySession session,
                                LyController parent,
                                LyAction action,
                                LyClassInfo classInfo,
                                LyObjectList objects)
Constructor.

Parameters:
session - current session associated to the controller. The controller automatically registers on the specified session.
parent - parent controller. If the parent implements LyFilterEndInterface, it will be notified when the filter form is closed.
action - related action. (action based on '_filter' action)
classInfo - the application class associated to the filter
objects - the context
Method Detail

setFilterEndInterface

public void setFilterEndInterface(LyFilterEndInterface endInterface)
Sets client (listener) for closing notification.

Parameters:
endInterface - client notified when the dialog closes.

getDefaultFilter

public LyFilter getDefaultFilter()
Default filter (initial values). This is given by the LyFilterEndInterface

Returns:
initial filter (default values)

getFilterEndInterface

public LyFilterEndInterface getFilterEndInterface()
Gets client (listener) for closing notification.

Returns:
client notified when the dialog closes. May be null.

getBehaviorInterface

public java.lang.Class<?> getBehaviorInterface()
Method that gives the interface that must be implemented by the behavior associated to this controller.

Overrides:
getBehaviorInterface in class LyFormController
Returns:
Class representing the behavior interface of this controller.

setContextClient

public void setContextClient(LyAreaController controller)
Set accessor to the context client area controller which will receive contextual notification when something occur on this area controller. This method is overriden to set the given controller as filter client when the filter controller is used in a compound action.

Overrides:
setContextClient in class LyMultiAreaController
Parameters:
controller - the contextual controller.

checkIfModified

public boolean checkIfModified()
Checks if a value has been modified in the form.

Returns:
true if a value has been modified, false otherwise.

(c) January 2013 - W4 S.A.

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