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 IPropertySource
public IPropertyDescriptor getPropertyDescriptor(Object id)
public Object getPropertyValue(Object id)
getPropertyValue
in interface IPropertySource
public boolean isPropertySet(Object id)
isPropertySet
in interface IPropertySource
public void resetPropertyValue(Object id)
resetPropertyValue
in interface IPropertySource
public void setPropertyValue(Object id, Object value)
setPropertyValue
in interface IPropertySource
public Object getEditableValue()
getEditableValue
in interface IPropertySource
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.