Package jisa.gui
Class Table
- java.lang.Object
-
- jisa.gui.JFXElement
-
- jisa.gui.Table
-
public class Table extends JFXElement implements Element, Clearable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jisa.gui.Element
Element.ElementBorder
-
-
Field Summary
Fields Modifier and Type Field Description javafx.scene.control.TableView
table
-
Constructor Summary
Constructors Constructor Description Table(java.lang.String title)
Creates an empty table.Table(java.lang.String title, ResultTable list)
Creates a table that watches and displays the contents of a ResultTable object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
void
update(Row row)
void
watch(ResultTable list)
Watch the given ResultTable to display its contents.void
watchList(ResultTable list)
Watch the given ResultTable to display its contents.-
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, getTitle, 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, getTitle, hide, isVisible, setTitle, setVisible, show, titleProperty
-
-
-
-
Constructor Detail
-
Table
public Table(java.lang.String title)
Creates an empty table.- Parameters:
title
- Window title
-
Table
public Table(java.lang.String title, ResultTable list)
Creates a table that watches and displays the contents of a ResultTable object.- Parameters:
title
- Window titlelist
- ResultTable to display
-
-
Method Detail
-
watchList
public void watchList(ResultTable list)
Watch the given ResultTable to display its contents.- Parameters:
list
- ResultTable to watch
-
watch
public void watch(ResultTable list)
Watch the given ResultTable to display its contents.- Parameters:
list
- ResultTable to watch
-
update
public void update(Row row)
-
-