|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.control.LyController
leon.control.form.LyFieldController
leon.control.form.LyFieldConsultController
leon.control.form.LyFieldSetController
leon.control.form.LyStructFieldSetController
public class LyStructFieldSetController
Field controller for modification of a LyStructFieldInfo.
LySetController
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File version |
Fields inherited from class leon.control.form.LyFieldSetController |
---|
STANDARD_ARRAY_TOOL, STANDARD_CLASSINFO, TRANSVERSE_ACTION_SEP |
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 | |
---|---|
LyStructFieldSetController(LySetController parent,
LyStructFieldInfo fieldInfo)
Constructor. |
Method Summary | |
---|---|
void |
cancel()
Method called when editions is cancelled. |
void |
free()
Free this controller. |
LyClassInfo |
getFieldType()
Gets the classInfo of the object pointed by the relation in the current form. |
LyValue |
getFieldValue(LyUnit unit)
Extract current value for the specified fieldInfo in the form. |
LyObject |
getObject(boolean create)
Get the associated object |
void |
invokeTransverseAction(LyAction action,
LyClassInfo classInfo)
Internal method to invoke on a relation a transverse action for a given classInfo. |
boolean |
isCreation()
Indicate if thie field is in creation or modification mode of the struct object (use by array of structs). |
void |
notifyFormResult(LyObject object,
LyRelationFieldInfo relation)
Internal use. |
boolean |
objectCreated(LyDataSourceEvent event)
Method for receiving an object creation. |
boolean |
objectDeleted(LyDataSourceEvent event)
Method for receiving an object deletion. |
boolean |
objectModified(LyDataSourceEvent event)
Method for receiving an object modification. |
void |
resetFromValue(java.lang.Object value,
boolean freeOldValue,
boolean createNewValue)
Sets the field content from the specified value Any value modified by the user is the form is lost. |
void |
setCreation(boolean status)
Indicate if thie field is in creation or modification mode of the struct object (use by array of structs). |
void |
unitChanged(java.lang.String newUnitId,
java.lang.String oldUnitId)
Internal method for propagating a unit change. |
Methods inherited from class leon.control.form.LyFieldSetController |
---|
actionDemand, addTempFilePath, checkIfModified, clear, commit, completeValue, control, endValidate, getControllerContext, getDefaultBuilder, getFieldValue, getFinalValue, getLastValue, getModel, getParentFieldController, getSetController, getTransverseActions, getUnit, getValue, isEditable, isEnabled, isOptional, reset, restore, save, setEditable, setEnabled, setFieldValue, setHidden, setInternal, setOptional, startValidate, update, updateFieldItem, updateViewContent, updateViewFromValues |
Methods inherited from class leon.control.form.LyFieldConsultController |
---|
isHidden, propagate, setLabel |
Methods inherited from class leon.control.form.LyFieldController |
---|
clearViewCache, getAction, getAreaController, getBehavior, getClassInfo, getComponent, getDefaultFieldUnit, getDefaultFieldUnit, getEnvironment, getFieldController, getFieldInfo, getFormController, getFormField, getFormField, getImage, getInfoLabel, getInfoLabel, getLabel, getObject, getState, getViewController, hasMark, isIdle, menuDemand, setAreaNoScroll, setFieldValue, setFormField, setState, toString |
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyStructFieldSetController(LySetController parent, LyStructFieldInfo fieldInfo)
parent
- parent controllerfieldInfo
- the struct fieldInfo handled by this controllerMethod Detail |
---|
public void free()
free
in class LyFieldController
public void invokeTransverseAction(LyAction action, LyClassInfo classInfo)
invokeTransverseAction
in class LyFieldController
action
- Transverse action.classInfo
- Class info on which the action is applied.public void unitChanged(java.lang.String newUnitId, java.lang.String oldUnitId)
The LySetController additionaly impact the view using the setValid method.
unitChanged
in class LyFieldSetController
newUnitId
- The new fieldinfo unit.oldUnitId
- The old fieldinfo unit.public LyValue getFieldValue(LyUnit unit)
getFieldValue
in class LyFieldSetController
unit
- Unit of the value.
public void notifyFormResult(LyObject object, LyRelationFieldInfo relation)
notifyFormResult
in interface LyFormResultInterface
object
- newly created object. The new value of the relation fieldInfo.relation
- the relationpublic LyClassInfo getFieldType()
public boolean isCreation()
isCreation
in class LyFieldSetController
public void setCreation(boolean status)
status
- new creation statuspublic void resetFromValue(java.lang.Object value, boolean freeOldValue, boolean createNewValue)
resetFromValue
in class LyFieldSetController
value
- new value to set in the field.freeOldValue
- indicates if the old value should be freed (deleted) when it is an
objectcreateNewValue
- indicates if a new empty value should created when object is null and
when the value is an objectpublic void cancel()
cancel
in class LyFieldSetController
public boolean objectCreated(LyDataSourceEvent event)
objectCreated
in interface LyDataSourceListener
event
- Event notifying the creation of an object.
public boolean objectModified(LyDataSourceEvent event)
objectModified
in interface LyDataSourceListener
event
- Event notifying the modification of an object.
public boolean objectDeleted(LyDataSourceEvent event)
objectDeleted
in interface LyDataSourceListener
event
- Event notifying the deletion of an object.
public LyObject getObject(boolean create)
create
- true to force creation of object
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |