org.eclipse.net4j.util.ui
Class DefaultPropertySource<RECEIVER>

java.lang.Object
  extended by org.eclipse.net4j.util.ui.DefaultPropertySource<RECEIVER>
All Implemented Interfaces:
IPropertySource

public class DefaultPropertySource<RECEIVER>
extends Object
implements IPropertySource

Since:
3.2

Nested Class Summary
static class DefaultPropertySource.DelegatingPropertyDescriptor<RECEIVER>
           
 
Constructor Summary
DefaultPropertySource(RECEIVER receiver)
           
DefaultPropertySource(RECEIVER object, IPropertyProvider<RECEIVER> provider)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPropertySource

public DefaultPropertySource(RECEIVER receiver)

DefaultPropertySource

public DefaultPropertySource(RECEIVER object,
                             IPropertyProvider<RECEIVER> provider)
Method Detail

getReceiver

public RECEIVER getReceiver()

addDescriptor

public PropertyDescriptor addDescriptor(String category,
                                        Object id,
                                        String displayName,
                                        String description)

addDescriptors

public void addDescriptors(IPropertyProvider<RECEIVER> provider)

getPropertyDescriptors

public IPropertyDescriptor[] getPropertyDescriptors()
Specified by:
getPropertyDescriptors in interface IPropertySource

getPropertyDescriptor

public IPropertyDescriptor getPropertyDescriptor(Object id)

getProperty

public Property<RECEIVER> getProperty(Object id)

getPropertyValue

public Object getPropertyValue(Object id)
Specified by:
getPropertyValue in interface IPropertySource

isPropertySet

public boolean isPropertySet(Object id)
Specified by:
isPropertySet in interface IPropertySource

resetPropertyValue

public void resetPropertyValue(Object id)
Specified by:
resetPropertyValue in interface IPropertySource

setPropertyValue

public void setPropertyValue(Object id,
                             Object value)
Specified by:
setPropertyValue in interface IPropertySource

getEditableValue

public Object getEditableValue()
Specified by:
getEditableValue in interface IPropertySource


Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.