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.BorderPanepanejavafx.scene.control.ScrollPanescrollPanejavafx.scene.layout.VBoxsidebar
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Element element)Adds an element as a tab.SeparatoraddSeparator()SeparatoraddSeparator(java.lang.String text)voidclear()Removes all elements from this container.java.util.List<Element>getElements()Returns a list of all elements currently inside this container.java.lang.StringgetTitle()Returns the title of the element.voidremove(Element element)Removes the specified elements from this container.voidselect(int index)Selects the specified page, by index.voidselect(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:ContainerRemoves the specified elements from this container.
-
clear
public void clear()
Description copied from interface:ContainerRemoves all elements from this container.
-
getElements
public java.util.List<Element> getElements()
Description copied from interface:ContainerReturns a list of all elements currently inside this container.- Specified by:
getElementsin 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:ElementReturns the title of the element.- Specified by:
getTitlein interfaceElement- Overrides:
getTitlein classJFXElement- Returns:
- Title of element
-
-