Class CheckBoxSection

java.lang.Object
com.amalgamasimulation.desktop.ui.editor.sections.internal.Section
com.amalgamasimulation.desktop.ui.editor.sections.CheckBoxSection
All Implemented Interfaces:
ILabelSection, ISection
Direct Known Subclasses:
ContainerCheckBoxSection

public class CheckBoxSection extends com.amalgamasimulation.desktop.ui.editor.sections.internal.Section implements ILabelSection
  • Field Details

  • Constructor Details

    • CheckBoxSection

      public CheckBoxSection()
  • Method Details

    • getDataBinding

      public AbstractBooleanDataBinding getDataBinding()
    • updateEnabled

      public void updateEnabled()
      Description copied from interface: ISection
      Enables or disables the section controls according to ISection.isEnabled().
      Specified by:
      updateEnabled in interface ISection
      Overrides:
      updateEnabled in class com.amalgamasimulation.desktop.ui.editor.sections.internal.Section
    • getColumnCount

      protected int getColumnCount()
      Overrides:
      getColumnCount in class com.amalgamasimulation.desktop.ui.editor.sections.internal.Section
    • addButton

      public void addButton(IButtonProperties buttonProperties)
    • addButton

      public void addButton(IButtonProperties buttonProperties, int index)
    • createButton

      protected InternalButton createButton(IButtonProperties buttonProperties)
    • isAlignmentSkipped

      public boolean isAlignmentSkipped()
      Description copied from interface: ILabelSection
      Returns whether the label is left out of alignment, see LabelProperties.skipAlignment(boolean).
      Specified by:
      isAlignmentSkipped in interface ILabelSection
      Returns:
      true if the label is not aligned
    • labelProperties

      public void labelProperties(LabelProperties labelProperties)
      Description copied from interface: ILabelSection
      Sets the label properties.
      Specified by:
      labelProperties in interface ILabelSection
      Parameters:
      labelProperties - the label properties
    • getMeasuredLabelWidth

      public int getMeasuredLabelWidth()
      Description copied from interface: ILabelSection
      Returns the width of the label text.
      Specified by:
      getMeasuredLabelWidth in interface ILabelSection
      Returns:
      the width in pixels, or 0 if the label has its own width or skips alignment
    • labelWidth

      public void labelWidth(int labelWidth)
      Description copied from interface: ILabelSection
      Sets the label width used for alignment. Has no effect if the label has its own width.
      Specified by:
      labelWidth in interface ILabelSection
      Parameters:
      labelWidth - the width in pixels