Class VarValViewerHandler
java.lang.Object
org.apache.uima.pear.insd.edit.vars.VarValViewerHandler
Handles the display and management of an environment variables table.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionorg.eclipse.swt.widgets.ButtonThe add.protected org.eclipse.swt.widgets.ButtonThe close button.protected String[]The column names.org.eclipse.swt.widgets.ButtonThe delete.protected org.eclipse.jface.viewers.ITableLabelProviderThe label provider.org.eclipse.swt.widgets.TableThe table.protected VarValListThe table row list.org.eclipse.jface.viewers.TableViewerThe table viewer.
- 
Constructor SummaryConstructorsConstructorDescriptionVarValViewerHandler(org.eclipse.swt.widgets.Composite parent, String[] columnNames, int numParentColumns, VarValList tableRowList) Instantiates a new var val viewer handler.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidaddChildControls(org.eclipse.swt.widgets.Composite composite, int numColumns) Create a new shell, add the widgets, open the shell.voidclose()Close.protected voidcreateButtons(org.eclipse.swt.widgets.Composite parent) Add the "Add", "Delete" and "Close" buttons.protected org.eclipse.jface.viewers.CellEditor[]Creates the cell editors.protected org.eclipse.jface.viewers.ICellModifierCreates the cell modifiers.protected org.eclipse.jface.viewers.ViewerSorterCreates the sorter.protected voidcreateTable(org.eclipse.swt.widgets.Composite parent) Create the Table.protected voidCreates the table columns.protected voidCreate the TableViewer.voiddispose()Release resources.org.eclipse.swt.widgets.ButtonReturn the 'close' Button.Return the column names in a collection.org.eclipse.swt.widgets.ControlReturn the parent composite.org.eclipse.jface.viewers.ISelectionGets the selection.Return the VarValList.
- 
Field Details- 
tablepublic org.eclipse.swt.widgets.Table tableThe table.
- 
tableViewerpublic org.eclipse.jface.viewers.TableViewer tableViewerThe table viewer.
- 
addpublic org.eclipse.swt.widgets.Button addThe add.
- 
deletepublic org.eclipse.swt.widgets.Button deleteThe delete.
- 
closeButtonprotected org.eclipse.swt.widgets.Button closeButtonThe close button.
- 
labelProviderprotected org.eclipse.jface.viewers.ITableLabelProvider labelProviderThe label provider.
- 
tableRowListThe table row list.
- 
columnNamesThe column names.
 
- 
- 
Constructor Details- 
VarValViewerHandlerpublic VarValViewerHandler(org.eclipse.swt.widgets.Composite parent, String[] columnNames, int numParentColumns, VarValList tableRowList) Instantiates a new var val viewer handler.- Parameters:
- parent- the parent
- columnNames- the column names
- numParentColumns- the num parent columns
- tableRowList- the table row list
 
 
- 
- 
Method Details- 
createCellModifiersprotected org.eclipse.jface.viewers.ICellModifier createCellModifiers()Creates the cell modifiers.- Returns:
- the i cell modifier
 
- 
createSorterprotected org.eclipse.jface.viewers.ViewerSorter createSorter()Creates the sorter.- Returns:
- the viewer sorter
 
- 
createTableColumnsprotected void createTableColumns()Creates the table columns.
- 
createCellEditorsprotected org.eclipse.jface.viewers.CellEditor[] createCellEditors()Creates the cell editors.- Returns:
- the cell editor[]
 
- 
disposepublic void dispose()Release resources.
- 
addChildControlsprotected void addChildControls(org.eclipse.swt.widgets.Composite composite, int numColumns) Create a new shell, add the widgets, open the shell.- Parameters:
- composite- the composite
- numColumns- the num columns
 
- 
createTableprotected void createTable(org.eclipse.swt.widgets.Composite parent) Create the Table.- Parameters:
- parent- the parent
 
- 
createTableViewerprotected void createTableViewer()Create the TableViewer.
- 
closepublic void close()Close.
- 
createButtonsprotected void createButtons(org.eclipse.swt.widgets.Composite parent) Add the "Add", "Delete" and "Close" buttons.- Parameters:
- parent- the parent composite
 
- 
getColumnNamesReturn the column names in a collection.- Returns:
- List containing column names
 
- 
getSelectionpublic org.eclipse.jface.viewers.ISelection getSelection()Gets the selection.- Returns:
- currently selected item
 
- 
getTableRowListReturn the VarValList.- Returns:
- the table row list
 
- 
getControlpublic org.eclipse.swt.widgets.Control getControl()Return the parent composite.- Returns:
- the control
 
- 
getCloseButtonpublic org.eclipse.swt.widgets.Button getCloseButton()Return the 'close' Button.- Returns:
- the close button
 
 
-