Class BooleanRow
java.lang.Object
org.libreoffice.ide.eclipse.core.gui.rows.LabeledRow
org.libreoffice.ide.eclipse.core.gui.rows.BooleanRow
Usefull class to create a boolean choice row with a label. For further informations on rows, please report to
LabeledRow.-
Field Summary
Fields inherited from class org.libreoffice.ide.eclipse.core.gui.rows.LabeledRow
LAYOUT_COLUMNS, mBrowse, mField, mLabel, mListener, mProperty -
Constructor Summary
ConstructorsConstructorDescriptionBooleanRow(org.eclipse.swt.widgets.Composite parent, String property, String label) Creates a new boolean raw. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetValue()Get or calculate the value of this property.voidsetEnabled(boolean enabled) Set the enabled state of the field and the browse button if the latter exists.voidReplace the current label by a new one.voidsetTooltip(String pTooltip) Set the tooltip message of the row.voidsetValue(boolean pValue) Set a new value to the raw.voidChanges the value of the raw.Methods inherited from class org.libreoffice.ide.eclipse.core.gui.rows.LabeledRow
addBrowseSelectionListener, createContent, fillRow, fireFieldChangedEvent, getLabel, getProperty, removeFieldChangedlistener, setFieldChangedListener, setVisible
-
Constructor Details
-
BooleanRow
Creates a new boolean raw. The parent composite should have a grid layout with 2 or 3 horizontal spans.- Parameters:
parent- the parent composite where to create the row.property- the property name of the row.label- the label to print on the left of the raw
-
-
Method Details
-
setLabel
Replace the current label by a new one.- Overrides:
setLabelin classLabeledRow- Parameters:
newLabel- New label to use
-
setTooltip
Set the tooltip message of the row.- Overrides:
setTooltipin classLabeledRow- Parameters:
pTooltip- the tooltip message
-
setValue
public void setValue(boolean pValue) Set a new value to the raw.- Parameters:
pValue- the new value
-
toggleValue
public void toggleValue()Changes the value of the raw. -
getBooleanValue
public boolean getBooleanValue()- Returns:
- the value of the raw as a boolean.
-
getValue
Get or calculate the value of this property.- Specified by:
getValuein classLabeledRow- Returns:
- the property value
-
setEnabled
public void setEnabled(boolean enabled) Set the enabled state of the field and the browse button if the latter exists.- Overrides:
setEnabledin classLabeledRow- Parameters:
enabled-trueactivate the row, otherwise the row is desactivated
-