|
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.Objectorg.eclipse.ui.views.properties.PropertyDescriptor
com.ibm.xtools.common.ui.services.properties.descriptors.CompositeSourcePropertyDescriptor
A concrete implementation of the
ICompositeSourcePropertyDescriptor
. A property descriptor
designed to work with the CompositePropertySource.
Constructor Summary | |
CompositeSourcePropertyDescriptor(Object object,
Object id,
String displayName)
Create an instance of the CompositeSourePropertyDescriptor |
Method Summary | |
void |
addFilterFlag(String flag)
Add filter flag IPropertySheetEntry.FILTER_ID_EXPERT |
CellEditor |
createPropertyEditor(Composite parent)
|
Object |
getDefaultValue()
Returns default value |
protected Object |
getEditableValue()
|
protected Object |
getObject()
Returns the object target of the property |
CellEditor |
getPropertyEditor()
Returns the propertyEditor. |
protected IPropertySource |
getPropertySource(Object value)
Returns an property source for the given value. |
Object |
getPropertyValue()
Returns the value of the property |
boolean |
isCompatibleWith(IPropertyDescriptor anotherProperty)
|
boolean |
isReadOnly()
Returns the readOnly property |
void |
resetPropertyValue()
This method is used by the property source to reset the property that this property descriptor maps to. |
void |
resetPropertyValue(Object value)
|
void |
setDefaultValue(Object defaultValue)
Assigns a default value to this property |
void |
setPropertyEditor(CellEditor propertyEditor)
Parametrize cell editor creation - assign a custom cell editor to an instance variable |
void |
setPropertyValue(Object value)
Sets new value to the property |
void |
setReadOnly(boolean readOnly)
Set read-only to true if the property is read-only, or to false otherwise |
protected void |
setValue(Object value)
|
Methods inherited from class org.eclipse.ui.views.properties.PropertyDescriptor |
getAlwaysIncompatible, getCategory, getDescription, getDisplayName, getFilterFlags, getHelpContextIds, getId, getLabelProvider, getValidator, isLabelProviderSet, setAlwaysIncompatible, setCategory, setDescription, setFilterFlags, setHelpContextIds, setLabelProvider, setValidator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.xtools.common.ui.services.properties.descriptors.ICompositeSourcePropertyDescriptor |
setCategory |
Methods inherited from interface org.eclipse.ui.views.properties.IPropertyDescriptor |
getCategory, getDescription, getDisplayName, getFilterFlags, getHelpContextIds, getId, getLabelProvider |
Constructor Detail |
public CompositeSourcePropertyDescriptor(Object object, Object id, String displayName)
id
- property iddisplayName
- property display nameMethod Detail |
protected Object getObject()
public CellEditor getPropertyEditor()
public boolean isReadOnly()
isReadOnly
in interface ICompositeSourcePropertyDescriptor
public void addFilterFlag(String flag)
IPropertySheetEntry.FILTER_ID_EXPERT
flag
- a filter flagpublic Object getPropertyValue()
getPropertyValue
in interface ICompositeSourcePropertyDescriptor
public void resetPropertyValue()
ICompositeSourcePropertyDescriptor
resetPropertyValue
in interface ICompositeSourcePropertyDescriptor
public void setPropertyValue(Object value)
setPropertyValue
in interface ICompositeSourcePropertyDescriptor
value
- the new valueprotected void setValue(Object value)
public CellEditor createPropertyEditor(Composite parent)
createPropertyEditor
in interface IPropertyDescriptor
public boolean isCompatibleWith(IPropertyDescriptor anotherProperty)
isCompatibleWith
in interface IPropertyDescriptor
public void setPropertyEditor(CellEditor propertyEditor)
propertyEditor
- a custom cell editorprotected Object getEditableValue()
protected IPropertySource getPropertySource(Object value)
value
- an object for which to obtain a property source or
null
if a property source is not available
public void setReadOnly(boolean readOnly)
ICompositeSourcePropertyDescriptor
setReadOnly
in interface ICompositeSourcePropertyDescriptor
readOnly
- -
true if the property is read-only, or to false otherwisepublic Object getDefaultValue()
public void setDefaultValue(Object defaultValue)
defaultValue
- assign a default value to this propertypublic void resetPropertyValue(Object value)
|
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.