Package jisa.gui

Class Tabs

    • Field Detail

      • pane

        protected javafx.scene.layout.BorderPane pane
      • tabPane

        protected javafx.scene.control.TabPane tabPane
      • toolBar

        protected javafx.scene.control.ToolBar toolBar
    • Constructor Detail

      • Tabs

        public Tabs​(java.lang.String title)
      • Tabs

        public Tabs​(java.lang.String title,
                    Element... elements)
    • Method Detail

      • getTabPane

        public javafx.scene.layout.Pane getTabPane()
      • add

        public void add​(Element element)
        Description copied from interface: Container
        Add an element to this container.
        Specified by:
        add in interface Container
        Parameters:
        element - Element to add.
      • 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.
      • getTabsPosition

        public javafx.geometry.Side getTabsPosition()
      • setTabsPosition

        public void setTabsPosition​(javafx.geometry.Side side)
        Sets the side for the tabs to be displayed on.
        Parameters:
        side - LEFT, RIGHT, TOP or BOTTOM
      • select

        public void select​(int index)
        Sets which tab is selected, by specifying its index.
        Parameters:
        index - Tab index
      • select

        public void select​(Element select)
        Sets which tab is selected, by specifying its corresponding Element object.
        Parameters:
        select - Element to be selected
      • getSelectedIndex

        public int getSelectedIndex()
        Returns the index of the tab currently selected.
        Returns:
        Tab index
      • getSelectedElement

        public Element getSelectedElement()
        Returns the element that is currently selected.
        Returns:
        Selected element
      • getBorderedNode

        public javafx.scene.Node getBorderedNode()
        Specified by:
        getBorderedNode in interface Element