Package rma.swing.table
Class AccessTable
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTable
rma.swing.RmaJTable
rma.swing.table.AccessTable
- 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
- See Also:
-
Nested Class Summary
Nested 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
Fields 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
ConstructorsConstructorDescriptionAccessTable(Component parent) AccessTable(Component parent, String[] headers) -
Method Summary
Modifier and TypeMethodDescriptionvoidappendOnEditCell(boolean b) voidappendOnEditStopped(boolean b) protected voidcheckAppendRow(int row) Checks to if the argument row is the last row and if so append a new empty row to the table model.booleaneditCellAt(int row, int column) booleaneditCellAt(int row, int column, EventObject e) Method Descriptionvoidcalled when editing has stopped.booleanmoveToNewPosition(int row, int column) This method says if it is OK to switch cells.Methods inherited from class rma.swing.RmaJTable
_editingStopped, actionPerformed, addCellEditorListener, addPopupItem, addTableChangeListener, addTableMinMaxTracker, addTableModelListener, adjustAllColumnsWidthToFitData, adjustColumnWidthtoFitData, appendRow, appendRow, appendRow, appendRow, appendRows, appendRows, 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, deleteRow, displayNumCol, editingCanceled, exportAsHTML, exportAsHTML, exportAsHTML, exportAsHTML, exportAsXML, 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, getToolTipText, getViewportRowHeader, getXMLExportString, getXMLExportString, handlePopupMenu, insertRow, insertRow, insertUpdate, isCellEditable, isCellSelected, isEditable, isFirstFixedRow, isManagingFocus, isModified, isValid, itemStateChanged, keyPressed, keyReleased, keyTyped, linearFill, linearFill, main, mouseClicked, mouseDown, mouseEntered, mouseExited, mousePressed, mouseReleased, paste, 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, setEditable, 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, tableChanged, 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, getAccessibleContext, getAutoCreateColumnsFromModel, getAutoCreateRowSorter, getAutoResizeMode, getCellEditor, getCellEditor, getCellRenderer, getCellSelectionEnabled, getColumn, getColumnClass, getColumnCount, getColumnModel, getColumnName, getColumnSelectionAllowed, getDefaultEditor, getDragEnabled, getDropLocation, getDropMode, getEditingColumn, getEditingRow, getEditorComponent, getFillsViewportHeight, getGridColor, getIntercellSpacing, getModel, getPreferredScrollableViewportSize, getPrintable, getRowCount, 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, getName, 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
-
Constructor Details
-
AccessTable
public AccessTable() -
AccessTable
-
AccessTable
-
-
Method Details
-
checkAppendRow
protected void checkAppendRow(int row) Checks to if the argument row is the last row and if so append a new empty row to the table model. -
editCellAt
Description copied from class:RmaJTableMethod Description- Overrides:
editCellAtin classRmaJTable- Parameters:
row- Descriptioncolumn- Descriptione- Description- Returns:
- Description
-
editCellAt
public boolean editCellAt(int row, int column) - Overrides:
editCellAtin classJTable
-
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
-
appendOnEditStopped
public void appendOnEditStopped(boolean b) -
appendOnEditCell
public void appendOnEditCell(boolean b) -
moveToNewPosition
public boolean moveToNewPosition(int row, int column) This method says if it is OK to switch cells. It should only be called by the AccessTableUI. The AccessTableUI generates gets the mouse events and figures out where to move. This hook Allows the table to do a commit of a record i.e. a user moves from row to row. If for some reason the commit is unsuccessful, this method returns false. Otherwise returns true and the table acts like normal.
-