Class PTDirectoryEditor
- java.lang.Object
-
- org.eclipse.nebula.widgets.opal.propertytable.editor.PTEditor
-
- org.eclipse.nebula.widgets.opal.propertytable.editor.PTChooserEditor
-
- org.eclipse.nebula.widgets.opal.propertytable.editor.PTDirectoryEditor
-
public class PTDirectoryEditor extends PTChooserEditor
This editor allows user to select a directory
-
-
Constructor Summary
Constructors Constructor Description PTDirectoryEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.swt.graphics.Color
getBackgroundColor(PTProperty property)
Get the background color of an itemprotected java.lang.String
getTextFor(PTProperty property)
protected void
openWindow(PTWidget widget, org.eclipse.swt.widgets.Item item, PTProperty property)
Open the window to edit the property-
Methods inherited from class org.eclipse.nebula.widgets.opal.propertytable.editor.PTChooserEditor
render
-
-
-
-
Method Detail
-
openWindow
protected void openWindow(PTWidget widget, org.eclipse.swt.widgets.Item item, PTProperty property)
Description copied from class:PTChooserEditor
Open the window to edit the property- Specified by:
openWindow
in classPTChooserEditor
- Parameters:
widget
- parent widgetitem
- itemproperty
- edited property- See Also:
PTChooserEditor.openWindow(org.eclipse.nebula.widgets.opal.propertytable.PTWidget, org.eclipse.swt.widgets.Item, org.eclipse.nebula.widgets.opal.propertytable.PTProperty)
-
getTextFor
protected java.lang.String getTextFor(PTProperty property)
- Specified by:
getTextFor
in classPTChooserEditor
- Parameters:
property
- property- Returns:
- the string representation of the value stored in the property
- See Also:
PTChooserEditor.getTextFor(org.eclipse.nebula.widgets.opal.propertytable.PTProperty)
-
getBackgroundColor
protected org.eclipse.swt.graphics.Color getBackgroundColor(PTProperty property)
Description copied from class:PTChooserEditor
Get the background color of an item- Specified by:
getBackgroundColor
in classPTChooserEditor
- Parameters:
property
- property- Returns:
- a background color (for the PTColorEditor) or null (for other editors).
- See Also:
PTChooserEditor.getBackgroundColor(org.eclipse.nebula.widgets.opal.propertytable.PTProperty)
-
-