public class PropertyRenderer extends Object implements IPresentationSupport, IPresentationHandler, IFieldHandler, IPresentationSupportFactory
The PropertyRenderer represents the first class "field" (property)
object, such as "age" of a person. In this role IPresentationSupport
is implemented, so that you can ask for a label for this field, for example
for display in a table.
In the role IPresentationHandler, the real value of the field within
an object can be queried.
ATTR_DESCRIPTION, ATTR_ICON, ATTR_LABEL, ATTR_TIP| Constructor and Description |
|---|
PropertyRenderer(String name,
String label) |
PropertyRenderer(String name,
String label,
Format format) |
| Modifier and Type | Method and Description |
|---|---|
IPresentationSupport |
createPresentationSupport(Object object)
Create a
IPresentationSupport instance that can be used to
present object. |
String |
getDescription()
A long, descriptive string representation.
|
String |
getDescription(Object object)
A long, descriptive string representation.
|
IPresentationSupport |
getFieldPresentation() |
Format |
getFormat() |
String |
getIconName()
A name for an icon.
|
String |
getIconName(Object object)
A name for an icon.
|
String |
getLabel()
A short string representation (suitable for example for use with an icon
or menu item).
|
String |
getLabel(Object object)
A short string representation (suitable for example for use with an icon
or menu item).
|
String |
getName() |
String |
getTip()
An "intermediate" length description (suitable for example with a
tooltip).
|
String |
getTip(Object object)
An "intermediate" length description (suitable for example with a
tooltip).
|
Object |
getValue(Object object)
Make a reflective read access to the field represented by this within the
receiver. |
IPresentationSupport |
getValuePresentation(Object object) |
void |
setFormat(Format format) |
Object |
setValue(Object receiver,
Object value)
Make a reflective write access to the field represented by this within
receiver. |
public IPresentationSupport createPresentationSupport(Object object)
IPresentationSupportFactoryIPresentationSupport instance that can be used to
present object.createPresentationSupport in interface IPresentationSupportFactoryobject - The object to be presented.IPresentationSupport instance that can be used
to present object.public String getDescription()
IPresentationSupportgetDescription in interface IPresentationSupportpublic String getDescription(Object object)
IPresentationHandlergetDescription in interface IPresentationHandlerpublic IPresentationSupport getFieldPresentation()
public Format getFormat()
public String getIconName()
IPresentationSupportgetIconName in interface IPresentationSupportpublic String getIconName(Object object)
IPresentationHandlergetIconName in interface IPresentationHandlerpublic String getLabel()
IPresentationSupportgetLabel in interface IPresentationSupportpublic String getLabel(Object object)
IPresentationHandlergetLabel in interface IPresentationHandlerpublic String getName()
public String getTip()
IPresentationSupportgetTip in interface IPresentationSupportpublic String getTip(Object object)
IPresentationHandlergetTip in interface IPresentationHandlerpublic Object getValue(Object object) throws FieldAccessException
IFieldHandlerreceiver.getValue in interface IFieldHandlerobject - The object hosting the field.FieldAccessExceptionpublic IPresentationSupport getValuePresentation(Object object)
public void setFormat(Format format)
public Object setValue(Object receiver, Object value) throws FieldAccessException
IFieldHandlerreceiver.setValue in interface IFieldHandlerreceiver - The object hosting the field.value - The new value for the fieldFieldAccessExceptionCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.