Package jisa.gui
Class Section
- java.lang.Object
-
- jisa.gui.JFXElement
-
- jisa.gui.Section
-
- All Implemented Interfaces:
Element
public class Section extends JFXElement
A collapsible section box that surrounds one GUI element.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jisa.gui.Element
Element.ElementBorder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ButtonaddTitleButton(java.lang.String text, SRunnable onClick)voidclear()Removes the contents of this section.javafx.scene.NodegetBorderedNode()java.lang.StringgetTitle()Returns the title of the element.booleanisExpandable()booleanisExpanded()voidsetElement(Element element)Sets which GUI element is displayed inside this section.voidsetExpandable(boolean expanded)voidsetExpanded(boolean expanded)voidsetTitle(java.lang.String title)Sets the title of the 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, 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
isVisible, setVisible
-
-
-
-
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:ElementReturns the title of the element.- Specified by:
getTitlein interfaceElement- Overrides:
getTitlein classJFXElement- Returns:
- Title of element
-
setTitle
public void setTitle(java.lang.String title)
Description copied from interface:ElementSets the title of the element- Specified by:
setTitlein interfaceElement- Overrides:
setTitlein classJFXElement- 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)
-
-