Class PTComboEditor


  • public class PTComboEditor
    extends PTEditor
    This editor is for combo values. By default, the combo is editable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<java.lang.Object> data  
      private boolean readOnly  
    • Constructor Summary

      Constructors 
      Constructor Description
      PTComboEditor​(boolean readOnly, java.lang.Object... data)
      Constructor
      PTComboEditor​(java.lang.Object... data)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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

      • readOnly

        private final boolean readOnly
      • data

        private final java.util.List<java.lang.Object> data
    • Constructor Detail

      • PTComboEditor

        public PTComboEditor​(boolean readOnly,
                             java.lang.Object... data)
        Constructor
        Parameters:
        readOnly - if true, the combo is read-only
        data - data displayed in the combo
      • PTComboEditor

        public PTComboEditor​(java.lang.Object... data)
        Constructor
        Parameters:
        data - data displayed in the combo.