LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.control
Class LyMultiFilterController

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
                      extended by leon.control.LyFilterController
                          extended by leon.control.LyMultiFilterController
All Implemented Interfaces:
LyGetSessionInterface, LyContextInterface, LyFormResultInterface, LyGetActionInterface, LySelectFileListenerInterface, LyAdvancedWorkSpaceListener, LyGuiListener, LyWorkSpaceListener, LyGetClassInfoInterface, LyInfoListener, LyEvaluator, LyDemandListener

public class LyMultiFilterController
extends LyFilterController

This class implements the controller associated for the multi-filter action.

See Also:
LyFilterController, LyMultiFilterBuilder, LyFilterEndInterface

Field Summary
static java.lang.String __VERSION
          File Version.
 
Fields inherited from class leon.control.LyFilterController
ID_DATE_NORMAL, ID_DAY, ID_MODIFIER_NOT, ID_NOW, ID_OPERATION_REMOVE, ID_TODAY, SELECT_CONDITION, SELECT_DATE_DAY_VALUE, SELECT_DATE_SPECIAL_VALUE, SELECT_FIELDINFO, SELECT_MODIFIERS, SELECT_VALUE
 
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
LyMultiFilterController(LySession session, LyController parent, LyAction action, LyClassInfo classInfo, LyObjectList objects)
          Constructor.
 
Method Summary
 void actionDemand(LyActionDemand demand)
          Invoked when an action occurs.
 LyFilter buildFilter(LyDemand demand)
          Builds the filter from the data structure This methods extracts values typed in by the user and create the LyFilter instance.
 LyFieldController fieldControllerFactory(LyFieldInfo fieldInfo, boolean forceConsult)
          Factory for constructing the field controller of a field info.
 boolean hasCheckBoxes()
          Utility method to know if a fieldInfo is displayed in this form or not.
 boolean isChecked(LyFieldInfo fieldInfo)
          Indicates whether the form field corresponding to the given field info is checked or not.
 boolean isDisplayed(LyFieldInfo fieldInfo)
          Utility method to know if a fieldInfo is displayed in this form or not.
 void reset(boolean full)
          Reset all the content of the view.
 void setChecked(LyFieldInfo fieldInfo, boolean checked)
          Checks or unchecks the form field corresponding to the given field info.
 
Methods inherited from class leon.control.LyFilterController
buildFilterElement, getComponent, getFormField, getUnit, isViewResizable, notifyFormResult, setObjects
 
Methods inherited from class leon.control.LySimpleFilterController
checkIfModified, getBehaviorInterface, getDefaultFilter, getFilterEndInterface, setContextClient, setFilterEndInterface
 
Methods inherited from class leon.control.LyFormController
clearViewCache, contains, findFormField, free, getAreaController, getClassInfo, getCompositionRelation, getContent, getDefaultFieldUnit, getEnvironment, getFieldController, getFieldMarks, getFields, getFieldValue, getFieldValue, getImage, getImage, getKeyValue, getObject, getObjectList, getSelection, getState, getTabs, isChangingObject, isComposition, menuDemand, objectAdded, objectChanged, objectRemoved, objectStateChanged, objectUserEvent, resetFormContent, resetFromObject, setActiveField, setCompositionRelation, setContext, setFieldMarks, 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, 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

LyMultiFilterController

public LyMultiFilterController(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 - current context
Method Detail

actionDemand

public void actionDemand(LyActionDemand demand)
Invoked when an action occurs. At this level, the implementation manages
DEMAND_VALIDATE demands. (demand.getType = LyActionDemand.TYPE_ACTION AND demand.getSource() = LyController.DEMAND_VALIDATE)
DEMAND_APPLY demands. (demand.getType = LyActionDemand.TYPE_ACTION AND demand.getSource() = LyController.DEMAND_APPLY)
Default action (double click)
Default action (double click)
VALUE_CHANGED demands. (demand.getType = LyActionDemand.TYPE_VALUE_CHANGED

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

isChecked

public boolean isChecked(LyFieldInfo fieldInfo)
Indicates whether the form field corresponding to the given field info is checked or not.

Parameters:
fieldInfo - the field info
Returns:
true if the form field corresponding to the given field info is checked, false otherwise

setChecked

public void setChecked(LyFieldInfo fieldInfo,
                       boolean checked)
Checks or unchecks the form field corresponding to the given field info.

Parameters:
fieldInfo - the field info
checked - true if corresponding form field must be checked, false otherwise.

buildFilter

public LyFilter buildFilter(LyDemand demand)
Builds the filter from the data structure This methods extracts values typed in by the user and create the LyFilter instance.

Parameters:
demand - the demand which contains all values submited by the form.
Returns:
the LyFilter instance or null if an error occured.

isDisplayed

public boolean isDisplayed(LyFieldInfo fieldInfo)
Utility method to know if a fieldInfo is displayed in this form or not.

Overrides:
isDisplayed in class LyFormController
Parameters:
fieldInfo - the fieldInfo which is tested for addition in the view.
Returns:
true if the field should be added, false if it should be skipped.

hasCheckBoxes

public final boolean hasCheckBoxes()
Utility method to know if a fieldInfo is displayed in this form or not.


fieldControllerFactory

public LyFieldController fieldControllerFactory(LyFieldInfo fieldInfo,
                                                boolean forceConsult)
Description copied from class: LyFormController
Factory for constructing the field controller of a field info.

Overrides:
fieldControllerFactory in class LyFormController
Parameters:
fieldInfo - Field info for which a controller is built.
forceConsult - true to force consult mode
Returns:
The field controller of the given field.

reset

public void reset(boolean full)
Description copied from class: LyFormController
Reset all the content of the view.

Overrides:
reset in class LyFormController
Parameters:
full - Boolean indicating if a full reset (including reset of datas) is requiered or not (only reset graphical area).

(c) January 2013 - W4 S.A.

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