public class HyperlinkStringButtonField extends HyperlinkStringField implements IStringButtonField
String Button Dialog Field
Dialog field containing a label, text control and a button control.
fLabelControl, fLabelText, fUseFormLayout, fWidgetFactory, MAX_WITDH
Constructor and Description |
---|
HyperlinkStringButtonField(IWidgetFactory widgetFactory,
org.eclipse.ui.forms.events.HyperlinkAdapter hyperlinkAdapter,
IButtonAdapter adapter) |
Modifier and Type | Method and Description | |||
---|---|---|---|---|
void |
dispose()
Disposes of the operating system resources associated with the field.
|
|||
protected org.eclipse.swt.widgets.Control[] |
doFillIntoGrid(org.eclipse.swt.widgets.Composite parent,
int nColumns)
/!\
| To be re-implemented by platform field implementors.
| /!\
|
|
void |
enableButton(boolean enable)
Sets the enable state of the button.
|
|||
org.eclipse.swt.widgets.Control |
getButtonControl() |
|||
protected org.eclipse.swt.widgets.Button |
getChangeControl(org.eclipse.swt.widgets.Composite parent,
int hspan)
Creates button control.
|
|||
protected int |
getNumberOfControls()
Returns the number of columns of the dialog field.
|
|||
void |
setButtonLabel(java.lang.String label)
Sets the label of the button.
|
|||
protected void |
updateEnableState()
Called when the enable state changed.
|
getText, getTextControl, getTextControl, isEditable, refresh, setEditable, setFocus, setText, setTextEnabled, setTextWithoutUpdate, updateEditableState
createLabelControl, setLabelText
addFieldListener, assertCompositeNotNull, createEmptySpace, createEmptySpace, createSpecificComposite, dialogFieldChanged, fillIntoGrid, getLabelControl, getLabelControl, getLabelControl, isEnabled, isOkToUse, removeFieldListener, setEnabled, setToolTipText
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getText, getTextControl, setEditable, setText, setTextWithoutUpdate
addFieldListener, fillIntoGrid, getLabelControl, isEnabled, removeFieldListener, setEnabled, setLabelText, setToolTipText
public HyperlinkStringButtonField(IWidgetFactory widgetFactory, org.eclipse.ui.forms.events.HyperlinkAdapter hyperlinkAdapter, IButtonAdapter adapter)
public void setButtonLabel(java.lang.String label)
setButtonLabel
in interface IStringButtonField
protected org.eclipse.swt.widgets.Control[] doFillIntoGrid(org.eclipse.swt.widgets.Composite parent, int nColumns)
BasicField
/!\ | To be re-implemented by platform field implementors. | /!\ |
doFillIntoGrid
in class HyperlinkStringField
parent
- The parent composite of this dialog field.nColumns
- The number of columns of this dialog field.protected int getNumberOfControls()
BasicField
getNumberOfControls
in class HyperlinkStringField
protected final org.eclipse.swt.widgets.Button getChangeControl(org.eclipse.swt.widgets.Composite parent, int hspan)
parent
- The parent composite (supposed to be not null).hspan
- The number of columns the button widget must span.public org.eclipse.swt.widgets.Control getButtonControl()
getButtonControl
in interface IStringButtonField
public void enableButton(boolean enable)
protected void updateEnableState()
BasicField
updateEnableState
in class HyperlinkStringField
public void dispose()
IField
dispose
in interface IField
dispose
in class HyperlinkStringField