|
Runtime | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.gmf.runtime.common.ui.services.properties.descriptors.CompositePropertySource
public class CompositePropertySource
A concrete implementation of the ICompositePropertySource
interface. A composite property source - is a IPropertySource
object, which allows link ICompositePropertySource object into
a linked list structure. The underlaying linked list is transparent to a
client - from outside it is a IPropertySource object.
| Constructor Summary | |
|---|---|
CompositePropertySource(java.lang.Object object)
Create an instance of the ICompositePropertySource for the
given object. |
|
CompositePropertySource(java.lang.Object object,
java.lang.String category)
Create an instance of the ICompositePropertySource for the
given object. |
|
| Method Summary | |
|---|---|
void |
addPropertyDescriptor(ICompositeSourcePropertyDescriptor descriptor)
Adds a new property descriptor to the property source. |
void |
addPropertySource(ICompositePropertySource source)
Add another composite property source to the linked list |
java.lang.String |
getCategory()
Returns the category, if one is set for this link. |
java.lang.Object |
getEditableValue()
|
protected ICompositePropertySource |
getEnclosed()
Returns the next link on the linked list. |
protected java.util.Map |
getLocalDescriptors()
Returns the descriptors local to this link. |
java.lang.Object |
getObject()
Returns the target of the properties. |
IPropertyDescriptor[] |
getPropertyDescriptors()
|
java.lang.Object |
getPropertyValue(java.lang.Object id)
|
boolean |
isPropertySet(java.lang.Object id)
|
void |
resetPropertyValue(java.lang.Object id)
|
void |
setPropertyValue(java.lang.Object propertyId,
java.lang.Object value)
This delegates to IItemPropertyDescriptor.setPropertyValue(). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompositePropertySource(java.lang.Object object)
ICompositePropertySource for the
given object. This creates a single link object, ready to be appended to
an existing linked list, or become a head of a new one.
object - -
the target of the properties
public CompositePropertySource(java.lang.Object object,
java.lang.String category)
ICompositePropertySource for the
given object. This creates a single link object, ready to be appended to
an existing linked list, or become a head of a new one.
The descriptors in the scope of this link by default will be assigned the
given category
object - -
the target of the propertiescategory - -
the property category to be assigned to all descrtiptors in
the scope of this link| Method Detail |
|---|
public void addPropertySource(ICompositePropertySource source)
ICompositePropertySource
addPropertySource in interface ICompositePropertySourcesource - - a composite property source to be added to the linked listpublic void addPropertyDescriptor(ICompositeSourcePropertyDescriptor descriptor)
descriptor - -
a new property descriptor to add to the property sourcepublic java.lang.Object getEditableValue()
getEditableValue in interface IPropertySourcepublic IPropertyDescriptor[] getPropertyDescriptors()
getPropertyDescriptors in interface IPropertySourcepublic 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 IPropertySource
public void setPropertyValue(java.lang.Object propertyId,
java.lang.Object value)
setPropertyValue in interface IPropertySourcepublic java.lang.String getCategory()
public java.lang.Object getObject()
protected java.util.Map getLocalDescriptors()
protected ICompositePropertySource getEnclosed()
|
Runtime | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.