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 Type
    Method
    Description
    void
    Disposes the section controls and removes the row from its parent.
    boolean
    Returns whether the section is enabled for the current container object.
    boolean
    Returns whether the section is visible for the current container object.
    void
    Enables or disables the section controls according to isEnabled().
    void
    Updates visibility, enabled state and control values from the container, then lays out the row again.
    void
    Shows or hides the row according to isVisible().
  • Method Details

    • updateVisible

      void updateVisible()
      Shows or hides the row according to isVisible(). A hidden row takes no space.
    • updateEnabled

      void updateEnabled()
      Enables or disables the section controls according to isEnabled().
    • 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.