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 Button
addTitleButton(java.lang.String text, SRunnable onClick)
void
clear()
Removes the contents of this section.javafx.scene.Node
getBorderedNode()
java.lang.String
getTitle()
Returns the title of the element.boolean
isExpandable()
boolean
isExpanded()
void
setElement(Element element)
Sets which GUI element is displayed inside this section.void
setExpandable(boolean expanded)
void
setExpanded(boolean expanded)
void
setTitle(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:Element
Returns the title of the element.- Specified by:
getTitle
in interfaceElement
- Overrides:
getTitle
in classJFXElement
- Returns:
- Title of element
-
setTitle
public void setTitle(java.lang.String title)
Description copied from interface:Element
Sets the title of the element- Specified by:
setTitle
in interfaceElement
- Overrides:
setTitle
in 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)
-
-