public class DefaultPropertySource<RECEIVER> extends 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(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 boolean addDescriptor(IPropertyDescriptor descriptor)
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) 2014 Eike Stepper (Berlin, 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