Package jisa.gui

Class Pages

    • Field Detail

      • pane

        public javafx.scene.layout.BorderPane pane
      • sidebar

        public javafx.scene.layout.VBox sidebar
      • scrollPane

        public javafx.scene.control.ScrollPane scrollPane
    • Constructor Detail

      • Pages

        public Pages​(java.lang.String title,
                     Element... toAdd)
        Creates an element that displays other GUI elements in their own individual tabs.
        Parameters:
        title - Window title
        toAdd - Elements to add
        Throws:
        java.io.IOException
    • Method Detail

      • add

        public void add​(Element element)
        Adds an element as a tab.
        Specified by:
        add in interface Container
        Parameters:
        element - Element to add
      • addSeparator

        public Separator addSeparator()
      • addSeparator

        public Separator addSeparator​(java.lang.String text)
      • remove

        public void remove​(Element element)
        Description copied from interface: Container
        Removes the specified elements from this container.
        Specified by:
        remove in interface Container
        Parameters:
        element - Elements to remove
      • clear

        public void clear()
        Description copied from interface: Container
        Removes all elements from this container.
        Specified by:
        clear in interface Container
      • getElements

        public java.util.List<Element> getElements()
        Description copied from interface: Container
        Returns a list of all elements currently inside this container.
        Specified by:
        getElements in interface Container
        Returns:
        List of elements.
      • select

        public void select​(int index)
        Selects the specified page, by index.
        Parameters:
        index - Index of page to select
      • select

        public void select​(Element element)
        Selects the specified page, by Element.
        Parameters:
        element - Element of page to select
      • 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