LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.control
Class LyCompoundFilterController

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.LyCompoundFilterController
All Implemented Interfaces:
LyGetSessionInterface, LyContextInterface, LyGetActionInterface, LySelectFileListenerInterface, LyGuiListener, LyInfoListener, LyEvaluator, LyDemandListener

public class LyCompoundFilterController
extends LyCompoundAreaController

This controller implements a compound filter. It is based on a coumpound area.

See Also:
LyCompoundAreaController

Field Summary
static java.lang.String __VERSION
          File version
static java.lang.String DEMAND_ADD_FILTER
          Demand id for adding a filter element.
static java.lang.String ID_EXTENDED_FILTER
          Id for operation add.
static java.lang.String ID_SIMPLE_FILTER
          Id for operation raz.
static java.lang.String SELECT_TYPE
          Identifier of an input field : operation.
 
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
LyCompoundFilterController(LySession session, LyController parent, LyAction action, LyClassInfo classInfo, LyObjectList context)
          Constructor.
 
Method Summary
 void actionDemand(LyActionDemand demand)
          Invoked when an action notification is sent to this listener.
 LySimpleFilterController getFilterController()
          Gets controller of the filter element panel.
 LyFilterEditorController getFilterEditorController()
          Gets controller of the filter editor panel.
 boolean isExtendedFilter()
          Checks whether extended filter is activated or not.
 
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

DEMAND_ADD_FILTER

public static final java.lang.String DEMAND_ADD_FILTER
Demand id for adding a filter element.

See Also:
Constant Field Values

SELECT_TYPE

public static final java.lang.String SELECT_TYPE
Identifier of an input field : operation.

See Also:
Constant Field Values

ID_SIMPLE_FILTER

public static final java.lang.String ID_SIMPLE_FILTER
Id for operation raz.

See Also:
Constant Field Values

ID_EXTENDED_FILTER

public static final java.lang.String ID_EXTENDED_FILTER
Id for operation add.

See Also:
Constant Field Values
Constructor Detail

LyCompoundFilterController

public LyCompoundFilterController(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 - classInfo associated with this controller
context - current context (may be null if the view is not contextual to a list of objects).
Method Detail

isExtendedFilter

public boolean isExtendedFilter()
Checks whether extended filter is activated or not.

Returns:
True if extended filter is on, false if it's off.

getFilterController

public LySimpleFilterController getFilterController()
Gets controller of the filter element panel.

Returns:
First controller.

getFilterEditorController

public LyFilterEditorController getFilterEditorController()
Gets controller of the filter editor panel.

Returns:
Second controller.

actionDemand

public void actionDemand(LyActionDemand demand)
Invoked when an action notification is sent to this listener.

method implements VALIDATE, APPLY and CANCEL action events and subsequently invoke endFilter on the client.

Additionally, the controller handles field changes and impact on form content. (The nature of components shown in the view is field dependant).

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

(c) January 2013 - W4 S.A.

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