public class BooleanTooltipFieldEditor
extends BooleanFieldEditor
org.eclipse.jface.preference.BooleanFieldEditor
enhanced
with support for tooltips.Modifier | Constructor and Description |
---|---|
protected |
BooleanTooltipFieldEditor()
Default constructor.
|
|
BooleanTooltipFieldEditor(java.lang.String name,
java.lang.String label,
java.lang.String tooltip,
Composite parent)
Creates a boolean field editor in the default style.
|
|
BooleanTooltipFieldEditor(java.lang.String name,
java.lang.String labelText,
java.lang.String tooltip,
int style,
Composite parent)
Creates a boolean field editor in the given style.
|
Modifier and Type | Method and Description |
---|---|
Button |
getCheckBox() |
void |
setCheckBoxEnabled(boolean enabled) |
void |
setTooltipText(java.lang.String text,
Composite parent)
Sets the tooltip on the checkbox and the label.
|
protected BooleanTooltipFieldEditor()
public BooleanTooltipFieldEditor(java.lang.String name, java.lang.String label, java.lang.String tooltip, Composite parent)
name
- the name of the preference this field editor works onlabel
- the label text of the field editortooltip
- the tooltip to be displayed on the checkbox and the labelparent
- the parent of the field editor's controlpublic BooleanTooltipFieldEditor(java.lang.String name, java.lang.String labelText, java.lang.String tooltip, int style, Composite parent)
name
- the name of the preference this field editor works onlabelText
- the label text of the field editortooltip
- the tooltip to be displayed on the checkbox and the labelstyle
- the style, either DEFAULT
or
SEPARATE_LABEL
parent
- the parent of the field editor's control#DEFAULT
,
#SEPARATE_LABEL
public void setTooltipText(java.lang.String text, Composite parent)
text
- The tooltip text to be usedparent
- The editors parent Compositepublic void setCheckBoxEnabled(boolean enabled)
enabled
- true
to enable the check box,
false
to disable it.public Button getCheckBox()