public abstract class AbstractPropertyAccessor extends java.lang.Object implements PropertyAccessor
Type | Property and Description |
---|---|
boolean |
isComplex
Check whether property is complex May be due to referenced item
|
boolean |
isDate
Returns the current accessor is having date value or not
|
boolean |
isInt
Returns the current accessor is having number value or not
|
Constructor and Description |
---|
AbstractPropertyAccessor() |
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 tool tip for example
|
java.lang.String |
getDisplayName(java.util.Locale locale)
Obtain a localized display name for the property accessed using this PropertyAccessor
|
Item |
getReferencedItem(Item item)
Get the Item referenced by this property
|
SelectItemDescriptor |
getSelectReferencedItemDescriptor(Item item)
Provide context description for selecting referenced item
|
boolean |
isComplexProperty()
Check whether property is complex May be due to referenced item
|
boolean |
isDateProperty()
Returns the current accessor is having date value or not
|
boolean |
isIntProperty()
Returns the current accessor is having number value or not
|
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
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPropertyName, getValue, isReadOnly, setValue
isComplexProperty
in interface PropertyAccessor
isDateProperty
in interface PropertyAccessor
isIntProperty
in interface PropertyAccessor
public java.lang.String getDisplayName(java.util.Locale locale)
getDisplayName
in interface PropertyAccessor
public java.lang.String getDescription(java.util.Locale locale)
getDescription
in interface PropertyAccessor
public boolean isComplexProperty()
isComplexProperty
in interface PropertyAccessor
public SelectItemDescriptor getSelectReferencedItemDescriptor(Item item)
getSelectReferencedItemDescriptor
in interface PropertyAccessor
public Item getReferencedItem(Item item)
getReferencedItem
in interface PropertyAccessor
item
- the current Itempublic boolean isTextEditAllowed(Item item)
isTextEditAllowed
in interface PropertyAccessor
item
- the current Itempublic void selectReferencedItem(Item item, ActionContext actionContext)
selectReferencedItem
in interface PropertyAccessor
public void editProperty(Item item, ActionContext actionContext, MultipleValueInputActionListener listener)
editProperty
in interface PropertyAccessor
public java.util.List getCommands(Item item)
PropertyAccessor
getCommands
in interface PropertyAccessor
public java.lang.String getActivatingMessage(java.util.Locale locale)
getActivatingMessage
in interface PropertyAccessor
public boolean isDateProperty()
PropertyAccessor
isDateProperty
in interface PropertyAccessor
public boolean isIntProperty()
PropertyAccessor
isIntProperty
in interface PropertyAccessor