Package uk.ac.gda.exafs.experiment.ui
Class TurboXasTimingGroupTableView
java.lang.Object
uk.ac.gda.exafs.experiment.ui.TurboXasTimingGroupTableView
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
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jface.viewers.TableViewerCreate the JFaceTableViewerto edit timing groups.org.eclipse.jface.viewers.TableViewervoidrefresh()Refresh the table to show current state of timingGroups.voidRemove timing group currently selected in table from the model; update the table view.voidvoidsetTimingGroups(TurboXasParameters params) Set the timing groups to be viewed by the table from theTurboXasParametersparameters;
-
Constructor Details
-
TurboXasTimingGroupTableView
public TurboXasTimingGroupTableView(org.eclipse.swt.widgets.Composite parent)
-
-
Method Details
-
setColumnOrderInTable
-
createTable
public org.eclipse.jface.viewers.TableViewer createTable()Create the JFaceTableViewerto edit timing groups. Adds columns to the table, sets up up listener used to initiate editing.- Returns:
- TableViewer object
-
setTimingGroups
Set the timing groups to be viewed by the table from theTurboXasParametersparameters;- 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()
-