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 Summary
FieldsModifier and TypeFieldDescriptionprotected AbstractBooleanDataBindingprotected List<InternalButton> protected CheckBoxButtonprotected 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) 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.voidEnables or disables the section controls according toISection.isEnabled().Methods inherited from class com.amalgamasimulation.desktop.ui.editor.sections.internal.Section
createSection, dispose, enabled, getCompositeSection, isEnabled, isVisible, moveBelow, setEventBroker, setParent, 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, updateSection, updateVisible
-
Field Details
-
internalLabel
protected com.amalgamasimulation.desktop.ui.editor.internal.InternalLabel internalLabel -
checkBox
-
buttons
-
booleanDataBinding
-
-
Constructor Details
-
CheckBoxSection
public CheckBoxSection()
-
-
Method Details
-
getDataBinding
-
updateEnabled
public void updateEnabled()Description copied from interface:ISectionEnables or disables the section controls according toISection.isEnabled().- Specified by:
updateEnabledin interfaceISection- Overrides:
updateEnabledin classcom.amalgamasimulation.desktop.ui.editor.sections.internal.Section
-
getColumnCount
protected int getColumnCount()- Overrides:
getColumnCountin classcom.amalgamasimulation.desktop.ui.editor.sections.internal.Section
-
addButton
-
addButton
-
createButton
-
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
-
labelProperties
Description copied from interface:ILabelSectionSets the label properties.- Specified by:
labelPropertiesin interfaceILabelSection- Parameters:
labelProperties- the label properties
-
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
-