|
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.app.behavior.LyBehavior
leon.app.behavior.LyActionBehavior
leon.app.behavior.LyClassBehavior
public class LyClassBehavior
This class implements the default behavior for consult, set, filter and delete actions. It can be inherited by a specific user behavior.
LyFormBehaviorInterface
,
LyFormController
,
LyConsultBehaviorInterface
,
LyConsultController
,
LySetBehaviorInterface
,
LySetController
,
LyCreateBehaviorInterface
,
LyCreateController
,
LyFilterBehaviorInterface
,
LyFilterController
,
LyDeleteBehaviorInterface
,
LyDeleteController
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File version. |
static short |
STATUS_IGNORE
Code returned when there is no modification on the value for controlNewValue, checkNewValue and controlNewValues. |
static short |
STATUS_KO
Code returned when the value is not correct for controlNewValue, checkNewValue and controlNewValues. |
static short |
STATUS_OK
Code returned when the value is correct for controlNewValue, checkNewValue and controlNewValues. |
static short |
STATUS_WARNING
Code returned when the value is on warning for controlNewValue, checkNewValue and controlNewValues. |
Fields inherited from interface leon.app.behaviorinterface.LySetBehaviorInterface |
---|
STATUS_CANCEL |
Constructor Summary | |
---|---|
LyClassBehavior()
Construct a class behavior. |
Method Summary | |
---|---|
void |
addExtraValues(LySetController set,
LyValueSet values)
This method adds the given extra values before completing the current operation. |
LyFilterElement |
buildFilterElement(LyFilterController filter,
LyFieldInfo fieldInfo,
boolean not,
LyFilterExpression.Condition condition,
java.lang.Object value,
java.util.BitSet modifiers)
Builds a filter element with the given parameters. |
void |
changeState(LyController parent,
LyAction action,
LyObjectList objects,
LyFieldInfo fieldInfo)
Generic method to handle modification of the state of an object (loop on values of a choice field info). |
java.lang.String |
checkDeletion(LyDeleteController delete,
LyObject object)
Checks if the given object deletion is enabled or not (used before asking to the end-user if he want to delete it). |
LyObjectList |
checkDeletions(LyDeleteController delete,
LyObjectList list)
Checks if the given objects list deletion is enabled or not (used before asking to the end-user if he want to delete them). |
short |
checkNewValue(LySetController set,
LyFieldInfoValue newValue)
Dynamicaly checks the given value for its associated field. |
short |
controlNewValue(LySetController set,
LyFieldInfoValue newValue)
This method controls the given value before creating or modifying an object. |
short |
controlNewValues(LySetController set,
LyValueSet newValues)
Global control of values before creating or modifying an object. |
void |
copy(LyController parent,
LyAction action,
LyObjectList objects)
Generic method to copy an object. |
boolean |
enableChoiceOption(LySetController set,
LyChoiceFieldInfo choice,
LyChoiceOption option)
Indicates if the given option is enabled on the given choice fieldInfo. |
boolean |
enableRelationHRef(LyConsultController consult,
LyRelationFieldInfo relation,
LyObject href)
Enables the given href object on the given relation field info. |
boolean |
enableRelationLink(LySetController set,
LyRelationFieldInfo relation,
LyObject link)
Allows the given link object as a possible value for the given relation field info. |
boolean |
enableRelationLink(LySetController set,
LyRelationFieldInfo relation,
LyObject link,
boolean showError)
Allows the given link object as a possible value for the given relation field info. |
void |
endCommit(LySetController controller)
Invoked when controller is ending commit, default implementation does nothing. |
boolean |
endCreation(LyCreateController create,
LyValueSet values)
Final step of the object creation process. |
boolean |
endDeletion(LyDeleteController delete)
Final step of object deletion process. |
boolean |
endSet(LySetController set,
LyValueSet values)
Final step of the object set process. |
void |
formRestored(LySetController controller,
LyFormSave formSave)
Method called on form restore. |
void |
formSaved(LySetController controller,
LyFormSave formSave)
Method called on form save. |
LyAction |
getAction(LyConsultController consult,
LyRelationFieldInfo relation,
LyClassInfo classInfo)
Get action to use for consulting or editing the given relation with the specified class info selected on it. |
int |
getAutoCompletionMaximum(LySetController set,
LyRelationFieldInfo relation)
Indicates the maximum number of values displayed in relation components for auto-completion. |
int |
getAutoCompletionMaximum(LySetController set,
LyTextFieldInfo fieldInfo)
Indicates the maximum number of values displayed in text components for auto-completion. |
java.lang.String[] |
getAutoCompletionValues(LySetController set,
LyTextFieldInfo fieldInfo)
Computes the list of values displayed in text components for auto-completion. |
java.util.Vector<LyChoiceOption> |
getChoiceDomain(LySetController set,
LyChoiceFieldInfo choice)
Gets domain (list of allowed options) of the given choice fieldInfo. |
java.lang.String |
getConfirmDeletionMessage(LyDeleteController delete,
LyObject object)
Asks for the deletion message for the given object. |
java.lang.Object |
getDefaultValue(LySetController set,
LyFieldInfo fieldInfo)
Gets a default value for the given fieldInfo. |
java.util.Vector<LyChoiceOption> |
getFilterChoiceDomain(LyFilterController filter,
LyChoiceFieldInfo choice)
Gets domain (list of allowed options) of the given choice fieldInfo. |
LyInfoList<LyClassInfo> |
getFilterRelationClasses(LyFormController filter,
LyRelationFieldInfo relation)
Gets the list of available class info for the given relation filtering. |
LyObjectList |
getFilterRelationDomain(LyFilterController filter,
LyRelationFieldInfo relation)
Gets relation domain (list of available links in the filter context) for the given relation fieldInfo for filter actions. |
LyInfoDataList<LyAction,LyClassInfo> |
getFilterTransverseActions(LyFilterController filter,
LyFieldInfo fieldInfo)
Gets all actions enabled by the given field for a filter action. |
LyInfoDataList<LyAction,LyClassInfo> |
getFilterTransverseActions(LyFilterController filter,
LyRelationFieldInfo relation)
Gets all actions enabled by the given relation for a filter action. |
java.lang.String |
getImage(LyFormController formController,
LyObject object)
Gets the image associated to the given object for the given form. |
LyContext.Position |
getInsertPosition(LySetController controller,
LyRelationFieldInfo relation)
Indicates if the operations of the controller context must be inserted at the beginning of the parent operations or at the end. |
java.lang.String |
getLinkShortLabel(LySetController set,
LyRelationFieldInfo relation,
LyObject link)
Gets the short label that must be used for the given relation fieldInfo. |
LyInfoList<LyClassInfo> |
getRelationClasses(LySetController set,
LyRelationFieldInfo relation)
Gets the list of available classInfo of the given relation fieldInfo. |
LyObjectList |
getRelationContext(LySetController set,
LyRelationFieldInfo relation)
Gets the list of objects of the given relation context. |
LyObjectList |
getRelationDomain(LySetController set,
LyRelationFieldInfo relation)
Gets relation domain (list of available links) for the given relation fieldInfo. |
LyObjectList |
getRelationDomain(LySetController set,
LyRelationFieldInfo relation,
java.lang.String prefix,
boolean fill)
Gets relation domain (list of available links) for the given relation fieldInfo with the given prefix for related objects. |
LyFilter |
getRelationFilter(LySetController controller,
LyRelationFieldInfo relation,
LyClassInfo classInfo)
Gets the filter of the given relation and the given class. |
LyAction |
getSetAction(LyOutlineController outline,
LyFieldInfo fieldInfo)
Get action used for fast edition of given field. |
java.lang.String |
getTitle(LyAreaController areaController,
LyAction action)
Gets title corresponding to the given action. |
LyInfoDataList<LyAction,LyClassInfo> |
getTransverseActions(LySetController set,
LyFieldInfo fieldInfo)
Gets actions enabled by the given field. |
LyInfoDataList<LyAction,LyClassInfo> |
getTransverseActions(LySetController set,
LyRelationFieldInfo relation)
Gets all actions enabled by the given relation. |
java.lang.Object |
getValue(LyFormController form,
LyFieldInfo fieldInfo)
Gets value of the given fieldInfo. |
void |
hide(LyController parent,
LyAction action,
LyObjectList objects)
Generic method to hide an objects list. |
boolean |
isDisplayed(LyFormController form,
LyFieldInfo fieldInfo)
Indicates if the given fieldInfo is displayed in the given form or not. |
boolean |
isEditable(LySetController set,
LyFieldInfo fieldInfo)
Checks if the given fieldInfo is editable or not for the given controller. |
boolean |
isEnabled(LySetController set,
LyFieldInfo fieldInfo)
Checks if the given fieldInfo is enabled or not for the given controller. |
java.lang.String |
isLocked(LySetController controller,
LyObject object)
Checks if given object is locked for edition. |
boolean |
isOptional(LySetController set,
LyFieldInfo fieldInfo)
Checks if the given fieldInfo is optional or not for the given controller. |
boolean |
isValidGroup(LySetController set,
LyChoiceFieldInfo choice,
LyChoiceOption option,
LyChoiceOptionGroup group)
Checks if the given group is valid for the given option of the choice fieldinfo. |
boolean |
lockObject(LySetController controller,
LyObject object,
boolean lock)
Locks/Unlocks given object for edition. |
void |
modify(LyController parent,
LyAction action,
LyObjectList objects,
LyValueSet fieldValues)
Generic method to handle modification of an objects list. |
boolean |
needCheck(LySetController set,
LyFieldInfo fieldInfo)
Indicates if the given fieldInfo needs to be checked when the value is modified (in creation and set mode). |
void |
paste(LyController parent,
LyAction action,
java.lang.String objectString)
Generic method to paste an object. |
void |
propagate(LySetController set,
LyFieldInfoValue newValue)
Progates the given field value to all fields. |
void |
setObject(LyConsultController controller,
LyObject object)
Method called when object shown in the form is changed. |
void |
show(LyController parent,
LyAction action,
LyObjectList objects)
Generic method to show an objects list. |
void |
startCommit(LySetController controller)
Invoked when controller is starting to commit, default implementation does nothing. |
boolean |
useEditTable(LySetController controller,
LyArrayFieldInfo array)
Checks if an edit table should be used for the given array field. |
boolean |
useEditTable(LySetController controller,
LyRelationFieldInfo relation)
Checks if an edit table should be used for the given relation field. |
boolean |
useLocalCompletion(LySetController set,
LyRelationFieldInfo relation)
Indicates if auto-completion on the given relation fieldInfo is managed by the graphical component or by the field controller. |
boolean |
useSingleContext(LySetController controller,
LyRelationFieldInfo parentRelation)
Indicates if the given controller must link its context to its parent context. |
boolean |
validateChoiceOption(LySetController set,
LyChoiceFieldInfo choice,
LyChoiceOption option)
Indicates if the given option is hidden on the given choice fieldInfo. |
Methods inherited from class leon.app.behavior.LyActionBehavior |
---|
endAction, getClientContext, getContextTitle, getHelpFile, getImage, getImageTooltip, getKeyValue, getMenuItemImage, reset, startAction |
Methods inherited from class leon.app.behavior.LyBehavior |
---|
free, getSession, handleDemand, init |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface leon.app.behaviorinterface.LyActionBehaviorInterface |
---|
endAction, getClientContext, getContextTitle, getHelpFile, getImage, getImageTooltip, getKeyValue, getMenuItemImage, reset, startAction |
Methods inherited from interface leon.app.behaviorinterface.LyBehaviorInterface |
---|
free, handleDemand, init |
Field Detail |
---|
public static final java.lang.String __VERSION
public static final short STATUS_IGNORE
STATUS_IGNORE
: the value is not modifiedSTATUS_KO
: the value is not correctSTATUS_OK
: the value is correctSTATUS_WARNING
: the value is on warning
public static final short STATUS_OK
STATUS_IGNORE
,
Constant Field Valuespublic static final short STATUS_KO
STATUS_IGNORE
,
Constant Field Valuespublic static final short STATUS_WARNING
STATUS_IGNORE
,
Constant Field ValuesConstructor Detail |
---|
public LyClassBehavior()
Method Detail |
---|
public java.lang.String getImage(LyFormController formController, LyObject object)
getImage
in interface LyFormBehaviorInterface
formController
- the form controllerobject
- object whose image is looked for
LyController.getImage(leon.info.LyObjectInfo)
public java.lang.String getTitle(LyAreaController areaController, LyAction action)
getTitle
in interface LyActionBehaviorInterface
getTitle
in class LyActionBehavior
areaController
- the current LyAreaController instanceaction
- the action that was executed
public java.lang.Object getValue(LyFormController form, LyFieldInfo fieldInfo)
getValue
in interface LyFormBehaviorInterface
form
- the current LyFormController instance.fieldInfo
- the fieldInfo that contains the value.
public boolean isDisplayed(LyFormController form, LyFieldInfo fieldInfo)
isDisplayed
in interface LyFormBehaviorInterface
form
- the current LyFormController instance.fieldInfo
- the fieldInfo which is tested for addition in the view.
public java.lang.Object getDefaultValue(LySetController set, LyFieldInfo fieldInfo)
getDefaultValue
in interface LySetBehaviorInterface
set
- the current LySetController instance.fieldInfo
- the fieldInfo that contains the value.
public boolean isOptional(LySetController set, LyFieldInfo fieldInfo)
isOptional
in interface LySetBehaviorInterface
set
- the current LySetController instance (creation or set action)fieldInfo
- the target fieldInfo to test
public boolean isEditable(LySetController set, LyFieldInfo fieldInfo)
isEditable
in interface LySetBehaviorInterface
set
- the current LySetController instance (creation or set action)fieldInfo
- the target fieldInfo to test
public boolean isEnabled(LySetController set, LyFieldInfo fieldInfo)
isEnabled
in interface LySetBehaviorInterface
set
- the current LySetController instancefieldInfo
- the target fieldInfo to test
public int getAutoCompletionMaximum(LySetController set, LyTextFieldInfo fieldInfo)
getAutoCompletionMaximum
in interface LySetBehaviorInterface
set
- the current LySetController instancefieldInfo
- the target text fieldInfo to test
public java.lang.String[] getAutoCompletionValues(LySetController set, LyTextFieldInfo fieldInfo)
getAutoCompletionValues
in interface LySetBehaviorInterface
set
- the current LySetController instance.fieldInfo
- the target text fieldInfo.
public java.util.Vector<LyChoiceOption> getChoiceDomain(LySetController set, LyChoiceFieldInfo choice)
getChoiceDomain
in interface LySetBehaviorInterface
set
- the current LySetController instancechoice
- target choice fieldInfo
LyChoiceOption
allowed for this choice field infopublic boolean isValidGroup(LySetController set, LyChoiceFieldInfo choice, LyChoiceOption option, LyChoiceOptionGroup group)
isValidGroup
in interface LySetBehaviorInterface
set
- the current set controllerchoice
- the choice fieldInfooption
- the choiceOptiongroup
- the choiceOption group
public boolean enableChoiceOption(LySetController set, LyChoiceFieldInfo choice, LyChoiceOption option)
enableChoiceOption
in interface LySetBehaviorInterface
set
- the current LySetController instancechoice
- choiceFieldInfo that contains this optionoption
- the option to enabled
public boolean validateChoiceOption(LySetController set, LyChoiceFieldInfo choice, LyChoiceOption option)
validateChoiceOption
in interface LySetBehaviorInterface
set
- the current LySetController instancechoice
- choiceFieldInfo that contains this optionoption
- the option to check
public LyObjectList getRelationDomain(LySetController set, LyRelationFieldInfo relation)
getRelationDomain
in interface LySetBehaviorInterface
set
- the current LySetController instancerelation
- the target relation field
public LyObjectList getFilterRelationDomain(LyFilterController filter, LyRelationFieldInfo relation)
getFilterRelationDomain
in interface LyFilterBehaviorInterface
filter
- the current LyFilterController instancerelation
- the target relation field
public LyInfoList<LyClassInfo> getFilterRelationClasses(LyFormController filter, LyRelationFieldInfo relation)
getFilterRelationClasses
in interface LyFilterBehaviorInterface
filter
- the current instance of "filter controller" This parameter could be both a
LyFilterController
or a
LyFilterRelationController
. That's why its type is
LyFormController
which is the common inheritance.relation
- the target relation field
public java.util.Vector<LyChoiceOption> getFilterChoiceDomain(LyFilterController filter, LyChoiceFieldInfo choice)
getFilterChoiceDomain
in interface LyFilterBehaviorInterface
filter
- the current LyFilterController instancechoice
- target choice fieldInfo
public LyFilter getRelationFilter(LySetController controller, LyRelationFieldInfo relation, LyClassInfo classInfo)
getRelationDomain(LySetController, LyRelationFieldInfo)
method when the target objets of the relation need to be filtered. The current implementation
return null if the relation is null, the relation filter (
relation.getFilter(classInfo)
)
getRelationFilter
in interface LySetBehaviorInterface
controller
- the current LySetController instancerelation
- the relation field info we want to filterclassInfo
- ClassInfo for which we look for an associated filter.
public boolean enableRelationLink(LySetController set, LyRelationFieldInfo relation, LyObject link, boolean showError)
enableRelationLink(set, relation, link)
.
enableRelationLink
in interface LySetBehaviorInterface
set
- the current LySetController instancerelation
- the relation that contains the linklink
- the link to enabledshowError
- indicates if an error should be shown if the given link is rejected.
enableRelationLink(LySetController, LyRelationFieldInfo, LyObject)
public boolean enableRelationLink(LySetController set, LyRelationFieldInfo relation, LyObject link)
enableRelationLink
in interface LySetBehaviorInterface
set
- the current LySetController instancerelation
- the relation that contains the linklink
- the link to enabled
public boolean enableRelationHRef(LyConsultController consult, LyRelationFieldInfo relation, LyObject href)
enableRelationHRef
in interface LyConsultBehaviorInterface
consult
- the current LyConsultController instancerelation
- the relation that contains the hrefhref
- the href to enabled
public LyInfoList<LyClassInfo> getRelationClasses(LySetController set, LyRelationFieldInfo relation)
getRelationClasses
in interface LySetBehaviorInterface
set
- the current LySetController instancerelation
- the target relation fieldInfo
public LyObjectList getRelationContext(LySetController set, LyRelationFieldInfo relation)
getRelationContext
in interface LySetBehaviorInterface
set
- the current LySetController instancerelation
- the target relation fieldInfo
public int getAutoCompletionMaximum(LySetController set, LyRelationFieldInfo relation)
getAutoCompletionMaximum
in interface LySetBehaviorInterface
set
- the current LySetController instance.relation
- the target relation fieldInfo to test.
public boolean useLocalCompletion(LySetController set, LyRelationFieldInfo relation)
useLocalCompletion
in interface LySetBehaviorInterface
set
- the current LySetController instancerelation
- the fieldInfo that may need to be checked
public LyObjectList getRelationDomain(LySetController set, LyRelationFieldInfo relation, java.lang.String prefix, boolean fill)
getRelationDomain
in interface LySetBehaviorInterface
set
- the current LySetController instancerelation
- the target relation fieldprefix
- the prefix for related objectsfill
- indicates whether the domain must be filtered with given prefix or not
public java.lang.String getLinkShortLabel(LySetController set, LyRelationFieldInfo relation, LyObject link)
getLinkShortLabel
in interface LySetBehaviorInterface
set
- the current LySetController instancerelation
- the target relation fieldlink
- the object represented by the link
public LyInfoDataList<LyAction,LyClassInfo> getTransverseActions(LySetController set, LyFieldInfo fieldInfo)
getTransverseActions(set, (LyRelationFieldInfo) fieldInfo)
result otherwise
getTransverseActions
in interface LySetBehaviorInterface
set
- the current LySetController instancefieldInfo
- the field that may enabled some actions
public LyInfoDataList<LyAction,LyClassInfo> getTransverseActions(LySetController set, LyRelationFieldInfo relation)
getTransverseActions
in interface LySetBehaviorInterface
set
- the current LySetController instancerelation
- the relation that may enabled some actions
public LyInfoDataList<LyAction,LyClassInfo> getFilterTransverseActions(LyFilterController filter, LyFieldInfo fieldInfo)
getFilterTransverseActions
in interface LyFilterBehaviorInterface
filter
- the current LyFilterController instancefieldInfo
- the fieldInfo that may enabled some actions
public LyInfoDataList<LyAction,LyClassInfo> getFilterTransverseActions(LyFilterController filter, LyRelationFieldInfo relation)
getFilterTransverseActions
in interface LyFilterBehaviorInterface
filter
- the current LyFilterController instancerelation
- the relation that may enabled some actions
public boolean needCheck(LySetController set, LyFieldInfo fieldInfo)
needCheck
in interface LySetBehaviorInterface
set
- the current LySetController instancefieldInfo
- the fieldInfo that may need to be checked
public void propagate(LySetController set, LyFieldInfoValue newValue)
propagate
in interface LySetBehaviorInterface
set
- the current LySetController instancenewValue
- new field info value to propagate.public short controlNewValue(LySetController set, LyFieldInfoValue newValue)
controlNewValue
in interface LySetBehaviorInterface
set
- the current LySetController instancenewValue
- field info value to check. This value cannot be null.
STATUS_IGNORE
if the value has not changeSTATUS_OK
if the value is correctSTATUS_KO
if the value is not correctSTATUS_WARNING
if the value is on warningpublic short checkNewValue(LySetController set, LyFieldInfoValue newValue)
checkValue
method of the
field associated to the new value.
checkNewValue
in interface LySetBehaviorInterface
public short controlNewValues(LySetController set, LyValueSet newValues)
LyObject.callClassControls(LyValueSet)
) is ok
controlNewValues
in interface LySetBehaviorInterface
set
- the current LySetController instancenewValues
- Set of values to control
STATUS_IGNORE
if the value has not changeSTATUS_OK
if the value is correctSTATUS_KO
if the value is not correctSTATUS_WARNING
if the value is on warningpublic void addExtraValues(LySetController set, LyValueSet values)
addExtraValues
in interface LySetBehaviorInterface
set
- the current LySetController instancevalues
- Current set of values. Additionnal values must be add to this set.public boolean endCreation(LyCreateController create, LyValueSet values)
endCreation
in interface LyCreateBehaviorInterface
create
- the current LyCreateController instancevalues
- Set of values corresponding to the object to create
public boolean endSet(LySetController set, LyValueSet values)
endSet
in interface LySetBehaviorInterface
set
- the current LySetController instancevalues
- Set of values for the modified object
public java.lang.String checkDeletion(LyDeleteController delete, LyObject object)
checkDeletion
in interface LyDeleteBehaviorInterface
delete
- current LyDeleteController instanceobject
- Object checked before deletion.
public LyObjectList checkDeletions(LyDeleteController delete, LyObjectList list)
LySimpleObjectList(list)
and return it.
checkDeletions
in interface LyDeleteBehaviorInterface
delete
- current LyDeleteController instancelist
- list of objects to checked before deletion.
public java.lang.String getConfirmDeletionMessage(LyDeleteController delete, LyObject object)
getConfirmDeletionMessage
in interface LyDeleteBehaviorInterface
delete
- current LyDeleteController instanceobject
- Object checked before deletion.
public boolean endDeletion(LyDeleteController delete)
endDeletion
in interface LyDeleteBehaviorInterface
delete
- current LyDeleteController instance
public void setObject(LyConsultController controller, LyObject object)
setObject
in interface LyConsultBehaviorInterface
controller
- the current LyConsultController instance.object
- the object shown in the form.public void changeState(LyController parent, LyAction action, LyObjectList objects, LyFieldInfo fieldInfo)
parent
- Parent controller from which the given action was invoked.action
- Action of changing state.objects
- Objects on which the state is changed.fieldInfo
- Field info that symbolises state (Generic action only considers a
non-multiple choiceFieldInfo)public void modify(LyController parent, LyAction action, LyObjectList objects, LyValueSet fieldValues)
parent
- Parent controller from which the given action was invoked.action
- Action of modifying.objects
- Objects to modify.fieldValues
- Values to assign on given objects.public void show(LyController parent, LyAction action, LyObjectList objects)
parent
- Parent controller from which the given action was invoked.action
- Action of showing.objects
- Objects to show.public void hide(LyController parent, LyAction action, LyObjectList objects)
parent
- Parent controller from which the given action was invoked.action
- Action of hidding.objects
- Objects to hide.public void copy(LyController parent, LyAction action, LyObjectList objects)
parent
- Parent controller from which the given action was invoked.action
- Action of copying.objects
- Objects to copy.public void paste(LyController parent, LyAction action, java.lang.String objectString)
parent
- Parent controller from which the given action was invoked.action
- pasting actionobjectString
- description of objects to pastepublic LyAction getAction(LyConsultController consult, LyRelationFieldInfo relation, LyClassInfo classInfo)
getAction
in interface LyConsultBehaviorInterface
consult
- the current LyConsultController instance.relation
- Edited relationclassInfo
- Selected class info.
public boolean useEditTable(LySetController controller, LyArrayFieldInfo array)
useEditTable
in interface LySetBehaviorInterface
controller
- The current LySetController instance.array
- The array field info.
public boolean useEditTable(LySetController controller, LyRelationFieldInfo relation)
useEditTable
in interface LySetBehaviorInterface
controller
- The current LySetController instance.relation
- The relation field info.
public LyFilterElement buildFilterElement(LyFilterController filter, LyFieldInfo fieldInfo, boolean not, LyFilterExpression.Condition condition, java.lang.Object value, java.util.BitSet modifiers)
buildFilterElement
in interface LyFilterBehaviorInterface
filter
- the current LyFilterController instancefieldInfo
- FieldInfo on which this filter expression applies.not
- Inverts filter condition or not.condition
- Filter condition.value
- Value of this expression (may be null). This value is an instance of the
class returned by the getValueClass method of LyFieldInfo.modifiers
- List of modifiers (may be null).
public LyAction getSetAction(LyOutlineController outline, LyFieldInfo fieldInfo)
getSetAction
in interface LyOutlineBehaviorInterface
outline
- the current LyOutlineController instance.fieldInfo
- the fieldInfo to be edited.
public void startCommit(LySetController controller)
startCommit
in interface LySetBehaviorInterface
controller
- The current LySetController instance.public void endCommit(LySetController controller)
endCommit
in interface LySetBehaviorInterface
controller
- The current LySetController instance.public LyContext.Position getInsertPosition(LySetController controller, LyRelationFieldInfo relation)
getInsertPosition
in interface LySetBehaviorInterface
controller
- the set controllerrelation
- the relation field info
public void formSaved(LySetController controller, LyFormSave formSave)
formSaved
in interface LySetBehaviorInterface
controller
- The current LySetController instance.formSave
- The formSave that was created.public void formRestored(LySetController controller, LyFormSave formSave)
formRestored
in interface LySetBehaviorInterface
controller
- The current LySetController instance.formSave
- The formSave that was restored.public boolean useSingleContext(LySetController controller, LyRelationFieldInfo parentRelation)
useSingleContext
in interface LySetBehaviorInterface
controller
- The current LySetController instance.parentRelation
- the parent relation for this controller (may be null)public java.lang.String isLocked(LySetController controller, LyObject object)
isLocked
in interface LySetBehaviorInterface
controller
- The current LySetController instance.object
- Object to be checked.
public boolean lockObject(LySetController controller, LyObject object, boolean lock)
lockObject
in interface LySetBehaviorInterface
controller
- The current LySetController instance.object
- Object to be locked/unlocked.lock
- True if lock is required, false for unlock.
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |