Class BooleanRow

java.lang.Object
org.libreoffice.ide.eclipse.core.gui.rows.LabeledRow
org.libreoffice.ide.eclipse.core.gui.rows.BooleanRow

public class BooleanRow extends LabeledRow
Usefull class to create a boolean choice row with a label. For further informations on rows, please report to LabeledRow.
  • Constructor Details

    • BooleanRow

      public BooleanRow(org.eclipse.swt.widgets.Composite parent, String property, String label)
      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

      public void setLabel(String newLabel)
      Replace the current label by a new one.
      Overrides:
      setLabel in class LabeledRow
      Parameters:
      newLabel - New label to use
    • setTooltip

      public void setTooltip(String pTooltip)
      Set the tooltip message of the row.
      Overrides:
      setTooltip in class LabeledRow
      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

      public String getValue()
      Get or calculate the value of this property.
      Specified by:
      getValue in class LabeledRow
      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:
      setEnabled in class LabeledRow
      Parameters:
      enabled - true activate the row, otherwise the row is desactivated