org.eclipse.cdt.debug.mi.internal.ui.dialogfields
Class StringButtonStatusDialogField

java.lang.Object
  extended by org.eclipse.cdt.debug.mi.internal.ui.dialogfields.DialogField
      extended by org.eclipse.cdt.debug.mi.internal.ui.dialogfields.StringDialogField
          extended by org.eclipse.cdt.debug.mi.internal.ui.dialogfields.StringButtonDialogField
              extended by org.eclipse.cdt.debug.mi.internal.ui.dialogfields.StringButtonStatusDialogField

public class StringButtonStatusDialogField
extends StringButtonDialogField

Dialog field containing a label, text control, status label and a button control. The status label can be either a image or text label, and can be usd to give additional information about the current element chosen.


Constructor Summary
StringButtonStatusDialogField(IStringButtonAdapter adapter)
           
 
Method Summary
 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.
 int getNumberOfControls()
          Returns the number of columns of the dialog field.
 org.eclipse.swt.widgets.Label getStatusLabelControl(org.eclipse.swt.widgets.Composite parent)
          Creates or returns the created status label widget.
 void setStatus(org.eclipse.swt.graphics.Image image)
          Sets the status image.
 void setStatus(java.lang.String status)
          Sets the status string.
 void setStatusWidthHint(int widthHint)
          Sets the width hint of the status label.
 void setStatusWidthHint(java.lang.String widthHintString)
          Sets the staus string hint of the status label.
 
Methods inherited from class org.eclipse.cdt.debug.mi.internal.ui.dialogfields.StringButtonDialogField
changeControlPressed, enableButton, getChangeControl, setButtonLabel
 
Methods inherited from class org.eclipse.cdt.debug.mi.internal.ui.dialogfields.StringDialogField
getText, getTextControl, setFocus, setText, setTextWithoutUpdate
 
Methods inherited from class org.eclipse.cdt.debug.mi.internal.ui.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

StringButtonStatusDialogField

public StringButtonStatusDialogField(IStringButtonAdapter adapter)
Method Detail

setStatus

public void setStatus(java.lang.String status)
Sets the status string.


setStatus

public void setStatus(org.eclipse.swt.graphics.Image image)
Sets the status image. Caller is responsible to dispose image


setStatusWidthHint

public void setStatusWidthHint(java.lang.String widthHintString)
Sets the staus string hint of the status label. The string is used to calculate the size of the status label.


setStatusWidthHint

public void setStatusWidthHint(int widthHint)
Sets the width hint of the status label.


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 StringButtonDialogField

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 StringButtonDialogField

getStatusLabelControl

public org.eclipse.swt.widgets.Label getStatusLabelControl(org.eclipse.swt.widgets.Composite parent)
Creates or returns the created status label widget.

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