
public class DefaultPropertySource<RECEIVER> extends Object implements IPropertySource
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultPropertySource.DelegatingPropertyDescriptor<RECEIVER> |
| Constructor and Description |
|---|
DefaultPropertySource(RECEIVER receiver) |
DefaultPropertySource(RECEIVER object,
IPropertyProvider<RECEIVER> provider) |
| Modifier and Type | Method and Description |
|---|---|
PropertyDescriptor |
addDescriptor(String category,
Object id,
String displayName,
String description) |
void |
addDescriptors(IPropertyProvider<RECEIVER> provider) |
Object |
getEditableValue() |
Property<RECEIVER> |
getProperty(Object id) |
IPropertyDescriptor |
getPropertyDescriptor(Object id) |
IPropertyDescriptor[] |
getPropertyDescriptors() |
Object |
getPropertyValue(Object id) |
RECEIVER |
getReceiver() |
boolean |
isPropertySet(Object id) |
void |
resetPropertyValue(Object id) |
void |
setPropertyValue(Object id,
Object value) |
public DefaultPropertySource(RECEIVER receiver)
public DefaultPropertySource(RECEIVER object, IPropertyProvider<RECEIVER> provider)
public RECEIVER getReceiver()
public PropertyDescriptor addDescriptor(String category, Object id, String displayName, String description)
public void addDescriptors(IPropertyProvider<RECEIVER> provider)
public IPropertyDescriptor[] getPropertyDescriptors()
getPropertyDescriptors in interface IPropertySourcepublic IPropertyDescriptor getPropertyDescriptor(Object id)
public Object getPropertyValue(Object id)
getPropertyValue in interface IPropertySourcepublic boolean isPropertySet(Object id)
isPropertySet in interface IPropertySourcepublic void resetPropertyValue(Object id)
resetPropertyValue in interface IPropertySourcepublic void setPropertyValue(Object id, Object value)
setPropertyValue in interface IPropertySourcepublic Object getEditableValue()
getEditableValue in interface IPropertySourceCopyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.