public interface EntityProperty
Modifier and Type | Method and Description |
---|---|
void |
addCommitListener(EntityPropertyCommitListener listener) |
void |
addOnChangedListener(EntityPropertyChangedListener listener)
Use to add an implementation of the
EntityPropertyChangedListener interface to the
collection of objects that listen for changes of the value of this property. |
void |
addValidationCompletedListener(ValidationCompletedListener listener) |
void |
commit()
Persists the validated value candidate on the source object's property.
|
int |
getColumnPosition() |
int |
getColumnSpan() |
PropertyConverter |
getConverter() |
int |
getCoreEditorLayoutId() |
Object |
getCustomMetadata() |
int |
getEditorLayoutId() |
HashMap<String,Object> |
getEditorParams() |
Class<? extends EntityPropertyEditor> |
getEditorType() |
Object[] |
getEnumConstants() |
String |
getGroupName() |
String |
getHeader() |
int |
getHeaderLayoutId() |
String |
getHintText() |
int |
getImageResource() |
Entity |
getOwner() |
int |
getPosition() |
boolean |
getReadOnly() |
boolean |
getRequired() |
boolean |
getSkip() |
int |
getValidationLayoutId() |
PropertyValidator |
getValidator() |
Object |
getValue()
Gets the value currently persisted on the source object.
|
Object |
getValueCandidate()
Gets the current value candidate that, in case of successful validation, will be persisted
on the source object's property.
|
Class<? extends EntityPropertyViewer> |
getViewerType() |
boolean |
isTypePrimitive() |
boolean |
isValid() |
String |
name()
Returns the name of the property.
|
void |
readMetadata(EntityPropertyMetadata metadata) |
void |
removeCommitListener(EntityPropertyCommitListener listener) |
void |
removeOnChangedListener(EntityPropertyChangedListener listener)
Use to remove the provided implementation of the
EntityPropertyChangedListener interface
from the collection of objects that listen for changes of the value of this property. |
void |
removeValidationCompletedListener(ValidationCompletedListener listener) |
void |
setColumnPosition(int value) |
void |
setColumnSpan(int value) |
void |
setConverter(PropertyConverter converter) |
void |
setCoreEditorLayoutId(int value) |
void |
setCustomMetadata(Object value) |
void |
setEditorLayoutId(int value) |
void |
setEditorParams(HashMap<String,Object> params) |
void |
setEditorType(Class<EntityPropertyEditor> value) |
void |
setGroupName(String value) |
void |
setHeader(String value) |
void |
setHeaderLayoutId(int value) |
void |
setHintText(String value) |
void |
setImageResource(int value) |
void |
setPosition(int value) |
void |
setReadOnly(boolean value) |
void |
setRequired(boolean value) |
void |
setSkip(boolean value) |
void |
setValidationLayoutId(int value) |
void |
setValidator(PropertyValidator validator) |
void |
setValueCandidate(Object value)
Sets a value that, in case of successful validation, will be persisted on the source object's
property when
EntityProperty.commit() is called. |
void |
setViewerType(Class<EntityPropertyViewer> value) |
void |
tryCommit(Object value)
Tries to validate the provided value and if the validation succeeds, the value is committed.
|
Class |
type()
Gets the type of the property.
|
void |
updateValues(Object[] values) |
void |
validate(Object value) |
void setCustomMetadata(Object value)
Object getCustomMetadata()
void setReadOnly(boolean value)
boolean getReadOnly()
int getEditorLayoutId()
void setEditorLayoutId(int value)
int getCoreEditorLayoutId()
void setCoreEditorLayoutId(int value)
int getHeaderLayoutId()
void setHeaderLayoutId(int value)
int getValidationLayoutId()
void setValidationLayoutId(int value)
Object[] getEnumConstants()
boolean isTypePrimitive()
void readMetadata(EntityPropertyMetadata metadata)
Class<? extends EntityPropertyViewer> getViewerType()
void setViewerType(Class<EntityPropertyViewer> value)
Class<? extends EntityPropertyEditor> getEditorType()
void setEditorType(Class<EntityPropertyEditor> value)
boolean getSkip()
void setSkip(boolean value)
void setColumnPosition(int value)
int getColumnPosition()
int getColumnSpan()
void setColumnSpan(int value)
int getPosition()
void setPosition(int value)
String getHeader()
void setHeader(String value)
int getImageResource()
void setImageResource(int value)
String getGroupName()
void setGroupName(String value)
String getHintText()
void setHintText(String value)
boolean getRequired()
void setRequired(boolean value)
void addOnChangedListener(EntityPropertyChangedListener listener)
EntityPropertyChangedListener
interface to the
collection of objects that listen for changes of the value of this property.listener
- the event listener.void removeOnChangedListener(EntityPropertyChangedListener listener)
EntityPropertyChangedListener
interface
from the collection of objects that listen for changes of the value of this property.listener
- the event listener to remove.void addValidationCompletedListener(ValidationCompletedListener listener)
void removeValidationCompletedListener(ValidationCompletedListener listener)
void addCommitListener(EntityPropertyCommitListener listener)
void removeCommitListener(EntityPropertyCommitListener listener)
Class type()
Class
class representing the type.String name()
Object getValueCandidate()
void setValueCandidate(Object value)
EntityProperty.commit()
is called.value
- the value candidate to set.Entity getOwner()
Object getValue()
void commit()
void tryCommit(Object value)
void setConverter(PropertyConverter converter)
PropertyConverter getConverter()
void setValidator(PropertyValidator validator)
PropertyValidator getValidator()
void validate(Object value)
boolean isValid()
void updateValues(Object[] values)