public class DefaultPropertySource<RECEIVER> extends java.lang.Object implements IPropertySource
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultPropertySource.Augmented<RECEIVER,AUGMENTING_RECEIVER> |
static class |
DefaultPropertySource.DelegatingPropertyDescriptor<RECEIVER> |
| Constructor and Description |
|---|
DefaultPropertySource(RECEIVER receiver) |
DefaultPropertySource(RECEIVER object,
IPropertyProvider<RECEIVER> provider) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addDescriptor(IPropertyDescriptor descriptor) |
PropertyDescriptor |
addDescriptor(java.lang.String category,
java.lang.Object id,
java.lang.String displayName,
java.lang.String description) |
void |
addDescriptors(IPropertyProvider<RECEIVER> provider) |
java.lang.Object |
getEditableValue() |
Property<RECEIVER> |
getProperty(java.lang.Object id) |
IPropertyDescriptor |
getPropertyDescriptor(java.lang.Object id) |
IPropertyDescriptor[] |
getPropertyDescriptors() |
java.lang.Object |
getPropertyValue(java.lang.Object id) |
RECEIVER |
getReceiver() |
boolean |
isPropertySet(java.lang.Object id) |
void |
resetPropertyValue(java.lang.Object id) |
void |
setPropertyValue(java.lang.Object id,
java.lang.Object value) |
public DefaultPropertySource(RECEIVER receiver)
public DefaultPropertySource(RECEIVER object, IPropertyProvider<RECEIVER> provider)
public RECEIVER getReceiver()
public boolean addDescriptor(IPropertyDescriptor descriptor)
public PropertyDescriptor addDescriptor(java.lang.String category, java.lang.Object id, java.lang.String displayName, java.lang.String description)
public void addDescriptors(IPropertyProvider<RECEIVER> provider)
public IPropertyDescriptor[] getPropertyDescriptors()
getPropertyDescriptors in interface IPropertySourcepublic IPropertyDescriptor getPropertyDescriptor(java.lang.Object id)
public java.lang.Object getPropertyValue(java.lang.Object id)
getPropertyValue in interface IPropertySourcepublic boolean isPropertySet(java.lang.Object id)
isPropertySet in interface IPropertySourcepublic void resetPropertyValue(java.lang.Object id)
resetPropertyValue in interface IPropertySourcepublic void setPropertyValue(java.lang.Object id,
java.lang.Object value)
setPropertyValue in interface IPropertySourcepublic java.lang.Object getEditableValue()
getEditableValue in interface IPropertySourceCopyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html