public interface PropertyAccessor
Type | Property and Description |
---|---|
boolean |
isComplex
Gets the value of the property complexProperty.
|
boolean |
isDate
Gets the value of the property dateProperty.
|
boolean |
isInt
Gets the value of the property intProperty.
|
Modifier and Type | Method and Description |
---|---|
void |
editProperty(Item item,
ActionContext actionContext,
MultipleValueInputActionListener listener)
Invoke editor for property
|
java.lang.String |
getActivatingMessage(java.util.Locale locale)
Get a localized message, which will displayed when
this PropertyAccessor is activated in the Column Chooser
|
java.util.List |
getCommands(Item item)
Get list of commands associated with respective property.
|
java.lang.String |
getDescription(java.util.Locale locale)
Obtain a description which can be used by a tooltip for example
|
java.lang.String |
getDisplayName(java.util.Locale locale)
Obtain a localized display name for the property accessed using this PropertyAccessor
|
java.lang.String |
getPropertyName()
Obtain name of property being accessed via this accessor.
|
Item |
getReferencedItem(Item item)
Get the Item referenced by this property
|
SelectItemDescriptor |
getSelectReferencedItemDescriptor(Item item)
Provide context description for selecting referenced item
|
java.lang.String |
getValue(Item item)
Get value of property for given Item
|
boolean |
isComplexProperty()
Gets the value of the property complexProperty.
|
boolean |
isDateProperty()
Gets the value of the property dateProperty.
|
boolean |
isIntProperty()
Gets the value of the property intProperty.
|
boolean |
isReadOnly(Item item)
Check whether accessor allows for read access only
|
boolean |
isTextEditAllowed(Item item)
Check whether property value may be edited directly (that is as a string)
|
void |
selectReferencedItem(Item item,
ActionContext actionContext)
Invoke editor for property
|
void |
setValue(Item item,
java.lang.String value)
Set value of property for given Item
|
boolean isComplexProperty
boolean isDateProperty
boolean isIntProperty
java.lang.String getPropertyName()
java.lang.String getDisplayName(java.util.Locale locale)
java.lang.String getDescription(java.util.Locale locale)
java.lang.String getValue(Item item) throws java.lang.Exception
java.lang.Exception
void setValue(Item item, java.lang.String value) throws java.lang.Exception
java.lang.Exception
boolean isReadOnly(Item item)
item
- the item for which it is to be checked whether the access is read-onlyboolean isComplexProperty()
SelectItemDescriptor getSelectReferencedItemDescriptor(Item item)
Item getReferencedItem(Item item)
item
- the current Itemboolean isTextEditAllowed(Item item)
item
- the current Itemvoid selectReferencedItem(Item item, ActionContext actionContext)
actionContext
- void editProperty(Item item, ActionContext actionContext, MultipleValueInputActionListener listener)
actionContext
- java.util.List getCommands(Item item)
item
- java.lang.String getActivatingMessage(java.util.Locale locale)
boolean isDateProperty()
boolean isIntProperty()