Interface ISection
- All Known Subinterfaces:
ICheckBoxSection,IComboBoxSection<V>,ICustomSection,ILabelSection,ISpinnerSection<V>,ITableSection<T,,V, E> ITextSection<V>,ITwoTableSection<V,R>
- All Known Implementing Classes:
com.amalgamasimulation.desktop.ui.editor.sections.internal.AbstractTableSection,com.amalgamasimulation.desktop.ui.editor.sections.internal.AbstractTwoTablesSection,AutoCompleteSection,CheckBoxSection,ComboBoxSection,ContainerAutoCompleteSection,ContainerCheckBoxSection,ContainerComboBoxSection,ContainerSpinnerSection,ContainerTextSection,CustomSection,EmfAutoCompleteSection,EmfCheckBoxSection,EmfComboBoxSection,EmfSpinnerSection,EmfTableSection,EmfTextSection,EmfTwoTablesSection,EmfViewSection,com.amalgamasimulation.desktop.ui.editor.sections.internal.Section,SpinnerSection,TableSection,TextSection,TwoTablesSection
public interface ISection
A row of a page or of the property panel. Visibility and enabled state
are computed from the current container object.
- Author:
- Ionov Ivan
-
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Disposes the section controls and removes the row from its parent.booleanReturns whether the section is enabled for the current container object.booleanReturns whether the section is visible for the current container object.voidEnables or disables the section controls according toisEnabled().voidUpdates visibility, enabled state and control values from the container, then lays out the row again.voidShows or hides the row according toisVisible().
-
Method Details
-
updateVisible
void updateVisible()Shows or hides the row according toisVisible(). A hidden row takes no space. -
updateEnabled
void updateEnabled()Enables or disables the section controls according toisEnabled(). -
updateSection
void updateSection()Updates visibility, enabled state and control values from the container, then lays out the row again. -
isVisible
boolean isVisible()Returns whether the section is visible for the current container object.- Returns:
- true if the section is visible
-
isEnabled
boolean isEnabled()Returns whether the section is enabled for the current container object.- Returns:
- true if the section is enabled
-
dispose
void dispose()Disposes the section controls and removes the row from its parent. Calling it again does nothing.
-