|
IBM Rational Software Modeler Release 6.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.xtools.common.ui.services.properties.descriptors.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(Object object)
Create an instance of the ICompositePropertySource for the
given object. |
|
CompositePropertySource(Object object,
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 |
String |
getCategory()
Returns the category, if one is set for this link. |
Object |
getEditableValue()
|
protected ICompositePropertySource |
getEnclosed()
Returns the next link on the linked list. |
protected Map |
getLocalDescriptors()
Returns the descriptors local to this link. |
Object |
getObject()
Returns the target of the properties. |
IPropertyDescriptor[] |
getPropertyDescriptors()
|
Object |
getPropertyValue(Object id)
|
boolean |
isPropertySet(Object id)
|
void |
resetPropertyValue(Object id)
|
void |
setPropertyValue(Object propertyId,
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(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 propertiespublic CompositePropertySource(Object object, 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 linkMethod Detail |
public void addPropertySource(ICompositePropertySource source)
ICompositePropertySource
addPropertySource
in interface ICompositePropertySource
source
- - 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 Object getEditableValue()
getEditableValue
in interface IPropertySource
public IPropertyDescriptor[] getPropertyDescriptors()
getPropertyDescriptors
in interface IPropertySource
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 propertyId, Object value)
IItemPropertyDescriptor.setPropertyValue
.
setPropertyValue
in interface IPropertySource
public String getCategory()
public Object getObject()
protected Map getLocalDescriptors()
protected ICompositePropertySource getEnclosed()
|
IBM Rational Software Modeler Release 6.0 |
||||||||||
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. and others 2004. All rights reserved.