Class ModifyDialogTabPage.ButtonPreference

    • Constructor Summary

      Constructors 
      Constructor Description
      ButtonPreference​(org.eclipse.swt.widgets.Composite composite, int numColumns, java.util.Map<java.lang.String,​java.lang.String> preferences, java.lang.String key, java.lang.String[] values, java.lang.String text, int style)
      Create a new CheckboxPreference.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void checkboxChecked​(boolean state)  
      boolean getChecked()  
      org.eclipse.swt.widgets.Control getControl()
      Returns the main control of a preference, which is mainly used to manage the focus.
      void setChecked​(boolean checked)  
      protected void updateWidget()
      To be implemented in subclasses.
      • Methods inherited from class java.util.Observable

        addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ButtonPreference

        public ButtonPreference​(org.eclipse.swt.widgets.Composite composite,
                                int numColumns,
                                java.util.Map<java.lang.String,​java.lang.String> preferences,
                                java.lang.String key,
                                java.lang.String[] values,
                                java.lang.String text,
                                int style)
        Create a new CheckboxPreference.
        Parameters:
        composite - The composite on which the SWT widgets are added.
        numColumns - The number of columns in the composite's GridLayout.
        preferences - The map to store the values.
        key - The key to store the values.
        values - An array of two elements indicating the values to store on unchecked/checked.
        text - The label text for this Preference.
        style - SWT style flag for the button
    • Method Detail

      • checkboxChecked

        protected void checkboxChecked​(boolean state)
      • getChecked

        public boolean getChecked()
      • setChecked

        public void setChecked​(boolean checked)
      • getControl

        public org.eclipse.swt.widgets.Control getControl()
        Description copied from class: ModifyDialogTabPage.Preference
        Returns the main control of a preference, which is mainly used to manage the focus. This may be null if the preference doesn't have a control which is able to have the focus.
        Specified by:
        getControl in class ModifyDialogTabPage.Preference
        Returns:
        The main control