Class PTChooserEditor

Direct Known Subclasses:
PTColorEditor, PTDirectoryEditor, PTFileEditor, PTFontEditor, PTWindowEditor

public abstract class PTChooserEditor
extends PTEditor
This abstract class represents a chooser. A chooser is composed of :
  • a displayed value (text)
  • a "X" button to erase the value (set to null)
  • a "..." button to open an extra window to set up the value
  • Constructor Summary

    Constructor Description
  • Method Summary

    Modifier and Type Method Description
    protected abstract getBackgroundColor​(PTProperty property)
    Get the background color of an item
    protected abstract java.lang.String getTextFor​(PTProperty property)  
    protected abstract void openWindow​(PTWidget widget, org.eclipse.swt.widgets.Item item, PTProperty property)
    Open the window to edit the property
    org.eclipse.swt.custom.ControlEditor render​(PTWidget widget, org.eclipse.swt.widgets.Item item, PTProperty property)
    Renders an editor

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait