public class BooleanRow extends LabeledRow
LabeledRow.LAYOUT_COLUMNS, mBrowse, mField, mLabel, mListener, mProperty| Constructor and Description |
|---|
BooleanRow(org.eclipse.swt.widgets.Composite pParent,
java.lang.String pProperty,
java.lang.String pLabel)
Creates a new boolean raw.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBooleanValue() |
java.lang.String |
getValue()
Get or calculate the value of this property.
|
void |
setEnabled(boolean pEnabled)
Set the enabled state of the field and the browse button if the latter exists.
|
void |
setLabel(java.lang.String pNewLabel)
Replace the current label by a new one.
|
void |
setTooltip(java.lang.String pTooltip)
Set the tooltip message of the row.
|
void |
setValue(boolean pValue)
Set a new value to the raw.
|
void |
toggleValue()
Changes the value of the raw.
|
addBrowseSelectionListener, createContent, fillRow, fireFieldChangedEvent, getLabel, getProperty, removeFieldChangedlistener, setFieldChangedListener, setVisiblepublic BooleanRow(org.eclipse.swt.widgets.Composite pParent,
java.lang.String pProperty,
java.lang.String pLabel)
pParent - the parent composite where to create the row.pProperty - the property name of the row.pLabel - the label to print on the left of the rawpublic void setLabel(java.lang.String pNewLabel)
setLabel in class LabeledRowpNewLabel - New label to usepublic void setTooltip(java.lang.String pTooltip)
setTooltip in class LabeledRowpTooltip - the tooltip messagepublic void setValue(boolean pValue)
pValue - the new valuepublic void toggleValue()
public boolean getBooleanValue()
public java.lang.String getValue()
getValue in class LabeledRowpublic void setEnabled(boolean pEnabled)
setEnabled in class LabeledRowpEnabled - true activate the row, otherwise the row is desactivated