Class TextAndDisable

All Implemented Interfaces:
EventListener, ModifyListener, SelectionListener, Drawable, org.eclipse.swt.internal.SWTEventListener
Direct Known Subclasses:
PrefIntegerAndDisable, PrefText, PrefTextAndDisable

public class TextAndDisable extends Composite implements SelectionListener, ModifyListener
Author:
Eike Stepper
  • Constructor Details

    • TextAndDisable

      public TextAndDisable(Composite parent, int textStyle, String disabledValue)
  • Method Details

    • getDisabledButtonText

      protected String getDisabledButtonText()
      Since:
      3.5
    • getText

      public Text getText()
    • getButton

      public Button getButton()
    • addModifyListener

      public void addModifyListener(ModifyListener listener)
      Since:
      3.5
    • removeModifyListener

      public void removeModifyListener(ModifyListener listener)
      Since:
      3.5
    • addSelectionListener

      public void addSelectionListener(SelectionListener listener)
      Since:
      3.5
    • removeSelectionListener

      public void removeSelectionListener(SelectionListener listener)
      Since:
      3.5
    • isDisabled

      public boolean isDisabled()
    • setDisabled

      public void setDisabled(boolean disabled)
    • getValue

      public String getValue()
    • setValue

      public void setValue(String value)
    • widgetDefaultSelected

      public void widgetDefaultSelected(SelectionEvent e)
      Specified by:
      widgetDefaultSelected in interface SelectionListener
    • widgetSelected

      public void widgetSelected(SelectionEvent e)
      Specified by:
      widgetSelected in interface SelectionListener
    • modifyText

      public void modifyText(ModifyEvent e)
      Specified by:
      modifyText in interface ModifyListener
    • createText

      protected Text createText(int textStyle)
    • createTextLayoutData

      protected GridData createTextLayoutData()
    • createButton

      protected Button createButton()