Class ComboBoxSection<V>

java.lang.Object
com.amalgamasimulation.desktop.ui.editor.sections.internal.Section
com.amalgamasimulation.desktop.ui.editor.sections.ComboBoxSection<V>
All Implemented Interfaces:
IComboBoxSection<V>, ILabelSection, ISection
Direct Known Subclasses:
ContainerComboBoxSection

public class ComboBoxSection<V> extends com.amalgamasimulation.desktop.ui.editor.sections.internal.Section implements IComboBoxSection<V>, ILabelSection
  • Field Details

    • internalLabel

      protected com.amalgamasimulation.desktop.ui.editor.internal.InternalLabel internalLabel
    • internalComboBox

      protected com.amalgamasimulation.desktop.ui.editor.internal.InternalComboBox<V> internalComboBox
    • buttons

      protected List<InternalButton> buttons
    • comboboxDataBinding

      protected AbstractComboboxDataBinding<V> comboboxDataBinding
  • Constructor Details

    • ComboBoxSection

      public ComboBoxSection()
  • Method Details

    • 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
    • getDataBinding

      public AbstractComboboxDataBinding<V> getDataBinding()
    • getColumnCount

      protected int getColumnCount()
      Overrides:
      getColumnCount in class com.amalgamasimulation.desktop.ui.editor.sections.internal.Section
    • 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
    • comboBoxProperties

      public void comboBoxProperties(ComboBoxProperties comboBoxProperties)
    • addButton

      public void addButton(IButtonProperties buttonProperties)
    • addButton

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

      protected InternalButton createButton(IButtonProperties buttonProperties)
    • 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