|
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.data.LyObject
public class LyObject
This class implements a logical object.
A logical object belongs to a class info, has an object identifier (LyObjectId) that is unique within an application and may have a name.
Logical objects are mapped on physical objects (peer), that contain real values corresponding to non local fields. Local values are managed on logical objects and are not persistent.
Logical objects can be created, modified and deleted. These Operations are managed by objects source (LyObjectSource).
They can be given in objects list or workspaces (dynamic objects lists that may send events on objects).
This class may be inherited to offer non abstract interfaces to access or modify fields. Each class info can have its own subclass.
LyClassInfo
,
LyObjectId
,
LyApplication
,
LyObjectList
,
LyObjectSource
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File version |
static int |
_nbObjects
Number of objects for debug. |
static boolean |
CHECK_OPTIONAL_ON_OBJECTS
|
static short |
CONTROL_APP_CLASS_CONTROLS
|
static short |
CONTROL_APP_FIELD_CONTROLS
|
static short |
CONTROL_APP_ID
|
static short |
CONTROL_CLASS_CONTROLS
|
static short |
CONTROL_DISABLED_ON_LOADING
|
static short |
CONTROL_FIELD_CONTROLS
|
static short |
CONTROL_FULL
|
static short |
CONTROL_ID
|
static short |
CONTROL_LOADING
|
static short |
CONTROL_MANDATORY
|
static short |
CONTROL_NONE
Controls that may be applied on objects. |
static short |
CONTROL_RULES
|
static short |
CONTROL_UNICITY
|
static short |
CONTROL_VALUE
|
static short |
DEFAULT_CONTROL
|
static short |
LEVEL_ERROR
|
static short |
LEVEL_OK
Error levels. |
static short |
LEVEL_WARNING
|
static short |
OPER_LOCAL
|
static short |
OPER_NEED_CONTEXT
|
static short |
OPER_NEED_REFRESH
|
static short |
OPER_NEED_SET
|
static short |
OPER_NONE
Flags for operations. |
Constructor Summary | |
---|---|
LyObject()
Default Constructor. |
|
LyObject(LyClassInfo classInfo)
Constructs a logical object for a given class info. |
|
LyObject(LyClassInfo classInfo,
LyValueSet values)
Constructs a logical object for a given class info with the specified list of values. |
Method Summary | |
---|---|
void |
addError(LyError error)
To add an error to this object. |
short |
callClassControls(LyValueSet values)
Internal method to call controls associated to class info of this object. |
short |
callFieldControls(LyFieldInfo fieldInfo,
java.lang.Object value)
Method to call controls corresponding to the given fieldInfo. |
short |
checkAppId(LyValueSet values)
Checks application id. |
short |
checkId(LyValueSet values)
Checks id. |
boolean |
checkInstance()
Checks if this instance is found on its object source cache. |
boolean |
checkObject()
Checks if this object is found on its object source cache. |
int |
compare(LyObject object,
boolean byName)
Compares this object with another object using default comparison. |
int |
compare(LyObject object,
LySort sort,
boolean byName)
Compares this object with another object using the given sort. |
short |
control()
Method for controlling this object before its creation or set. |
short |
control(LyValueSet oldValues)
Method changes made on this object following an external notification. |
short |
control(LyValueSet oldValues,
boolean loading)
Method changes made on this object following an external notification. |
LyResponse |
create()
Creates an object : to commit its creation on the underlying data provider. |
LyResponse |
create(boolean local)
Creates an object : to commit its creation on the underlying data provider. |
LyResponse |
delete()
Deletes an object : to commit its deletion on the underlying data provider. |
LyResponse |
delete(boolean local)
Deletes an object : to commit its deletion on the underlying data provider. |
void |
freeDaemonValues()
Free local values computed by daemon. |
LyApplication |
getApplication()
Retrieves application of the class info of this object. |
LyObjectList |
getArrayObjects()
Get list of array objects For internal use only. |
LyBooleanValue |
getBooleanValue(LyChoiceFieldInfo fieldInfo)
Get choice value from this object corresponding to the given choice field. |
LyBooleanValue |
getBooleanValue(java.lang.String fieldId)
Get choice value from this object corresponding to the given choice field. |
LyChoiceValue |
getChoiceValue(LyChoiceFieldInfo fieldInfo)
Get choice value from this object corresponding to the given choice field. |
LyChoiceValue |
getChoiceValue(java.lang.String fieldId)
Get choice value from this object corresponding to the given choice field. |
LyClassInfo |
getClassInfo()
Retrieves the class info of this object. |
LyDateValue |
getDateValue(LyDateFieldInfo fieldInfo)
Get date value from this object corresponding to the given date field. |
LyDateValue |
getDateValue(java.lang.String fieldId)
Get date value from this object corresponding to the given date field. |
java.lang.String |
getDisplayId()
Get the id of this object in a displayable form. |
LyEnvironment |
getEnvironment()
Retrieves environment of the class info of this object. |
LyError |
getError(int idx)
To get the error at the specified index. |
LyError |
getError(java.lang.String errorId)
To get the error with the specified id. |
short |
getErrorLevel()
To get the error level of this object. |
short |
getErrorLevel(LyFieldInfo fieldInfo)
Get error level on this object for the given fieldInfo. |
int |
getErrorsCount()
To get the number of errors associated to this object. |
LyValue |
getFieldValue(LyFieldInfo fieldInfo)
Gets the field value from this object for the given field info. |
LyValue |
getFieldValue(java.lang.String fieldId)
Gets the field value from this object for the given field info. |
LyFileValue |
getFileValue(LyFileFieldInfo fieldInfo)
Get file value from this object corresponding to the given file field. |
LyFileValue |
getFileValue(java.lang.String fieldId)
Get file value from this object corresponding to the given file field. |
java.lang.Object |
getFromMemory(LyFieldInfo fieldInfo)
Access a value of an object, but do not compute value. |
java.lang.String |
getId()
Get object id as a string. |
LyObjectList |
getJoinObjects()
Get list of join-objects (objects pointed by this object on join relations). |
java.lang.String |
getLabel(LyFieldInfo fieldInfo,
java.lang.Object fieldValue)
Gets label for given field and value. |
LyError |
getLastError(short level)
To get the last error on this object with the specified level. |
LyObjectList |
getList(LyDataSession session,
LyClassInfo targetClass)
Gets in the given session a list of objects of the specified target class related to this object. |
LyObjectList |
getList(LyDataSession session,
LyClassInfo targetClass,
boolean dynamic)
Gets in the given session a list of objects of the specified target class related to this object. |
LyObjectList |
getList(LyDataSession session,
LyClassInfo targetClass,
boolean dynamic,
boolean sorted)
Gets in the given session a list of objects of the specified target class related to this object. |
LyObjectList |
getList(LyDataSession session,
LyClassInfo targetClass,
boolean dynamic,
boolean sorted,
boolean local)
Gets in the given session a list of objects of the specified target class related to this object. |
java.lang.Object |
getLocalValue(LyFieldInfo fieldInfo)
Internal method to get a local value. |
java.lang.Object |
getLocalValue(LyFieldInfo fieldInfo,
boolean compute)
Internal method to get a local value. |
LyValueSet |
getLocalValues()
Fetchs the complete set of local values for this object. |
java.lang.String |
getName()
Get name of this object. |
LyValueSet |
getNewValues()
Fetchs the complete set of new values for this object. |
LyNumberValue |
getNumberValue(LyNumberFieldInfo fieldInfo)
Get number value from this object corresponding to the given number field. |
LyNumberValue |
getNumberValue(java.lang.String fieldId)
Get number value from this object corresponding to the given number field. |
LyObjectId |
getObjectId()
Returns the identifier of this object (LyObjectId). |
LyObjectId |
getObjectId(LyValueSet values)
Returns the identifier of this object (LyObjectId). |
LyObjectSource |
getObjectSource()
Shortcut to get object source for this object. |
java.lang.Object |
getOldValue(LyFieldInfo fieldInfo)
Gets old value (excluding new value) on this object for given field info. |
LyValueSet |
getOldValues()
Fetchs the complete set of old values for this object (values for which a new value exists). |
LyObject |
getParent()
Deprecated. use getParents |
LyObjectList |
getParents()
Get parents object of this object. |
java.lang.Object |
getPeer()
Retrieves the associated peer (physical object that really stores values for non local fields). |
LyValueSet |
getPendingValues()
Fetchs the complete set of pending values for this object. |
LyRelationValue |
getRelationValue(LyRelationFieldInfo fieldInfo)
Get relation value from this object corresponding to the given relation field. |
LyRelationValue |
getRelationValue(java.lang.String fieldId)
Get relation value from this object corresponding to the given relation field. |
java.lang.String |
getShortLabel(LyFieldInfo fieldInfo,
java.lang.Object fieldValue)
Gets short label for given field and value. |
LyObjectList |
getSubObjects(boolean local)
Get list of sub-objects (objects pointed by this object on composition relations). |
LyTextValue |
getTextValue(LyTextFieldInfo fieldInfo)
Get text value from this object corresponding to the given text field. |
LyTextValue |
getTextValue(java.lang.String fieldId)
Get text value from this object corresponding to the given text field. |
java.lang.Object |
getValue(LyFieldInfo fieldInfo)
Fetchs the value from this object corresponding to the given field info. |
java.lang.Object |
getValue(java.lang.String fieldId)
Fetchs the value from this object corresponding to the given fieldId. |
LyValueSet |
getValues()
Fetchs the complete set of values for this object. |
LyValueSet |
getValues(boolean fromMemory)
Fetchs the complete set of values for this object. |
LyValueSet |
getValues(LyInfoList<LyFieldInfo> fieldInfos)
Fetchs the set of values for the given field infos on this object. |
boolean |
hasNewValue(LyFieldInfo fieldInfo)
Checks if this object has a new value registered for the given field info. |
boolean |
hasNewValues()
Checks if this object has some new values. |
boolean |
hasPendingValue(LyFieldInfo fieldInfo)
Checks if this object has a pending value registered for the given field info. |
boolean |
hasPendingValues()
Checks if this object has some pending values. |
boolean |
instanceOf(LyClassInfo classInfo)
Checks if this object is an instance of the given class info. |
boolean |
isDeleted()
Indicated if this object has been deleted or not. |
boolean |
isFullyLoaded()
Accessor to the the loaded state. |
boolean |
isHidden()
Accessor to the the visibility state. |
boolean |
isSelected()
Accessor to the the selection state. |
boolean |
isTemporary()
Check if this is a temporary object (never created in the system, just an holder for values). |
void |
modified(LyValueSet values)
Method called when a modification notification has been received. |
void |
refresh()
Refresh new values. |
void |
refresh(LyInfoList<LyFieldInfo> fieldInfos)
Refresh a list of fields on this object. |
void |
refresh(LyValueSet values)
Send an update event for this object. |
void |
refreshErrorLevel()
Deprecated. This method must'nt be used directly and will be not public in future releases. |
void |
reload(LyInfoList<LyFieldInfo> fieldInfos)
Method to force the reload of the object. |
LyError |
removeError(int idx)
Remove the error at the specified index. |
LyError |
removeError(LyError error)
Remove the specified error. |
java.lang.Object |
removeLocalValue(LyFieldInfo fieldInfo)
Remove local value for given field info. |
void |
removeNewValue(LyFieldInfo fieldInfo)
Remove the fieldInfo value from the new values list. |
void |
removeNewValues(LyInfoList<LyFieldInfo> fieldInfos)
Remove the list of fieldInfo value from the new values list. |
void |
removePendingValue(LyFieldInfo fieldInfo)
Remove the fieldInfo value from the pending values list. |
void |
removePendingValues(LyInfoList<LyFieldInfo> fieldInfos)
Remove the list of fieldInfo value from the pending values list. |
void |
resetClassErrors()
Reset all errors caused by class controls. |
void |
resetFieldInfoErrors(LyFieldInfo fieldInfo)
Reset all errors caused by the specified fieldInfo. |
void |
resetObjectId()
Reset storing cache of the id. |
LyResponse |
set()
Sets an object : to commit its modification on the underlying data provider. |
LyResponse |
set(boolean local)
Sets an object : to commit its modification on the underlying data provider. |
void |
setClassInfo(LyClassInfo classInfo)
Sets class info for this object. |
void |
setContextType(LyContext.Type type)
Context type during modification state of this object : this information may be used by the LyContext to indicate the kind of modification (User or by code) for read only attributes The default value -1 means 'undefined' or not within a context. |
void |
setFieldValue(LyValue value)
Sets a field value on this object. |
void |
setHidden(boolean hidden)
Modifier of the visibility state. |
void |
setLocalValue(LyFieldInfo fieldInfo,
java.lang.Object value)
Internal method to set a local value. |
void |
setPeer(java.lang.Object peer)
Sets the peer (physical layer) of this object. |
void |
setSelected(boolean selected)
Modifier of the selection state. |
void |
setTemporary(boolean temporary)
Set this object as a temporary object (never created in the system, just an holder for values). |
void |
setValue(LyFieldInfo fieldInfo,
java.lang.Object value)
Sets a value for this object on the given fieldInfo. |
void |
setValue(java.lang.String fieldId,
java.lang.Object value)
Sets a value for this object on the fieldInfo corresponding to the given id. |
void |
setValues(LyValueSet values)
Set values on this object with the given values set. |
void |
skipEncoding(boolean encoding)
Skip encoding of value untill next set() or create() call, or untill this parameter is changed. |
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
public static final short LEVEL_OK
public static final short LEVEL_ERROR
public static final short LEVEL_WARNING
public static final short CONTROL_NONE
public static final short CONTROL_ID
public static final short CONTROL_APP_ID
public static final short CONTROL_MANDATORY
public static final short CONTROL_UNICITY
public static final short CONTROL_VALUE
public static final short CONTROL_RULES
public static final short CONTROL_APP_FIELD_CONTROLS
public static final short CONTROL_APP_CLASS_CONTROLS
public static final short CONTROL_LOADING
public static final short CONTROL_CLASS_CONTROLS
public static final short CONTROL_FIELD_CONTROLS
public static final short CONTROL_FULL
public static final short CONTROL_DISABLED_ON_LOADING
public static short DEFAULT_CONTROL
public static final short OPER_NONE
public static final short OPER_LOCAL
public static final short OPER_NEED_REFRESH
public static final short OPER_NEED_CONTEXT
public static final short OPER_NEED_SET
public static boolean CHECK_OPTIONAL_ON_OBJECTS
public static int _nbObjects
Constructor Detail |
---|
public LyObject()
public LyObject(LyClassInfo classInfo)
classInfo
- Class info of this object.public LyObject(LyClassInfo classInfo, LyValueSet values)
classInfo
- Class info of this object.values
- List of values for this object.Method Detail |
---|
public void setClassInfo(LyClassInfo classInfo)
classInfo
- Class info of this object.
java.lang.IllegalStateException
- If the class info of this object was already set.public void freeDaemonValues()
public final LyClassInfo getClassInfo()
public final boolean instanceOf(LyClassInfo classInfo)
classInfo
- Class info to check.
public final LyApplication getApplication()
public final LyEnvironment getEnvironment()
public final LyObjectSource getObjectSource()
LyClassInfo.getObjectSource()
public LyObjectId getObjectId()
public LyObjectId getObjectId(LyValueSet values)
public final java.lang.String getId()
LyObjectId.getFullString()
public java.lang.String getDisplayId()
public java.lang.String getName()
public java.lang.Object getValue(LyFieldInfo fieldInfo)
fieldInfo
- Field info for which a value is requested. The fieldInfo must exist in the
associated class info.
LyFieldInfo.getValueClass()
public final java.lang.Object getValue(java.lang.String fieldId)
fieldId
- Id of the associated fieldInfo. Must be a valid fieldInfo for the class info
of this object.
java.lang.IllegalArgumentException
- If the field id doesn't correspond to a field info in the
class info of this object.public LyValue getFieldValue(java.lang.String fieldId)
fieldId
- Id of the associated fieldInfo. Must be a valid fieldInfo for the class info
of this object.
public LyValue getFieldValue(LyFieldInfo fieldInfo)
public final LyChoiceValue getChoiceValue(java.lang.String fieldId)
fieldId
- Id of the associated fieldInfo. Must be a valid fieldInfo for the class info
of this object.
public final LyChoiceValue getChoiceValue(LyChoiceFieldInfo fieldInfo)
fieldInfo
- Choice field info for which a value is requested.
public final LyBooleanValue getBooleanValue(java.lang.String fieldId)
fieldId
- Id of the associated fieldInfo. Must be a valid fieldInfo for the class info
of this object.
public final LyBooleanValue getBooleanValue(LyChoiceFieldInfo fieldInfo)
fieldInfo
- Choice field info for which a value is requested.
public final LyDateValue getDateValue(java.lang.String fieldId)
fieldId
- Id of the associated fieldInfo. Must be a valid fieldInfo for the class info
of this object.
public final LyDateValue getDateValue(LyDateFieldInfo fieldInfo)
fieldInfo
- Date field info for which a value is requested.
public final LyFileValue getFileValue(java.lang.String fieldId)
fieldId
- Id of the associated fieldInfo. Must be a valid fieldInfo for the class info
of this object.
public final LyFileValue getFileValue(LyFileFieldInfo fieldInfo)
fieldInfo
- File field info for which a value is requested.
public final LyNumberValue getNumberValue(java.lang.String fieldId)
fieldId
- Id of the associated fieldInfo. Must be a valid fieldInfo for the class info
of this object.
public final LyNumberValue getNumberValue(LyNumberFieldInfo fieldInfo)
fieldInfo
- Number field info for which a value is requested.
public final LyRelationValue getRelationValue(java.lang.String fieldId)
fieldId
- Id of the associated fieldInfo. Must be a valid fieldInfo for the class info
of this object.
public final LyRelationValue getRelationValue(LyRelationFieldInfo fieldInfo)
fieldInfo
- Relation field info for which a value is requested.
public final LyTextValue getTextValue(java.lang.String fieldId)
fieldId
- Id of the associated fieldInfo. Must be a valid fieldInfo for the class info
of this object.
public final LyTextValue getTextValue(LyTextFieldInfo fieldInfo)
fieldInfo
- Text field info for which a value is requested.
public final java.lang.Object getFromMemory(LyFieldInfo fieldInfo)
fieldInfo
- Field info on which a value is requested.IllegalArgumentException
- If the given field info is not contained in the class info
of this object.IllegalStateException
- If the binding of the given field info is not supported.
LyFieldInfo.getValueClass()
,
get(LyFieldInfo)
public final java.lang.Object getLocalValue(LyFieldInfo fieldInfo)
fieldInfo
- The local fieldInfo
public java.lang.Object getLocalValue(LyFieldInfo fieldInfo, boolean compute)
fieldInfo
- The local fieldInfocompute
- Allow computing of computed values.
public void setLocalValue(LyFieldInfo fieldInfo, java.lang.Object value)
fieldInfo
- The local fieldInfovalue
- The local value for the given field info.public java.lang.Object removeLocalValue(LyFieldInfo fieldInfo)
fieldInfo
- Local field info for which value is removed.
public LyValueSet getValues(boolean fromMemory)
public LyValueSet getValues()
public LyValueSet getValues(LyInfoList<LyFieldInfo> fieldInfos)
fieldInfos
- Field infos on which values are requested.
public LyValueSet getLocalValues()
public LyValueSet getNewValues()
public LyValueSet getPendingValues()
public LyValueSet getOldValues()
public final java.lang.Object getOldValue(LyFieldInfo fieldInfo)
fieldInfo
- Field info for which the old value is requested.
public java.lang.Object getPeer()
public void setValue(java.lang.String fieldId, java.lang.Object value)
fieldId
- Id of the set field info.value
- Value to set on the corresponding field info. This value
should be an instance of the class returned by getValueClass
of the field info.IllegalArgumentException
- If the field id doesn't correspond to a field info in the
class info of this object.LyFieldInfo.getValueClass()
public void setValue(LyFieldInfo fieldInfo, java.lang.Object value)
fieldInfo
- Field info to set.value
- Value to set on that field. This value should be an instance of the class
returned by getValueClass of the field info.LyFieldInfo.getValueClass()
public void setFieldValue(LyValue value)
value
- Field value to set on this object.public void setValues(LyValueSet values)
values
- Values set containing field values to set on this object.public void setPeer(java.lang.Object peer)
java.lang.IllegalStateException
- If this object has already a peer.
java.lang.IllegalArgumentException
- If the class of the given peer is not the expected
physical object class.public LyResponse create()
java.lang.IllegalStateException
- If the class info for this object is abstract.setFieldValue(leon.data.LyValue)
,
setValue(java.lang.String, java.lang.Object)
public LyResponse create(boolean local)
local
- Indicates if the creation must be local or not.
java.lang.IllegalStateException
- If the class info for this object is abstract.setFieldValue(leon.data.LyValue)
,
setValue(java.lang.String, java.lang.Object)
public LyResponse set()
java.lang.IllegalStateException
- If the peer (physical object) doesn't exist and the class
info for this object is not local.setFieldValue(leon.data.LyValue)
,
setValue(java.lang.String, java.lang.Object)
public LyResponse set(boolean local)
local
- Indicates if the modification must be local or not.
java.lang.IllegalStateException
- If the peer (physical object) doesn't exist and the class
info for this object is not local.setFieldValue(leon.data.LyValue)
,
setValue(java.lang.String, java.lang.Object)
public LyResponse delete()
java.lang.IllegalStateException
- If the peer (physical object) doesn't exist and the class
info for this object is not local.public LyResponse delete(boolean local)
local
- Indicates if the deletion is local or not
java.lang.IllegalStateException
- If the peer (physical object) doesn't exist and the class
info for this object is not local.public boolean checkObject()
public int compare(LyObject object, LySort sort, boolean byName)
object
- Object to compare with this object.sort
- Sort used to compare the two objects.byName
- Boolean indicating whether default sorting is done on ids or names when the
two objects are similar for the given sort. This is used to have a full order
when sorting an objects list to be sure that sorting the same list twice will
give the same result.
public int compare(LyObject object, boolean byName)
object
- Object to compare with this object.byName
- Boolean indicating whether sorting is done on ids or names.
public LyObjectList getList(LyDataSession session, LyClassInfo targetClass, boolean dynamic, boolean sorted)
session
- Session in which this search occurs. This parameter may be null if the
request is not dynamic.targetClass
- Target class.dynamic
- Boolean indicating if the result list has to be dynamic or not.
public LyObjectList getList(LyDataSession session, LyClassInfo targetClass, boolean dynamic, boolean sorted, boolean local)
session
- Session in which this search occurs. This parameter may be null if the
request is not dynamic.targetClass
- Target class.dynamic
- Boolean indicating if the result list has to be dynamic or not.
public LyObjectList getList(LyDataSession session, LyClassInfo targetClass, boolean dynamic)
session
- Session in which this search occurs. This parameter may be null if the
request is not dynamic.targetClass
- Target class.dynamic
- Boolean indicating if the result list has to be dynamic or not.
public LyObjectList getList(LyDataSession session, LyClassInfo targetClass)
session
- Session in which this search occurs. This parameter may be null.targetClass
- Target class.
public LyObjectList getArrayObjects()
public LyObjectList getSubObjects(boolean local)
public LyObjectList getJoinObjects()
public java.lang.String toString()
toString
in class java.lang.Object
public final boolean isDeleted()
public void removeNewValue(LyFieldInfo fieldInfo)
fieldInfo
- The fieldInfopublic void removeNewValues(LyInfoList<LyFieldInfo> fieldInfos)
fieldInfos
- The list of fieldInfospublic void removePendingValue(LyFieldInfo fieldInfo)
fieldInfo
- public void removePendingValues(LyInfoList<LyFieldInfo> fieldInfos)
fieldInfos
- The list for fieldInfos.public void resetObjectId()
public final short getErrorLevel()
public short getErrorLevel(LyFieldInfo fieldInfo)
fieldInfo
- FieldInfo on which error level is requested.
public void addError(LyError error)
error
- the error to add.public LyError removeError(int idx)
idx
-
public LyError removeError(LyError error)
idx
-
public int getErrorsCount()
public LyError getError(int idx)
idx
- the index
public LyError getError(java.lang.String errorId)
errorId
- Id of the requested error.
public LyError getLastError(short level)
level
- the level of the error
public void resetFieldInfoErrors(LyFieldInfo fieldInfo)
fieldInfo
- Cause of errors to reset.public void resetClassErrors()
public void refreshErrorLevel()
public void refresh(LyInfoList<LyFieldInfo> fieldInfos)
fieldInfos
- List of fields to refresh (may be null).public void refresh()
public void refresh(LyValueSet values)
values
- List of oldValues updated (may be null).public LyObject getParent()
public LyObjectList getParents()
public short callFieldControls(LyFieldInfo fieldInfo, java.lang.Object value)
fieldInfo
- FieldInfo that holds on controls to apply.value
- Value assigned on this object for the given field info.
public short callClassControls(LyValueSet values)
values
- List of controlled values.
public short checkId(LyValueSet values)
public short checkAppId(LyValueSet values)
public void setSelected(boolean selected)
public boolean isSelected()
public void setHidden(boolean hidden)
public final boolean isHidden()
public boolean hasNewValue(LyFieldInfo fieldInfo)
fieldInfo
- The field info to check.
public boolean hasNewValues()
public boolean hasPendingValue(LyFieldInfo fieldInfo)
fieldInfo
- The field info to check.
public boolean hasPendingValues()
public java.lang.String getLabel(LyFieldInfo fieldInfo, java.lang.Object fieldValue)
fieldInfo
- fieldValue
-
public java.lang.String getShortLabel(LyFieldInfo fieldInfo, java.lang.Object fieldValue)
fieldInfo
- fieldValue
-
public short control()
public short control(LyValueSet oldValues)
oldValues
- Old values for all the changes made on this object.public short control(LyValueSet oldValues, boolean loading)
oldValues
- Old values for all the changes made on this object.loading
- Boolean indicating if controls occur on loading or not.public final boolean isTemporary()
public final void setTemporary(boolean temporary)
temporary
- state of the object.public final void skipEncoding(boolean encoding)
boolean
- encoding status. set() or create() clears this skip encoding statuspublic void reload(LyInfoList<LyFieldInfo> fieldInfos)
fieldInfos
- List of fieldInfos to reload.public void setContextType(LyContext.Type type)
type
- one of the LyContext.TYPE_xxx or -1 if undefined.public boolean checkInstance()
public void modified(LyValueSet values)
values
- List of old values before the modification.public final boolean isFullyLoaded()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |