Class CustomSection
java.lang.Object
com.amalgamasimulation.desktop.ui.editor.sections.internal.Section
com.amalgamasimulation.desktop.ui.editor.sections.CustomSection
- All Implemented Interfaces:
ICustomSection,ILabelSection,ISection
public class CustomSection
extends com.amalgamasimulation.desktop.ui.editor.sections.internal.Section
implements ICustomSection, ILabelSection
-
Field Summary
Fields inherited from class com.amalgamasimulation.desktop.ui.editor.sections.internal.Section
compositeForSection, elements, eventBroker -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<V> voidautoCompleteEditor(AbstractAutoCompleteTextDataBinding<V> dataBinding, TextProperties textProperties) <T extends org.eclipse.emf.ecore.EObject,V>
voidbutton(IButtonProperties buttonProperties, EmfDataBinding<T, V> dataBinding) <V> voidbutton(ISimpleButtonProperties buttonProperties, AbstractDataBinding<V> dataBinding) voidbutton(SeparateButtonProperties buttonProperties) voidcheckBoxEditor(AbstractBooleanDataBinding dataBinding, CheckBoxButtonProperties checkBoxProperties) <V> voidcomboBoxEditor(AbstractComboboxDataBinding<V> dataBinding, ComboBoxProperties comboBoxProperties) voidcomposite(Consumer<org.eclipse.swt.widgets.Composite> creator, Consumer<org.eclipse.swt.widgets.Composite> updater) <V> voidenumEditor(AbstractComboboxDataBinding<V> dataBinding) protected intintReturns the width of the label text.<V> voidimage(LabelProperties labelProperties, ImageDataBinding<V> imageDataBinding) 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.<V> voidspinnerEditor(AbstractSpinnerDataBinding<V> dataBinding, SpinnerProperties<V> spinnerProperties) <V> voidtextEditor(AbstractTextDataBinding<V> dataBinding, TextProperties textProperties) Methods inherited from class com.amalgamasimulation.desktop.ui.editor.sections.internal.Section
createSection, dispose, enabled, getCompositeSection, isEnabled, isPageEnabled, isVisible, moveBelow, pageEnabled, pageVisible, setChangeNotifier, 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.ICustomSection
getCompositeSectionMethods inherited from interface com.amalgamasimulation.desktop.ui.editor.common.ISection
dispose, isEnabled, isVisible, updateEnabled, updateSection, updateVisible
-
Constructor Details
-
CustomSection
public CustomSection()
-
-
Method Details
-
labelProperties
Description copied from interface:ILabelSectionSets the label properties.- Specified by:
labelPropertiesin interfaceILabelSection- Parameters:
labelProperties- the label properties
-
composite
-
image
-
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
-
button
-
textEditor
-
spinnerEditor
public <V> void spinnerEditor(AbstractSpinnerDataBinding<V> dataBinding, SpinnerProperties<V> spinnerProperties) -
button
public <V> void button(ISimpleButtonProperties buttonProperties, AbstractDataBinding<V> dataBinding) -
button
public <T extends org.eclipse.emf.ecore.EObject,V> void button(IButtonProperties buttonProperties, EmfDataBinding<T, V> dataBinding) -
checkBoxEditor
public void checkBoxEditor(AbstractBooleanDataBinding dataBinding, CheckBoxButtonProperties checkBoxProperties) -
comboBoxEditor
public <V> void comboBoxEditor(AbstractComboboxDataBinding<V> dataBinding, ComboBoxProperties comboBoxProperties) -
enumEditor
-
autoCompleteEditor
public <V> void autoCompleteEditor(AbstractAutoCompleteTextDataBinding<V> dataBinding, TextProperties textProperties) -
getColumnCount
protected int getColumnCount()- Overrides:
getColumnCountin classcom.amalgamasimulation.desktop.ui.editor.sections.internal.Section
-
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
-