LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.control.form
Class LyRelationFieldFilterController

java.lang.Object
  extended by leon.control.LyController
      extended by leon.control.form.LyFieldController
          extended by leon.control.form.LyRelationFieldController
              extended by leon.control.form.LyRelationFieldFilterController
All Implemented Interfaces:
LyGetSessionInterface, LyFormResultInterface, LyGuiListener, LyEvaluator, LyDemandListener

public class LyRelationFieldFilterController
extends LyRelationFieldController
implements LyFormResultInterface

Field controller for modification of a simple relation.

See Also:
LySetController

Nested Class Summary
 class LyRelationFieldFilterController._LyRelationFilterDomainController
          Internal class to create a popup creation form for a relation fieldInfo.
 
Field Summary
static java.lang.String __VERSION
          File version
 
Fields inherited from class leon.control.form.LyFieldController
FORM_FIELD_SEP, OLD_FORM_FIELD_SEP
 
Fields inherited from class leon.control.LyController
_nbControllers, _nextId, CONTROLLER_ID_SEP, DEFAULT_IMAGE_FORMAT, DEMAND_HELP, ID_SEP
 
Constructor Summary
LyRelationFieldFilterController(LyAreaController parent, LyRelationFieldInfo fieldInfo)
          Constructor.
 
Method Summary
 void clearViewCache()
          Clears all cached data for this controller (especially the view and the component).
 void free()
          Free this controller.
 void notifyFormResult(LyObject object, LyRelationFieldInfo relationField)
          Internal use.
 
Methods inherited from class leon.control.form.LyRelationFieldController
invokeTransverseAction
 
Methods inherited from class leon.control.form.LyFieldController
actionDemand, getAction, getAreaController, getBehavior, getClassInfo, getComponent, getDefaultFieldUnit, getDefaultFieldUnit, getEnvironment, getFieldController, getFieldInfo, getFieldValue, getFormController, getFormField, getFormField, getImage, getInfoLabel, getInfoLabel, getLabel, getObject, getState, getViewController, hasMark, isIdle, menuDemand, propagate, resetFromValue, restore, save, setAreaNoScroll, setFieldValue, setFieldValue, setFormField, setState, toString, updateFieldItem
 
Methods inherited from class leon.control.LyController
activateViewDemand, demandPerformed, dragDropDemand, getApplication, getBehaviorInterface, getBuilder, getClassInfo, getId, getImage, getImage, getImage, getImageFromPrefix, getImageFromPrefix, getImageFromPrefix, getKeyValue, getLastModified, getName, getObjectId, getParent, getSession, getUserData, getView, getViewManager, hasViewController, helpDemand, hideView, hideView, isFreed, selectionDemand, setBuilder, setBuilderClass, setIdle, setLastModified, setName, setUserData, showError, showError, showView, 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

LyRelationFieldFilterController

public LyRelationFieldFilterController(LyAreaController parent,
                                       LyRelationFieldInfo fieldInfo)
Constructor.

Parameters:
parent - parent controller
fieldInfo - relation field handled by this controller
Method Detail

clearViewCache

public void clearViewCache()
Clears all cached data for this controller (especially the view and the component).

This method may be invoked for memory optimization, but the controller is still valid and may be used. (Unlike free) Further usage, needs to rebuild internal component & view which may be time consuming.

Overrides:
clearViewCache in class LyFieldController

free

public void free()
Free this controller.

Overrides:
free in class LyFieldController

notifyFormResult

public void notifyFormResult(LyObject object,
                             LyRelationFieldInfo relationField)
Internal use. When an object is created in a popup creation form for a relation, the child controller invokes this method to set the newly created object as the current value of the relation (if a new object is created we automatically select this value). This method is never used by the application : use setFieldValue instead

Specified by:
notifyFormResult in interface LyFormResultInterface
Parameters:
object - newly created object. The new value of the relation fieldInfo.
relationField - the relation

(c) January 2013 - W4 S.A.

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