org.eclipse.emf.edit.provider
Interface IItemPropertyDescriptor

All Known Implementing Classes:
ItemPropertyDescriptor, ItemPropertyDescriptorDecorator

public interface IItemPropertyDescriptor

This interface extends IPropertyDescriptor so that the methods of IItemPropertySource can be delegated to the descriptor. This allows the implementing class to completely encapsulate the work associated with supporting a particular property sheet property.


Nested Class Summary
static interface IItemPropertyDescriptor.OverrideableCommandOwner
          This interface may be implemented by item property descriptors to allow an object to be provided as an override for whatever would usually be the owner of any commands created to set the property's value.
 
Method Summary
 boolean canSetProperty(Object object)
          This determines whether this descriptor's property for the object supports set (and reset).
 String getCategory(Object object)
          Returns the name of the category to which this property belongs.
 Collection getChoiceOfValues(Object object)
           
 String getDescription(Object object)
          Returns a brief description of this property.
 String getDisplayName(Object object)
          Returns the display name for this property.
 Object getFeature(Object object)
          Returns the feature.
 String[] getFilterFlags(Object object)
          Returns a list of filter types to which this property belongs.
 Object getHelpContextIds(Object object)
           
 String getId(Object object)
          Returns the id for this property.
 IItemLabelProvider getLabelProvider(Object object)
          Returns the label provider for this property.
 Object getPropertyValue(Object object)
          This fetches this descriptor's property from the object.
 boolean isCompatibleWith(Object object, Object anotherObject, IItemPropertyDescriptor anotherPropertyDescriptor)
          Returns whether this property descriptor and the given one are compatible.
 boolean isMany(Object object)
          Returns whether this property represents multiple values.
 boolean isMultiLine(Object object)
          Returns whether this property's value will consist of multi-line text.
 boolean isPropertySet(Object object)
          This determines whether this descriptor's property for the object is set.
 boolean isSortChoices(Object object)
          Returns whether the choices for this property should be sorted for display.
 void resetPropertyValue(Object object)
          This resets this descriptor's property for the object.
 void setPropertyValue(Object object, Object value)
          This sets this descriptor's property for the object to the given value.
 

Method Detail

getPropertyValue

public Object getPropertyValue(Object object)
This fetches this descriptor's property from the object. Sometimes it's necessary to update the contents of the cell editor during this call, i.e., the call is used as a notification that this descriptor is being used to edit another object.


isPropertySet

public boolean isPropertySet(Object object)
This determines whether this descriptor's property for the object is set. I'm not sure right now what this is used for? I should find out.


canSetProperty

public boolean canSetProperty(Object object)
This determines whether this descriptor's property for the object supports set (and reset).


resetPropertyValue

public void resetPropertyValue(Object object)
This resets this descriptor's property for the object.


setPropertyValue

public void setPropertyValue(Object object,
                             Object value)
This sets this descriptor's property for the object to the given value.


getCategory

public String getCategory(Object object)
Returns the name of the category to which this property belongs.


getDescription

public String getDescription(Object object)
Returns a brief description of this property.


getDisplayName

public String getDisplayName(Object object)
Returns the display name for this property.


getFilterFlags

public String[] getFilterFlags(Object object)
Returns a list of filter types to which this property belongs.


getHelpContextIds

public Object getHelpContextIds(Object object)

getId

public String getId(Object object)
Returns the id for this property.


getLabelProvider

public IItemLabelProvider getLabelProvider(Object object)
Returns the label provider for this property.


isCompatibleWith

public boolean isCompatibleWith(Object object,
                                Object anotherObject,
                                IItemPropertyDescriptor anotherPropertyDescriptor)
Returns whether this property descriptor and the given one are compatible.


getFeature

public Object getFeature(Object object)
Returns the feature.


isMany

public boolean isMany(Object object)
Returns whether this property represents multiple values. This may not be the same as the feature's getMany(), as the property may allows editing only a single value of a multi-vlaued feature.


getChoiceOfValues

public Collection getChoiceOfValues(Object object)

isMultiLine

public boolean isMultiLine(Object object)
Returns whether this property's value will consist of multi-line text.

Since:
2.2.0

isSortChoices

public boolean isSortChoices(Object object)
Returns whether the choices for this property should be sorted for display.

Since:
2.2.0

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.