Eclipse Platform
2.0

org.eclipse.ui.views.properties
Interface IPropertySheetEntry


public interface IPropertySheetEntry

IPropertySheetEntry describes the model interface for the property sheet.

May be implemented when supplying a custom root entry to a property page.


Field Summary
static String FILTER_ID_EXPERT
          The filter id for expert properties
 
Method Summary
 void addPropertySheetEntryListener(IPropertySheetEntryListener listener)
          Adds the given listener to this entry's collection of listeners.
 void applyEditorValue()
          Apply the current cell editor value.
 void dispose()
          Called when the entry is no longer needed
 String getCategory()
          Returns the entry's category.
 IPropertySheetEntry[] getChildEntries()
          Returns the child entries for this entry.
 String getDescription()
          Return a short description of the property sheet entry.
 String getDisplayName()
          Returns the name used to display the property.
 CellEditor getEditor(Composite parent)
          Return the CellEditor used to edit the property.
 String getErrorText()
          Returns the error text to display if the value is invalid.
 String[] getFilters()
          Return the filter ids used to group entries into levels such as Expert.
 Object getHelpContextIds()
          Returns the help context id for this entry, or null if this entry has no help context id.
 Image getImage()
          Returns the image for the property value, if there is one.
 String getValueAsString()
          Returns the value of the objects expressed as a String.
 boolean hasChildEntries()
          Returns true if the entry has children.
 void removePropertySheetEntryListener(IPropertySheetEntryListener listener)
          Removes the given listener from this entry's collection of listeners.
 void resetPropertyValue()
          Resets the property value to its default value if it has been changed.
 void setValues(Object[] values)
           
 

Field Detail

FILTER_ID_EXPERT

public static final String FILTER_ID_EXPERT
The filter id for expert properties

See Also:
Constant Field Values
Method Detail

addPropertySheetEntryListener

public void addPropertySheetEntryListener(IPropertySheetEntryListener listener)
Adds the given listener to this entry's collection of listeners.

Parameters:
listener - the listener to add

applyEditorValue

public void applyEditorValue()
Apply the current cell editor value.


dispose

public void dispose()
Called when the entry is no longer needed


getCategory

public String getCategory()
Returns the entry's category.

Returns:
the entry's category

getChildEntries

public IPropertySheetEntry[] getChildEntries()
Returns the child entries for this entry.

Returns:
the child entries for this entry

getDescription

public String getDescription()
Return a short description of the property sheet entry. Typically this description is shown in a status line when the entry is selected.

Returns:
the entry's description

getDisplayName

public String getDisplayName()
Returns the name used to display the property.

Returns:
the name used to display the property

getEditor

public CellEditor getEditor(Composite parent)
Return the CellEditor used to edit the property.

Parameters:
parent - the parent widget for the editor
Returns:
the CellEditor used to edit the property

getErrorText

public String getErrorText()
Returns the error text to display if the value is invalid.

Returns:
the error text to display when the value is invalid or null

getFilters

public String[] getFilters()
Return the filter ids used to group entries into levels such as Expert. Valid values are defined as constants on this interface.

Returns:
the filter ids used to group entries into levels such as Expert.

getHelpContextIds

public Object getHelpContextIds()
Returns the help context id for this entry, or null if this entry has no help context id.

NOTE: Help support system API's changed since 2.0 and arrays of contexts are no longer supported.

Thus the only valid non-null return type for this method is a String representing a context id. The previously valid return types are deprecated. The plural name for this method is unfortunate.

Returns:
the help context id for this entry

getImage

public Image getImage()
Returns the image for the property value, if there is one. This image is managed by the entry it came from. Callers of this method must never dispose the returned image.

Returns:
the image for this property value or null

getValueAsString

public String getValueAsString()
Returns the value of the objects expressed as a String.

Returns:
the value of the objects expressed as a String

hasChildEntries

public boolean hasChildEntries()
Returns true if the entry has children.

Returns:
true if the entry has children

removePropertySheetEntryListener

public void removePropertySheetEntryListener(IPropertySheetEntryListener listener)
Removes the given listener from this entry's collection of listeners.

Parameters:
listener - the listener to remove

resetPropertyValue

public void resetPropertyValue()
Resets the property value to its default value if it has been changed.


setValues

public void setValues(Object[] values)

Eclipse Platform
2.0

Copyright (c) IBM Corp. and others 2000, 2002. All Rights Reserved.