Package jisa.gui
Class Pages
- java.lang.Object
-
- jisa.gui.JFXElement
-
- jisa.gui.Pages
-
public class Pages extends JFXElement implements Element, Container
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jisa.gui.Element
Element.ElementBorder
-
-
Field Summary
Fields Modifier and Type Field Description javafx.scene.layout.BorderPane
pane
javafx.scene.control.ScrollPane
scrollPane
javafx.scene.layout.VBox
sidebar
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Element element)
Adds an element as a tab.Separator
addSeparator()
Separator
addSeparator(java.lang.String text)
void
clear()
Removes all elements from this container.java.util.List<Element>
getElements()
Returns a list of all elements currently inside this container.java.lang.String
getTitle()
Returns the title of the element.void
remove(Element element)
Removes the specified elements from this container.void
select(int index)
Selects the specified page, by index.void
select(Element element)
Selects the specified page, by Element.-
Methods inherited from class jisa.gui.JFXElement
addDialogButton, addDialogMenuButton, addToolbarButton, addToolbarMenuButton, addToolbarSeparator, autoAdjustSize, autoSizeWindow, clearDialogButtons, clearToolbar, close, getIcon, getMaxHeight, getMaxWidth, getMaxWindowHeight, getMaxWindowWidth, getMinHeight, getMinWidth, getNode, getStage, getWindowHeight, getWindowWidth, hide, iconProperty, isDecorated, isExitOnClose, isMaximised, isShowing, setCentreNode, setDecorated, setExitOnClose, setIcon, setIcon, setMaxHeight, setMaximised, setMaxWidth, setMaxWindowHeight, setMaxWindowWidth, setMinHeight, setMinWidth, setOnClose, setTitle, setWindowHeight, setWindowSize, setWindowWidth, show, showAsAlert, showAsConfirmation, showAsDialog, titleProperty
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jisa.gui.Element
close, getBorderedNode, getIcon, getNode, hide, isVisible, setTitle, setVisible, show, titleProperty
-
-
-
-
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 titletoAdd
- Elements to add- Throws:
java.io.IOException
-
-
Method Detail
-
add
public void add(Element element)
Adds an element as a tab.
-
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.
-
clear
public void clear()
Description copied from interface:Container
Removes all elements from this 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 interfaceContainer
- 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 interfaceElement
- Overrides:
getTitle
in classJFXElement
- Returns:
- Title of element
-
-