Class TurboXasTimingGroupTableView

java.lang.Object
uk.ac.gda.exafs.experiment.ui.TurboXasTimingGroupTableView

public class TurboXasTimingGroupTableView extends Object
Class to provide GUI controls to edit timing groups stored in TurboXasParameters object. A JFace TableViewer instance is used to perform the editing so that binding between timing group model and gui is handled automatically.
Since:
May2017
  • Constructor Details

    • TurboXasTimingGroupTableView

      public TurboXasTimingGroupTableView(org.eclipse.swt.widgets.Composite parent)
  • Method Details

    • setColumnOrderInTable

      public void setColumnOrderInTable(TurboXasTimingGroupTableView.TimingGroupParamType[] arr)
    • createTable

      public org.eclipse.jface.viewers.TableViewer createTable()
      Create the JFace TableViewer to edit timing groups. Adds columns to the table, sets up up listener used to initiate editing.
      Returns:
      TableViewer object
    • setTimingGroups

      public void setTimingGroups(TurboXasParameters params)
      Set the timing groups to be viewed by the table from the TurboXasParameters parameters;
      Parameters:
      params -
    • removeSelectedTimingGroupFromModel

      public void removeSelectedTimingGroupFromModel()
      Remove timing group currently selected in table from the model; update the table view.
    • refresh

      public void refresh()
      Refresh the table to show current state of timingGroups.
    • getTableViewer

      public org.eclipse.jface.viewers.TableViewer getTableViewer()