Class 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
    • Field Detail

      • MIN_REFRESH_RATE_WARN

        protected static final int MIN_REFRESH_RATE_WARN
        See Also:
        Constant Field Values
      • editable

        protected boolean editable
    • Constructor Detail

      • TableViewer

        public TableViewer()
        Creates a new instance of DataSetTableViewer class and setup the required listeners.
    • Method Detail

      • refreshRateProperty

        public javafx.beans.property.IntegerProperty refreshRateProperty()
        The refresh Rate limits minimum amount of time between table updates in milliseconds and defaults to 100ms. Setting this below 20ms is discouraged and will produce warnings.
        Returns:
        The refreshRate property
      • getRefreshRate

        public int getRefreshRate()
        Returns:
        the value of the refreshRate Property
      • setRefreshRate

        public void setRefreshRate​(int newVal)
        Parameters:
        newVal - the new value for the refreshRate Property
      • copySelectedToClipboard

        public void copySelectedToClipboard()
        Copies the (selected) table data to the clipboard in csv Format.
      • exportGridToCSV

        public void exportGridToCSV()
        Show a FileChooser and export the (selected) Table Data to the choosen .csv File.
      • 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