|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PropertyAccessor
Method Summary | |
---|---|
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()
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 |
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 |
Method Detail |
---|
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-only
boolean isComplexProperty()
SelectItemDescriptor getSelectReferencedItemDescriptor(Item item)
Item getReferencedItem(Item item)
item
- the current Item
boolean 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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |