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 Summary
FieldsModifier and TypeFieldDescriptionprotected List<InternalButton> protected AbstractComboboxDataBinding<V> protected com.amalgamasimulation.desktop.ui.editor.internal.InternalComboBox<V> protected com.amalgamasimulation.desktop.ui.editor.internal.InternalLabelFields inherited from class com.amalgamasimulation.desktop.ui.editor.sections.internal.Section
compositeForSection, elements, eventBroker -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddButton(IButtonProperties buttonProperties) voidaddButton(IButtonProperties buttonProperties, int index) voidcomboBoxProperties(ComboBoxProperties comboBoxProperties) protected InternalButtoncreateButton(IButtonProperties buttonProperties) protected intintReturns the width of the label text.booleanReturns whether the label is left out of alignment, seeLabelProperties.skipAlignment(boolean).voidlabelProperties(LabelProperties labelProperties) Sets the label properties.voidlabelWidth(int labelWidth) Sets the label width used for alignment.Methods inherited from class com.amalgamasimulation.desktop.ui.editor.sections.internal.Section
createSection, dispose, enabled, getCompositeSection, isEnabled, isVisible, moveBelow, setEventBroker, setParent, updateEnabled, updateSection, updateVisible, visibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.amalgamasimulation.desktop.ui.editor.common.ISection
dispose, isEnabled, isVisible, updateEnabled, updateSection, updateVisible
-
Field Details
-
internalLabel
protected com.amalgamasimulation.desktop.ui.editor.internal.InternalLabel internalLabel -
internalComboBox
-
buttons
-
comboboxDataBinding
-
-
Constructor Details
-
ComboBoxSection
public ComboBoxSection()
-
-
Method Details
-
isAlignmentSkipped
public boolean isAlignmentSkipped()Description copied from interface:ILabelSectionReturns whether the label is left out of alignment, seeLabelProperties.skipAlignment(boolean).- Specified by:
isAlignmentSkippedin interfaceILabelSection- Returns:
- true if the label is not aligned
-
getDataBinding
-
getColumnCount
protected int getColumnCount()- Overrides:
getColumnCountin classcom.amalgamasimulation.desktop.ui.editor.sections.internal.Section
-
labelProperties
Description copied from interface:ILabelSectionSets the label properties.- Specified by:
labelPropertiesin interfaceILabelSection- Parameters:
labelProperties- the label properties
-
comboBoxProperties
-
addButton
-
addButton
-
createButton
-
getMeasuredLabelWidth
public int getMeasuredLabelWidth()Description copied from interface:ILabelSectionReturns the width of the label text.- Specified by:
getMeasuredLabelWidthin interfaceILabelSection- 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:ILabelSectionSets the label width used for alignment. Has no effect if the label has its own width.- Specified by:
labelWidthin interfaceILabelSection- Parameters:
labelWidth- the width in pixels
-