Package de.gsi.chart.plugins
Class TableViewer
- java.lang.Object
-
- de.gsi.chart.plugins.ChartPlugin
-
- de.gsi.chart.plugins.TableViewer
-
- Direct Known Subclasses:
EditDataSet
public class TableViewer extends ChartPlugin
Displays the all visible data sets inside a table on demand. Implements copy-paste functionality into system clip-board and *.csv file export to allow further processing in other applications. Also enables editing of values if the underlying DataSet allows it.- Author:
- rstein, akrimm
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
TableViewer.ColumnType
protected class
TableViewer.DataSetsModel
Model Abstraction to the DataSets of a chart as the backing for a JavaFX TableView.protected class
TableViewer.DataSetsRow
-
Field Summary
Fields Modifier and Type Field Description protected boolean
editable
protected static java.lang.String
FONT_AWESOME
protected static int
FONT_SIZE
-
Constructor Summary
Constructors Constructor Description TableViewer()
Creates a new instance of DataSetTableViewer class and setup the required listeners.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copySelectedToClipboard()
Copies the (selected) table data to the clipboard in csv Format.void
exportGridToCSV()
Show a FileChooser and export the (selected) Table Data to the choosen .csv File.protected javafx.scene.layout.HBox
getInteractorBar()
Helper function to initialize the UI elements for the Interactor toolbar.javafx.scene.control.TableView<?>
getTable()
-
Methods inherited from class de.gsi.chart.plugins.ChartPlugin
addButtonsToToolBarProperty, chartProperty, getChart, getChartChildren, getLocationInPlotArea, isAddButtonsToToolBar, layoutChildren, registerInputEventHandler, setAddButtonsToToolBar, setChart, toDataPoint, toDisplayPoint
-
-
-
-
Field Detail
-
FONT_AWESOME
protected static final java.lang.String FONT_AWESOME
- See Also:
- Constant Field Values
-
FONT_SIZE
protected static final int FONT_SIZE
- See Also:
- Constant Field Values
-
editable
protected boolean editable
-
-
Method Detail
-
getInteractorBar
protected javafx.scene.layout.HBox getInteractorBar()
Helper function to initialize the UI elements for the Interactor toolbar.- Returns:
- HBox node with the toolbar elements
-
getTable
public javafx.scene.control.TableView<?> getTable()
- Returns:
- The TableView JavaFX control element
-
exportGridToCSV
public void exportGridToCSV()
Show a FileChooser and export the (selected) Table Data to the choosen .csv File.
-
copySelectedToClipboard
public void copySelectedToClipboard()
Copies the (selected) table data to the clipboard in csv Format.
-
-