|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openoffice.ide.eclipse.core.gui.rows.LabeledRow
org.openoffice.ide.eclipse.core.gui.rows.BooleanRow
public class 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.openoffice.ide.eclipse.core.gui.rows.LabeledRow |
---|
LAYOUT_COLUMNS, mBrowse, mField, mLabel, mListener, mProperty |
Constructor Summary | |
---|---|
BooleanRow(org.eclipse.swt.widgets.Composite pParent,
java.lang.String pProperty,
java.lang.String pLabel)
Creates a new boolean raw. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.openoffice.ide.eclipse.core.gui.rows.LabeledRow |
---|
createContent, fillRow, fireFieldChangedEvent, getLabel, getProperty, removeFieldChangedlistener, setFieldChangedListener, setVisible |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public 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 rawMethod Detail |
---|
public void setLabel(java.lang.String pNewLabel)
setLabel
in class LabeledRow
pNewLabel
- New label to usepublic void setTooltip(java.lang.String pTooltip)
setTooltip
in class LabeledRow
pTooltip
- the tooltip messagepublic void setValue(boolean pValue)
pValue
- the new valuepublic void toggleValue()
public boolean getBooleanValue()
public java.lang.String getValue()
getValue
in class LabeledRow
public void setEnabled(boolean pEnabled)
setEnabled
in class LabeledRow
pEnabled
- true
activate the row, otherwise the
row is desactivated
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |