org.eclipse.cdt.internal.ui.wizards.dialogfields
Class StringButtonDialogField

java.lang.Object
  extended by org.eclipse.cdt.internal.ui.wizards.dialogfields.DialogField
      extended by org.eclipse.cdt.internal.ui.wizards.dialogfields.StringDialogField
          extended by org.eclipse.cdt.internal.ui.wizards.dialogfields.StringButtonDialogField
Direct Known Subclasses:
LinkToFileGroup

public class StringButtonDialogField
extends StringDialogField

Dialog field containing a label, text control and a button control.


Constructor Summary
StringButtonDialogField(IStringButtonAdapter adapter)
           
 
Method Summary
 void changeControlPressed()
          Programmatical pressing of the button
 org.eclipse.swt.widgets.Control[] doFillIntoGrid(org.eclipse.swt.widgets.Composite parent, int nColumns)
          Creates all controls of the dialog field and fills it to a composite.
 void enableButton(boolean enable)
          Sets the enable state of the button.
 org.eclipse.swt.widgets.Button getChangeControl(org.eclipse.swt.widgets.Composite parent)
          Creates or returns the created buttom widget.
 int getNumberOfControls()
          Returns the number of columns of the dialog field.
 void setButtonLabel(java.lang.String label)
          Sets the label of the button.
 
Methods inherited from class org.eclipse.cdt.internal.ui.wizards.dialogfields.StringDialogField
getText, getTextControl, setFocus, setText, setTextWithoutUpdate
 
Methods inherited from class org.eclipse.cdt.internal.ui.wizards.dialogfields.DialogField
createEmptySpace, createEmptySpace, dialogFieldChanged, getLabelControl, isEnabled, postSetFocusOnDialogField, setDialogFieldListener, setEnabled, setLabelText
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringButtonDialogField

public StringButtonDialogField(IStringButtonAdapter adapter)
Method Detail

setButtonLabel

public void setButtonLabel(java.lang.String label)
Sets the label of the button.


changeControlPressed

public void changeControlPressed()
Programmatical pressing of the button


doFillIntoGrid

public org.eclipse.swt.widgets.Control[] doFillIntoGrid(org.eclipse.swt.widgets.Composite parent,
                                                        int nColumns)
Description copied from class: DialogField
Creates all controls of the dialog field and fills it to a composite. The composite is assumed to have MGridLayout as layout. The dialog field will adjust its controls' spans to the number of columns given. To be reimplemented by dialog field implementors.

Overrides:
doFillIntoGrid in class StringDialogField

getNumberOfControls

public int getNumberOfControls()
Description copied from class: DialogField
Returns the number of columns of the dialog field. To be reimplemented by dialog field implementors.

Overrides:
getNumberOfControls in class StringDialogField

getChangeControl

public org.eclipse.swt.widgets.Button getChangeControl(org.eclipse.swt.widgets.Composite parent)
Creates or returns the created buttom widget.

Parameters:
parent - The parent composite or null if the widget has already been created.

enableButton

public void enableButton(boolean enable)
Sets the enable state of the button.