Package hec.dataTable
Class HecDataTable
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTable
rma.swing.RmaJTable
hec.dataTable.HecDataTable
- All Implemented Interfaces:
ActionListener,ItemListener,KeyListener,MouseListener,TextListener,ImageObserver,MenuContainer,Printable,Serializable,EventListener,Accessible,CellEditorListener,DocumentListener,ListSelectionListener,RowSorterListener,TableColumnModelListener,TableModelListener,Scrollable,Modifiable,TimeZoneComponent,UnitsComponent,EditableComponent,FormManagementListener,RmaValidComponent
Description of the Class
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class rma.swing.RmaJTable
RmaJTable.BooleanRenderer, RmaJTable.CurrencyCellRenderer, RmaJTable.MinMaxEntry, RmaJTable.OneClickCheckBoxEditor, RmaJTable.RmaSelectionListener, RmaJTable.TableRowSorterListenerNested classes/interfaces inherited from class javax.swing.JTable
JTable.AccessibleJTable, JTable.DropLocation, JTable.PrintModeNested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanDescription of the Fieldprotected booleanprotected booleanprotected Componentprotected hec.dataTable.DataModelFields inherited from class rma.swing.RmaJTable
_cellBackground, _cellForeground, _firstFixedRow, _maxNumPage, _rowBackground, _rowForegroundFields inherited from class javax.swing.JTable
AUTO_RESIZE_ALL_COLUMNS, AUTO_RESIZE_LAST_COLUMN, AUTO_RESIZE_NEXT_COLUMN, AUTO_RESIZE_OFF, AUTO_RESIZE_SUBSEQUENT_COLUMNS, autoCreateColumnsFromModel, autoResizeMode, cellEditor, cellSelectionEnabled, columnModel, dataModel, defaultEditorsByColumnClass, defaultRenderersByColumnClass, editingColumn, editingRow, editorComp, gridColor, preferredViewportSize, rowHeight, rowMargin, rowSelectionAllowed, selectionBackground, selectionForeground, selectionModel, showHorizontalLines, showVerticalLines, tableHeaderFields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHFields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS -
Constructor Summary
ConstructorsConstructorDescriptionHecDataTable(Component parentFrame) Constructor for the Table objectHecDataTable(Component parentFrame, boolean allowSort) -
Method Summary
Modifier and TypeMethodDescriptionintaddData(TimeSeriesContainer timeSeriesContainer) Adds a feature to the Data attribute of the Table objectvoidDescription of the MethodbooleanDoes this data set allow rows to be deleted? Only true if irregular interval and single column.voidallowSort(boolean doSort) Description of the Methodprotected voidvoidInserts one row after the currently selected row This method is called by the popup menuvoidasks the user how many rows they want to append to the end of the tablevoidappendRows(int numberRows) Append rows at the bottom of the table This method is usually called automatically when entering data at the of the tablevoidapplyQuality(IntUnaryOperator qualityFunction) voidvoidDescription of the MethodvoiddeleteRows(int[] rows) voidcalled when editing has stopped.voidexport the table to file specified with default export options.voidexport(String filename, TableExportOptions exportOptions) export the table to file specified with the export options specified by options.voidexportAsHTML(BufferedWriter writer, String title, String indent) Description of the MethodvoidexportAsXML(BufferedWriter writer, String title, String indent) Description of the Methodbooleanfind(String findStr, int startingRow, int startingColumn, int firstColumn, boolean wholeWordOnly, boolean down, Dimension rowCol) intGets the columnCount attribute of the Table objectintGets the dataSets attribute of the Table objectintGets the dateStyle attribute of the Table objectbooleanGets the dateTimeAsTwoColumns attribute of the Table objectintGets the decimalPosition attribute of the Table objectintgetDecimalPosition(int column) Gets the decimalPosition attribute of the Table objectintintgetName()Gets the name attribute of the Table objectGets the nominalName attribute of the Table objectintGets the numberHeaderRows attribute of the Table objectintGets the rowCount attribute of the Table objectGets the selectedDataString attribute of the Table objectbooleanbooleanhec.dataTable.DataModelgetToolTipText(MouseEvent event) Gets the toolTipText attribute of the Table objectbooleanDescription of the MethodbooleanDescription of the Methodprotected voidinit()voidDescription of the MethodvoidvoidinsertColumn(boolean append) booleaninsertPairedDataRow(int selRow) voidinsert a row at the current rowbooleaninsertTimeSeriesRow(int selRow) booleanisCellEditable(int row, int column) Returns true if the cell atrowandcolumnis editable.booleanisSorted()isSorted()voidnumberOfPairedCurvesChanged(int newNumber) Description of the Methodvoidpaste()paste implementationvoidDescription of the MethodvoidDescription of the MethodDescription of the MethodvoidDescription of the MethodvoidDescription of the Methodprotected voidselectColumnHeader(int column) voidvoidsetCommas(boolean showCommas) Sets the commas attribute of the Table objectintsetData(DataContainer container, boolean showCommas, int qualityStyle) Sets the data attribute of the Table objectintSets the data attribute of the Table objectvoidsetDataChanged(boolean dataChanged) voidsetDateStyle(int dateStyle) Sets the dateStyle attribute of the Table objectvoidsetDateTimeAsTwoColumns(boolean dateTimeAsTwoColumns) Sets the dateTimeAsTwoColumns attribute of the Table objectvoidsetDecimalPosition(int numberDecimals) Sets the decimalPosition attribute of the Table objectvoidsetDecimalPosition(int column, int numberDecimals) Sets the decimalPosition attribute of the Table objectvoidsetEditable(boolean isEditable) Sets the editable attribute of the Table objectvoidsetEditBackground(boolean isEditable) Sets the editBackground attribute of the Table objectvoidsetExtendable(boolean extendable, int numberBlankRows) Sets the extendable attribute of the Table objectvoidsetNumberHeaderRows(int number) Sets the numberHeaderRows attribute of the Table objectvoidsetShowFullDefinition(boolean showFullDefinition) voidsetShowTimes(boolean showTimes) protected voidprotected voidvoidsetUndefinedStyle(int undefinedStyle) Sets the undefinedStyle attribute of the Table objectvoidDescription of the MethodvoidshowTimeAsBeginningOfDay(boolean showTimeAsBeginning) voidDescription of the MethodvoidDescription of the MethodintupdateContainers(int[] firstError) Description of the MethodxgetCellRenderer(int row, int column) Description of the MethodMethods inherited from class rma.swing.RmaJTable
_editingStopped, actionPerformed, addCellEditorListener, addPopupItem, addTableChangeListener, addTableMinMaxTracker, addTableModelListener, adjustAllColumnsWidthToFitData, adjustColumnWidthtoFitData, appendRow, appendRow, appendRow, buildControls, buildPopup, changedUpdate, changeSelection, clear, clearAll, clearAllComboBoxRowEditorValues, clearCells, clearColors, clearPerformed, clearRowBackgrounds, clearSelection, columnSizes, commitEdit, constantFill, copy, copyall, createAlignTableCellRenderer, createBooleanRenderer, createComboBoxEditor, createDecimalField, createDefaultBorder, createDefaultDataModel, createDefaultEditors, createDefaultRenderers, createDefaultTableHeader, createRmaCellRenderer, createScrollPane, cut, deleteCells, deleteRow, displayNumCol, editCellAt, editingCanceled, exportAsHTML, exportAsHTML, exportAsHTML, exportAsXML, exportAsXML, exportAsXML, exportData, exportData, exportData, exportData, exportData, factorFill, fill, fillColumn, fillColumn, fillToEnd, findInTableAction, fireTableChangeEvent, getAddRemoveEnabled, getAlternatingReportBackground, getAlternatingReportBackgroundColor, getAutoRowHeaderOffset, getAutoRowHeaders, getCell, getCellBackground, getCellFont, getCellForeground, getCellRect, getCells, getClassForName, getClearedCellValue, getClickCountToStart, getColumnBackground, getColumnCellRangeVector, getColumnForeground, getColumnHeaderBackground, getColumnHeaderFont, getColumnHeaderForeground, getColumnLabel, getColumnLabels, getColumnWidth, getColumnWidthFromData, getColumnWidths, getDefaultRenderer, getDisabledBackground, getDisplayScaleMap, getDisplayUnitsString, getDisplayUnitsString, getDisplayUnitSystem, getExportString, getFillDialog, getFillToEndCellRangeVector, getFirstSelectedCell, getHorizontalAlignment, getHTMLExportString, getHTMLExportString, getLastSelectedCell, getMinMax, getModifiedForegroundColor, getNumRows, getPasteAddsRows, getPasteBackground, getPasteForeground, getPopupMenu, getPopupMenuEnabled, getPopupMenuItemFont, getPopupPoint, getPrecision, getPreferredLineHeight, getPrintManager, getPrintOtherInfo, getPrintTitle, getRow, getRowBackground, getRowBackground, getRowForeground, getRowForeground, getRowHeaderEnabled, getRowHeight, getRowsToInsert, getScrollPane, getSelectedCellData, getSelectedCellRange, getSelectedCellRangeVector, getSelectedCells, getSelectedColumns, getSelectedRows, getSelectedRowsVector, getTimeZone, getViewportRowHeader, getXMLExportString, getXMLExportString, handlePopupMenu, insertRow, insertUpdate, isCellSelected, isEditable, isFirstFixedRow, isManagingFocus, isModified, isValid, itemStateChanged, keyPressed, keyReleased, keyTyped, linearFill, linearFill, main, mouseClicked, mouseDown, mouseEntered, mouseExited, mousePressed, mouseReleased, pasteCell, prepareEditor, print, printData, printPreview, processComponentKeyEvent, removeCellEditorListener, removeCellEditorListener, removeEditorListeners, removeLastRow, removePopuMenuExportOptions, removePopuMenuFillOptions, removePopupMenuInsertAppendOnly, removePopupMenuPrintOptions, removePopupMenuRowEditingOptions, removePopupMenuSumOptions, removeTableChangeListener, removeUpdate, repeatFill, repeatFill, resetRowEnabled, reverseSelectionContents, rowAtPoint, selectAll, setAddRemoveEnabled, setAllColumnsEnabled, setAllowsFontResizing, setAlternatingReportBackground, setAlternatingReportBackgroundColor, setAutoRowHeaders, setAutoRowHeaders, setButtonCellEditor, setCell, setCellBackground, setCellEnabled, setCellFont, setCellForeground, setCellRenderer, setCells, setCells, setCheckBoxCellEditor, setCheckBoxCellEditor, setColorComboBoxEditor, setColumnBackground, setColumnEditor, setColumnEditor, setColumnEnabled, setColumnForeground, setColumnHeaderBackground, setColumnHeaderFont, setColumnHeaderForeground, setColumnLabel, setColumnLabels, setColumnParameters, setColumnPrecision, setColumnsEnabled, setColumnsEnabled, setColumnVisible, setColumnVisible, setColumnWidth, setColumnWidths, setComboBoxCellEditor, setComboBoxEditor, setComboBoxEditor, setComboBoxEditor, setComboBoxRowEditor, setCurrencyCellEditor, setDateCellEditor, setDateCellEditor, setDateEditorForCell, setDateTimeCellEditor, setDateTimeEditorForCell, setDefaultHeaderToolTipText, setDescriptionCellEditor, setDisplayScaleFactor, setDisplayUnitsSystem, setDoubleCellEditor, setDoubleCellEditor, setDoubleCellEditor, setDoubleCellEditor, setDoubleCellEditor, setDoubleCellEditor, setDoubleEditorForCell, setDssPathPartCellEditor, setEditorForCell, setEnabled, setFirstFixedRow, setFixedLengthCellEditor, setHorizontalAlignment, setHorizontalAlignment, setIntegerCellEditor, setIntegerEditorForCell, setIsEditable, setLongCellEditor, setMenusEnabled, setMlHeaderRenderer, setModel, setModified, setModifiedForegroundColor, setNumColumns, setNumRows, setParent, setPasteAddsRows, setPasteBackground, setPasteForeground, setPopupMenu, setPopupMenuEnabled, setPrecision, setPrintOtherInfo, setPrintTitle, setProcessKeyEvents, setRow, setRow, setRowBackground, setRowEnabled, setRowForeground, setRowHeaderEnabled, setRowHeaderRenderer, setRowSelectionInterval, setRowSorter, setSelectedIndices, setTableHeader, setTabToEditCell, setTextAreaCellEditor, setTextAreaCellEditor, setTextFieldRowEditor, setTimeCellEditor, setTimeEditorForCell, setTimeZone, setToggleCellEditor, setUnitsHeaderRenderer, setUnitsHeaderRenderer, setUpTabKeys, setUseDefaultPrintHeader, setUseNonContiguousSelection, setViewportRowHeader, setViewportRowHeader, shouldShowPopup, sumColumn, tabBackAction, tabForwardAction, textValueChanged, traverseCellDown, traverseCellLeft, traverseCellRight, traverseCellUp, undo, updateSelection, updateSelectionModel, useDefaultPrintHeader, valueFillMethods inherited from class javax.swing.JTable
addColumn, addColumnSelectionInterval, addNotify, addRowSelectionInterval, columnAdded, columnAtPoint, columnMarginChanged, columnMoved, columnRemoved, columnSelectionChanged, configureEnclosingScrollPane, convertColumnIndexToModel, convertColumnIndexToView, convertRowIndexToModel, convertRowIndexToView, createDefaultColumnModel, createDefaultColumnsFromModel, createDefaultSelectionModel, createScrollPaneForTable, doLayout, editCellAt, getAccessibleContext, getAutoCreateColumnsFromModel, getAutoCreateRowSorter, getAutoResizeMode, getCellEditor, getCellEditor, getCellRenderer, getCellSelectionEnabled, getColumn, getColumnClass, getColumnModel, getColumnName, getColumnSelectionAllowed, getDefaultEditor, getDragEnabled, getDropLocation, getDropMode, getEditingColumn, getEditingRow, getEditorComponent, getFillsViewportHeight, getGridColor, getIntercellSpacing, getModel, getPreferredScrollableViewportSize, getPrintable, getRowHeight, getRowMargin, getRowSelectionAllowed, getRowSorter, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getSelectedColumn, getSelectedColumnCount, getSelectedRow, getSelectedRowCount, getSelectionBackground, getSelectionForeground, getSelectionModel, getShowHorizontalLines, getShowVerticalLines, getSurrendersFocusOnKeystroke, getTableHeader, getUI, getUIClassID, getUpdateSelectionOnSort, getValueAt, initializeLocalVars, isColumnSelected, isEditing, isRowSelected, moveColumn, paramString, prepareRenderer, print, print, print, print, print, processKeyBinding, removeColumn, removeColumnSelectionInterval, removeEditor, removeNotify, removeRowSelectionInterval, resizeAndRepaint, setAutoCreateColumnsFromModel, setAutoCreateRowSorter, setAutoResizeMode, setCellEditor, setCellSelectionEnabled, setColumnModel, setColumnSelectionAllowed, setColumnSelectionInterval, setDefaultEditor, setDefaultRenderer, setDragEnabled, setDropMode, setEditingColumn, setEditingRow, setFillsViewportHeight, setGridColor, setIntercellSpacing, setPreferredScrollableViewportSize, setRowHeight, setRowHeight, setRowMargin, setRowSelectionAllowed, setRowSelectionInterval, setSelectionBackground, setSelectionForeground, setSelectionMode, setSelectionModel, setShowGrid, setShowHorizontalLines, setShowVerticalLines, setSurrendersFocusOnKeystroke, setUI, setUpdateSelectionOnSort, setValueAt, sizeColumnsToFit, sizeColumnsToFit, sorterChanged, unconfigureEnclosingScrollPane, updateUI, valueChangedMethods inherited from class javax.swing.JComponent
addAncestorListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateMethods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeMethods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Field Details
-
_editMode
protected boolean _editModeDescription of the Field -
_tableData
protected hec.dataTable.DataModel _tableData -
_allowSort
protected boolean _allowSort -
_hasBeenSorted
protected boolean _hasBeenSorted -
_parentFrame
-
_ignoreNextEditingStopped
protected boolean _ignoreNextEditingStopped
-
-
Constructor Details
-
HecDataTable
Constructor for the Table object- Parameters:
parentFrame- Description of Parameter
-
HecDataTable
-
-
Method Details
-
init
protected void init() -
setData
Sets the data attribute of the Table object- Parameters:
dataSets- The new data valueshowCommas- The new data valuequalityStyle- The new data value- Returns:
- Description of the Returned Value
-
setupModel
public void setupModel()Description of the Method -
setToolTipHeaders
protected void setToolTipHeaders() -
setSorter
protected void setSorter() -
setData
Sets the data attribute of the Table object- Parameters:
container- The new data valueshowCommas- The new data valuequalityStyle- The new data value- Returns:
- Description of the Returned Value
-
setEditable
public void setEditable(boolean isEditable) Sets the editable attribute of the Table object- Overrides:
setEditablein classRmaJTable- Parameters:
isEditable- The new editable value
-
selectColumnHeader
protected void selectColumnHeader(int column) -
setDateStyle
public void setDateStyle(int dateStyle) Sets the dateStyle attribute of the Table object- Parameters:
dateStyle- The new dateStyle value
-
setColumnWidths
public void setColumnWidths() -
setExtendable
public void setExtendable(boolean extendable, int numberBlankRows) Sets the extendable attribute of the Table object- Parameters:
extendable- The new extendable valuenumberBlankRows- The new extendable value
-
setDateTimeAsTwoColumns
public void setDateTimeAsTwoColumns(boolean dateTimeAsTwoColumns) Sets the dateTimeAsTwoColumns attribute of the Table object- Parameters:
dateTimeAsTwoColumns- The new dateTimeAsTwoColumns value
-
getTableModel
public hec.dataTable.DataModel getTableModel() -
setCommas
public void setCommas(boolean showCommas) Sets the commas attribute of the Table object- Parameters:
showCommas- The new commas value
-
showTimeAsBeginningOfDay
public void showTimeAsBeginningOfDay(boolean showTimeAsBeginning) -
setShowTimes
public void setShowTimes(boolean showTimes) -
getShowTimes
public boolean getShowTimes() -
setShowFullDefinition
public void setShowFullDefinition(boolean showFullDefinition) -
getShowFullDefinition
public boolean getShowFullDefinition() -
setDecimalPosition
public void setDecimalPosition(int numberDecimals) Sets the decimalPosition attribute of the Table object- Parameters:
numberDecimals- The new decimalPosition value
-
setDecimalPosition
public void setDecimalPosition(int column, int numberDecimals) Sets the decimalPosition attribute of the Table object- Parameters:
column- The table column to setnumberDecimals- The new decimalPosition value
-
setUndefinedStyle
public void setUndefinedStyle(int undefinedStyle) Sets the undefinedStyle attribute of the Table object- Parameters:
undefinedStyle- The new undefinedStyle value
-
setNumberHeaderRows
public void setNumberHeaderRows(int number) Sets the numberHeaderRows attribute of the Table object- Parameters:
number- The new numberHeaderRows value
-
getTableType
-
getDataSets
Gets the dataSets attribute of the Table object- Returns:
- The dataSets value
-
getDateStyle
public int getDateStyle()Gets the dateStyle attribute of the Table object- Returns:
- The dateStyle value
-
getDateTimeAsTwoColumns
public boolean getDateTimeAsTwoColumns()Gets the dateTimeAsTwoColumns attribute of the Table object- Returns:
- The dateTimeAsTwoColumns value
-
getDecimalPosition
public int getDecimalPosition()Gets the decimalPosition attribute of the Table object- Returns:
- The decimalPosition value
-
getDecimalPosition
public int getDecimalPosition(int column) Gets the decimalPosition attribute of the Table object- Parameters:
column- The column to retrieve the postion from- Returns:
- The decimalPosition value
-
getRowCount
public int getRowCount()Gets the rowCount attribute of the Table object- Overrides:
getRowCountin classJTable- Returns:
- The rowCount value
-
getColumnCount
public int getColumnCount()Gets the columnCount attribute of the Table object- Overrides:
getColumnCountin classJTable- Returns:
- The columnCount value
-
getDataColumnCount
public int getDataColumnCount() -
getFirstDataColumn
public int getFirstDataColumn() -
getFirstDataRow
public int getFirstDataRow() -
getNominalName
Gets the nominalName attribute of the Table object- Returns:
- The nominalName value
-
getName
Gets the name attribute of the Table object -
getNumberHeaderRows
public int getNumberHeaderRows()Gets the numberHeaderRows attribute of the Table object- Returns:
- The numberHeaderRows value
-
isCellEditable
public boolean isCellEditable(int row, int column) Description copied from class:RmaJTableReturns true if the cell atrowandcolumnis editable. Otherwise, invokingsetValueAton the cell will have no effect.Note: The column is specified in the table view's display order, and not in the
TableModel's column order. This is an important distinction because as the user rearranges the columns in the table, the column at a given index in the view will change. Meanwhile the user's actions never affect the model's column ordering.- Overrides:
isCellEditablein classRmaJTable- Parameters:
row- the row whose value is to be queriedcolumn- the column whose value is to be queried- Returns:
- true if the cell is editable
- See Also:
-
getToolTipText
Gets the toolTipText attribute of the Table object- Overrides:
getToolTipTextin classRmaJTable- Parameters:
event- Description of Parameter- Returns:
- The toolTipText value
-
getSelectedDataString
Gets the selectedDataString attribute of the Table object- Returns:
- The selectedDataString value
-
addData
Adds a feature to the Data attribute of the Table object- Parameters:
timeSeriesContainer- The feature to be added to the Data attribute- Returns:
- Description of the Returned Value
-
xgetCellRenderer
Description of the Method- Parameters:
row- Description of Parametercolumn- Description of Parameter- Returns:
- Description of the Returned Value
-
tableChanged
Description of the Method- Specified by:
tableChangedin interfaceTableModelListener- Overrides:
tableChangedin classRmaJTable- Parameters:
e- Description of Parameter
-
export
export the table to file specified with default export options.- Parameters:
filename- Description
-
export
export the table to file specified with the export options specified by options.- Parameters:
filename- DescriptionexportOptions- Description
-
stopEditing
public void stopEditing()Description of the Method -
initializeEntryStartTime
public void initializeEntryStartTime()Description of the Method -
allowSort
public void allowSort(boolean doSort) Description of the Method- Parameters:
doSort- Description of Parameter
-
numberOfPairedCurvesChanged
public void numberOfPairedCurvesChanged(int newNumber) Description of the Method- Parameters:
newNumber- Description of Parameter
-
hasDataChanged
public boolean hasDataChanged()Description of the Method- Returns:
- Description of the Returned Value
-
setDataChanged
public void setDataChanged(boolean dataChanged) -
hasQuality
public boolean hasQuality()Description of the Method- Returns:
- Description of the Returned Value
-
updateContainers
public int updateContainers(int[] firstError) Description of the Method -
getDataContainers
-
save
Description of the Method- Parameters:
parent- Description of Parameter
-
saveAs
Description of the Method- Parameters:
parent- Description of Parameter
-
plot
Description of the Method- Parameters:
parent- Description of Parameter
-
printString
Description of the Method- Returns:
- Description of the Returned Value
-
find
-
allDataString
Description of the Method- Returns:
- Description of the Returned Value
-
isSorted
public boolean isSorted()isSorted()- Returns:
- boolean if this table has ever been sorted (If so, do not allow an edit on it)
-
insertRow
public void insertRow()insert a row at the current row -
insertTimeSeriesRow
public boolean insertTimeSeriesRow(int selRow) -
insertPairedDataRow
public boolean insertPairedDataRow(int selRow) -
getParentFrame
-
deleteRow
public void deleteRow()Description of the Method -
deleteRows
public void deleteRows(int[] rows) -
deleteColumn
public void deleteColumn() -
insertColumn
public void insertColumn() -
appendColumn
protected void appendColumn() -
applyQuality
-
insertColumn
public void insertColumn(boolean append) -
allowDeleteRow
public boolean allowDeleteRow()Does this data set allow rows to be deleted? Only true if irregular interval and single column. -
appendRows
public void appendRows(int numberRows) Append rows at the bottom of the table This method is usually called automatically when entering data at the of the table- Overrides:
appendRowsin classRmaJTable- Parameters:
numberRows- number of rows to append
-
appendRows
public void appendRows()Description copied from class:RmaJTableasks the user how many rows they want to append to the end of the table- Overrides:
appendRowsin classRmaJTable
-
appendRow
public void appendRow()Inserts one row after the currently selected row This method is called by the popup menu -
paste
public void paste()Description copied from class:RmaJTablepaste implementation -
editingStopped
Description copied from class:RmaJTablecalled when editing has stopped. Pass on call to any registered listeners.- Specified by:
editingStoppedin interfaceCellEditorListener- Overrides:
editingStoppedin classRmaJTable- Parameters:
e- Description
-
pasteData
Description of the Method- Parameters:
pasteString- Description of Parameter
-
addMouseListenerToHeaderInTable
-
exportAsXML
Description of the Method- Overrides:
exportAsXMLin classRmaJTable- Parameters:
writer- Description of Parametertitle- Description of Parameterindent- Description of Parameter
-
exportAsHTML
Description of the Method- Overrides:
exportAsHTMLin classRmaJTable- Parameters:
writer- Description of Parametertitle- Description of Parameterindent- Description of Parameter
-
setEditBackground
public void setEditBackground(boolean isEditable) Sets the editBackground attribute of the Table object- Parameters:
isEditable- The new editBackground value
-