Class PTChooserEditor

    • Constructor Summary

      Constructors 
      Constructor Description
      PTChooserEditor()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      private void createEraseButton​(org.eclipse.swt.widgets.Composite buttonHolder)
      Creates the "erase" button
      private void createPlusButton​(org.eclipse.swt.widgets.Composite buttonHolder)
      Creates the "plus" button
      protected abstract org.eclipse.swt.graphics.Color 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
    • Field Detail

      • item

        private org.eclipse.swt.widgets.Item item
    • Constructor Detail

      • PTChooserEditor

        public PTChooserEditor()
    • Method Detail

      • createEraseButton

        private void createEraseButton​(org.eclipse.swt.widgets.Composite buttonHolder)
        Creates the "erase" button
        Parameters:
        buttonHolder - parent composite
      • createPlusButton

        private void createPlusButton​(org.eclipse.swt.widgets.Composite buttonHolder)
        Creates the "plus" button
        Parameters:
        buttonHolder - aprent composite
      • openWindow

        protected abstract void openWindow​(PTWidget widget,
                                           org.eclipse.swt.widgets.Item item,
                                           PTProperty property)
        Open the window to edit the property
        Parameters:
        widget - parent widget
        item - item
        property - edited property
      • getTextFor

        protected abstract java.lang.String getTextFor​(PTProperty property)
        Parameters:
        property - property
        Returns:
        the string representation of the value stored in the property
      • getBackgroundColor

        protected abstract org.eclipse.swt.graphics.Color getBackgroundColor​(PTProperty property)
        Get the background color of an item
        Parameters:
        property - property
        Returns:
        a background color (for the PTColorEditor) or null (for other editors).