de.intarsys.tools.presentation
Class PropertyPresentationItem
java.lang.Object
de.intarsys.tools.presentation.PropertyPresentation
de.intarsys.tools.presentation.PropertyPresentationItem
- All Implemented Interfaces:
- IPresentationSupport, IValueHolder
public class PropertyPresentationItem
- extends PropertyPresentation
- implements IValueHolder
This is a *very* generic tool for displaying object state.
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.
|
Constructor Summary |
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)
|
PropertyPresentationItem
public PropertyPresentationItem(Object object,
String name,
String label)
PropertyPresentationItem
public PropertyPresentationItem(Object object,
String name,
String label,
Format format)
PropertyPresentationItem
public PropertyPresentationItem(Object object,
String name,
String label,
Object value,
Format format)
PropertyPresentationItem
public PropertyPresentationItem(String label,
Object value)
PropertyPresentationItem
public PropertyPresentationItem(String label,
Object value,
Format format)
get
public Object get()
- Description copied from interface:
IValueHolder
- Dereference the
IValueHolder.
- Specified by:
get in interface IValueHolder
- Returns:
- The referenced object.
getFormat
public Format getFormat()
getName
public String getName()
getValueDescription
public String getValueDescription()
getValueIconName
public String getValueIconName()
getValueLabel
public String getValueLabel()
getValuePresentation
public IPresentationSupport getValuePresentation()
- Overrides:
getValuePresentation in class PropertyPresentation
getValueTip
public String getValueTip()
set
public Object set(Object newValue)
- Description copied from interface:
IValueHolder
- Assign a new value.
- Specified by:
set in interface IValueHolder
- Returns:
- The previous value (optional)
setFormat
public void setFormat(Format format)
Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.