Object
hdf.view.TableView.DefaultBaseTableView
hdf.view.TableView.DefaultCompoundDSTableView
A class to construct a CompoundDS TableView.
-
Nested Class Summary
Nested classes/interfaces inherited from class hdf.view.TableView.DefaultBaseTableView
DefaultBaseTableView.ColumnHeader, DefaultBaseTableView.EditingGridLayer, DefaultBaseTableView.RefContextMenu, DefaultBaseTableView.RowHeader, DefaultBaseTableView.RowHeaderDataProvider, DefaultBaseTableView.ViewType
-
Field Summary
Fields inherited from class hdf.view.TableView.DefaultBaseTableView
binaryOrder, bitmask, bitmaskOP, cellLabel, cellValueField, checkBin, checkCustomNotation, checkEnum, checkFixedDataLength, checkHex, checkScientificNotation, columnHeaderDataProvider, curFont, customFormat, dataDisplayConverter, dataLayer, dataObject, dataProvider, dataTable, dataValue, fillValue, fixedDataLength, indexBase, indexBaseGroup, isDataTransposed, isDisplayTypeChar, isEnumConverted, isObjRef, isReadOnly, isRegRef, isStdRef, normalFormat, numberFormat, rowHeaderDataProvider, scientificFormat, selectionLayer, shell, showAsBin, showAsHex, viewer, viewType
Fields inherited from interface hdf.view.DataView.DataView
DATAVIEW_IMAGE, DATAVIEW_TABLE, DATAVIEW_UNKNOWN
-
Constructor Summary
ConstructorDescriptionConstructs a CompoundDS TableView with no additional data properties.DefaultCompoundDSTableView
(DataViewManager theView, HashMap dataPropertiesMap) Constructs a CompoundDS TableView with the specified data properties. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.nebula.widgets.nattable.NatTable
createTable
(org.eclipse.swt.widgets.Composite parent, DataFormat dataObject) Creates a NatTable for a Compound datasetprotected org.eclipse.nebula.widgets.nattable.config.IEditableRule
getDataEditingRule
(DataFormat dataObject) Returns an IEditableRule that determines whether cells can be edited.protected void
loadData
(DataFormat dataObject) Loads the data buffer of an object.protected void
showObjRefData
(long[] ref) Show the object reference data.protected void
showRegRefData
(String reg) Show the region reference data.protected void
showStdRefData
(byte[] reg) Show the standard reference data.Methods inherited from class hdf.view.TableView.DefaultBaseTableView
createMenuBar, getDataLayer, getDataObject, getSelectedColumnCount, getSelectedRowCount, getSelectionLayer, getTable, importBinaryData, importTextData, NewshowObjRefData, NewshowRegRefData, refreshDataTable, saveAsBinary, saveAsText, updateDataConversionSettings, updateValueInFile
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface hdf.view.DataView.DataView
getDataObject
Methods inherited from interface hdf.view.TableView.TableView
getSelectedColumnCount, getSelectedRowCount, getTable, refreshDataTable, updateValueInFile
-
Constructor Details
-
DefaultCompoundDSTableView
Constructs a CompoundDS TableView with no additional data properties.- Parameters:
theView
- the main HDFView.
-
DefaultCompoundDSTableView
Constructs a CompoundDS TableView with the specified data properties.- Parameters:
theView
- the main HDFView.dataPropertiesMap
- the properties on how to show the data. The map is used to allow applications to pass properties on how to display the data, such as: transposing data, showing data as characters, applying a bitmask, and etc. Predefined keys are listed at ViewProperties.DATA_VIEW_KEY.
-
-
Method Details
-
loadData
Description copied from class:DefaultBaseTableView
Loads the data buffer of an object.- Overrides:
loadData
in classDefaultBaseTableView
- Parameters:
dataObject
- the object that has the buffer for the data.- Throws:
Exception
- if a failure occurred
-
createTable
protected org.eclipse.nebula.widgets.nattable.NatTable createTable(org.eclipse.swt.widgets.Composite parent, DataFormat dataObject) Creates a NatTable for a Compound dataset- Specified by:
createTable
in classDefaultBaseTableView
- Parameters:
parent
- The parent for the NatTabledataObject
- The Compound dataset for the NatTable to display- Returns:
- The newly created NatTable
-
getSelectedData
- Specified by:
getSelectedData
in interfaceTableView
- Returns:
- array of selected data
-
showObjRefData
Description copied from class:DefaultBaseTableView
Show the object reference data.- Specified by:
showObjRefData
in classDefaultBaseTableView
- Parameters:
ref
- the identifer for the object reference.
-
showRegRefData
Description copied from class:DefaultBaseTableView
Show the region reference data.- Specified by:
showRegRefData
in classDefaultBaseTableView
- Parameters:
reg
- the identifier for the region reference.
-
showStdRefData
Description copied from class:DefaultBaseTableView
Show the standard reference data.- Specified by:
showStdRefData
in classDefaultBaseTableView
- Parameters:
reg
- the identifier for the standard reference.
-
getDataEditingRule
protected org.eclipse.nebula.widgets.nattable.config.IEditableRule getDataEditingRule(DataFormat dataObject) Returns an IEditableRule that determines whether cells can be edited. Cells can be edited as long as the dataset is not opened in read-only mode and the data is not currently displayed in hexadecimal, binary, or character mode.- Specified by:
getDataEditingRule
in classDefaultBaseTableView
- Parameters:
dataObject
- The dataset for editing- Returns:
- a new IEditableRule for the dataset
-