Package jisa.gui

Class Section

  • All Implemented Interfaces:
    Element

    public class Section
    extends JFXElement
    A collapsible section box that surrounds one GUI element.
    • Field Detail

      • pane

        public javafx.scene.layout.Pane pane
      • titled

        public javafx.scene.control.TitledPane titled
    • Constructor Detail

      • Section

        public Section​(java.lang.String title,
                       Element element)
      • Section

        public Section​(java.lang.String title)
    • Method Detail

      • getTitle

        public java.lang.String getTitle()
        Description copied from interface: Element
        Returns the title of the element.
        Specified by:
        getTitle in interface Element
        Overrides:
        getTitle in class JFXElement
        Returns:
        Title of element
      • setTitle

        public void setTitle​(java.lang.String title)
        Description copied from interface: Element
        Sets the title of the element
        Specified by:
        setTitle in interface Element
        Overrides:
        setTitle in class JFXElement
        Parameters:
        title - Title of element
      • getBorderedNode

        public javafx.scene.Node getBorderedNode()
      • setElement

        public void setElement​(Element element)
        Sets which GUI element is displayed inside this section.
        Parameters:
        element - Element to show
      • clear

        public void clear()
        Removes the contents of this section.
      • isExpanded

        public boolean isExpanded()
      • setExpanded

        public void setExpanded​(boolean expanded)
      • isExpandable

        public boolean isExpandable()
      • setExpandable

        public void setExpandable​(boolean expanded)
      • addTitleButton

        public Button addTitleButton​(java.lang.String text,
                                     SRunnable onClick)