public class PropertyPresentationItem extends PropertyPresentation implements IValueHolder
The PropertyPresentationItem represents a view on object state, such
as the "age" property of a person in combination with its value.
The value can be both static (frozen) or dynamic (re-evaluation).
For both field and value part the IPresentationSupport can be
requested.
ATTR_DESCRIPTION, ATTR_ICON, ATTR_LABEL, ATTR_TIP| Constructor and Description |
|---|
PropertyPresentationItem(Object object,
String name,
String label) |
PropertyPresentationItem(Object object,
String name,
String label,
Format format) |
PropertyPresentationItem(Object object,
String name,
String label,
Object value,
Format format) |
PropertyPresentationItem(String label,
Object value) |
PropertyPresentationItem(String label,
Object value,
Format format) |
| Modifier and Type | Method and Description |
|---|---|
Object |
get()
Dereference the
IValueHolder. |
Format |
getFormat() |
String |
getName() |
String |
getValueDescription() |
String |
getValueIconName() |
String |
getValueLabel() |
IPresentationSupport |
getValuePresentation() |
String |
getValueTip() |
Object |
set(Object newValue)
Assign a new value.
|
void |
setFormat(Format format) |
getDescription, getFieldPresentation, getIconName, getLabel, getObject, getTippublic PropertyPresentationItem(Object object, String name, String label, Format format)
public PropertyPresentationItem(Object object, String name, String label, Object value, Format format)
public Object get()
IValueHolderIValueHolder.get in interface IValueHolderpublic Format getFormat()
public String getName()
public String getValueDescription()
public String getValueIconName()
public String getValueLabel()
public IPresentationSupport getValuePresentation()
getValuePresentation in class PropertyPresentationpublic String getValueTip()
public Object set(Object newValue)
IValueHolderset in interface IValueHolderpublic void setFormat(Format format)
Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.