| javax.swing.JTable workbench.gui.components.WbTable
All known Subclasses: workbench.gui.dbobjects.DbObjectTable,
Constructor Summary | |
public | WbTable() | public | WbTable(boolean printEnabled) | public | WbTable(boolean printEnabled, boolean sqlCopyAllowed, boolean replaceAllowed) |
Method Summary | |
protected void | _setShowStatusColumn(boolean flag) | public void | actionPerformed(ActionEvent e) | public void | addPopupAction(WbAction anAction, boolean withSep) | public void | addPopupMenu(JMenuItem item, boolean withSep) | public long | addRow() | public void | addTableModelListener(TableModelListener aListener) | public void | adjustOrOptimizeColumns() Enhance the column width display. | public void | applyFilter(FilterExpression filter) | public void | applyHighlightExpression(ColumnExpression filter) | public boolean | canSearchAgain() | public void | cancelEditing() | public void | checkCopyActions() Enables the actions related to copying data to the clipboard
if this table contains rows. | public boolean | checkPkColumns(boolean promptWhenNeeded) Check for any defined PK columns. | public void | clearHighlightExpression() | public void | clearLastFilter(boolean keepGeneralFilter) | protected void | configureEnclosingScrollPane() | public static WbMenu | createCopySelectedMenu() | protected void | createDefaultRenderers() | public JToolTip | createToolTip() | public boolean | deleteRow() | public boolean | deleteRow(boolean withDependencies) | public boolean | detectDefinedPkColumns() | public void | dispose() | public int | duplicateRow(int row) | public boolean | editCellAt(int row, int column, EventObject e) | public void | focusGained(FocusEvent e) | public void | focusLost(FocusEvent e) | public void | fontChanged(String aFontId, Font newFont) | public TableCellRenderer | getCellRenderer(int row, int column) For some reason setting a default renderer for BLOB columns
is not working. | public CopyAsSqlDeleteInsertAction | getCopyAsDeleteInsertAction() | public CopyAsSqlInsertAction | getCopyAsInsertAction() | public CopyAsSqlUpdateAction | getCopyAsUpdateAction() | public CopySelectedAsSqlDeleteInsertAction | getCopySelectedAsSqlDeleteInsertAction() | public CopySelectedAsSqlInsertAction | getCopySelectedAsSqlInsertAction() | public CopySelectedAsSqlUpdateAction | getCopySelectedAsSqlUpdateAction() | public CopySelectedAsTextAction | getCopySelectedAsTextAction() | public WbMenu | getCopySelectedMenu() | public DataStore | getDataStore() | public DataStoreTableModel | getDataStoreTableModel() | public CopyAsTextAction | getDataToClipboardAction() | public SaveDataAsAction | getExportAction() | public FilterDataAction | getFilterAction() | public int | getFirstVisibleRow() | public ColumnExpression | getHighlightExpression() | public FilterExpression | getLastFilter() | public int | getLastVisibleRow() | public int | getLastVisibleRow(int first) | public int | getPopupColumnIndex() | public JPopupMenu | getPopupMenu() | public PrintAction | getPrintAction() | public String | getPrintHeader() Return the header to be used for printing. | public PrintPreviewAction | getPrintPreviewAction() | public TableReplacer | getReplacer() | public ResetFilterAction | getResetFilterAction() | public ResetHighlightAction | getResetHighlightAction() | public boolean | getSelectOnRightButtonClick() | public boolean | getShowStatusColumn() | public boolean | getUseDefaultStringRenderer() | public String | getValueAsString(int row, int column) | public boolean | hasPkColumns() Checks if the underlying DataStore has PrimaryKey columns defined.
true, if the DataStore has PK columns. | protected void | initDefaultEditors() | public void | initDefaultRenderers() | protected void | initRendererHighlight(int row) | public boolean | isBlobColumn(int column) | public boolean | isFiltered() | public boolean | isHighlightEnabled() | public boolean | isHighlightRequiredFields() | public boolean | isPrimarySortColumn(int viewIndex) | public boolean | isUpdateable() | public boolean | isViewColumnSortAscending(int viewIndex) | public boolean | isViewColumnSorted(int viewIndex) | public void | mouseClicked(MouseEvent e) Start sorting if the column header has been clicked. | public void | mouseEntered(MouseEvent e) Invoked when the mouse enters a component. | public void | mouseExited(MouseEvent e) Invoked when the mouse exits a component. | public void | mousePressed(MouseEvent e) Invoked when a mouse button has been pressed on a component. | public void | mouseReleased(MouseEvent e) Invoked when a mouse button has been released on a component. | public void | openEditWindow() | public void | populateCopySelectedMenu(WbMenu copyMenu) | public Component | prepareEditor(TableCellEditor editor, int row, int column) | protected boolean | processKeyBinding(KeyStroke ks, KeyEvent e, int condition, boolean pressed) | public void | propertyChange(PropertyChangeEvent evt) | public void | removeEditor() | public void | removePopupItem(JMenuItem item) | public void | removeTableModelListener(TableModelListener aListener) | public void | reset() | public void | resetFilter() | public void | resetPopup() | public void | restoreColumnSizes() | public void | restoreOriginalValues() | public void | saveColumnSizes() | public void | scrollToRow(int aRow) Scroll the given row into view. | public void | selectCell(int row, int col) | public boolean | selectKeyColumns() | public TableIdentifier | selectUpdateTable() | public void | setAdjustToColumnLabel(boolean aFlag) | public void | setColumnWidth(int column, int width) | public void | setFont(Font f) For some reason my Renderers do not display bigger
fonts properly. | public void | setHighlightRequiredFields(boolean flag) | public void | setModel(TableModel aModel) | public void | setModel(TableModel aModel, boolean sortIt) | public void | setPrintHeader(String aHeader) Set the header to be used for printing. | public void | setRowResizeAllowed(boolean aFlag) | public void | setSelectOnRightButtonClick(boolean flag) | public void | setShowPopupMenu(boolean aFlag) | public void | setShowStatusColumn(boolean flag) | public void | setStatusBar(DwStatusBar bar) | public void | setUseDefaultStringRenderer(boolean aFlag) | public void | showFocusBorder() | public void | sortingFinished() | public void | sortingStarted() | public boolean | stopEditing() | public void | useMultilineTooltip(boolean flag) | public void | valueChanged(ListSelectionEvent e) |
WbTable | public WbTable(boolean printEnabled)(Code) | | |
WbTable | public WbTable(boolean printEnabled, boolean sqlCopyAllowed, boolean replaceAllowed)(Code) | | |
_setShowStatusColumn | protected void _setShowStatusColumn(boolean flag)(Code) | | |
addPopupAction | public void addPopupAction(WbAction anAction, boolean withSep)(Code) | | |
addPopupMenu | public void addPopupMenu(JMenuItem item, boolean withSep)(Code) | | |
addRow | public long addRow()(Code) | | |
canSearchAgain | public boolean canSearchAgain()(Code) | | |
cancelEditing | public void cancelEditing()(Code) | | |
checkCopyActions | public void checkCopyActions()(Code) | | Enables the actions related to copying data to the clipboard
if this table contains rows. If this table is empty
the actions are disabled
|
checkPkColumns | public boolean checkPkColumns(boolean promptWhenNeeded)(Code) | | Check for any defined PK columns.
If no key columns can be found, the user
is prompted for the key columns
Parameters: promptWhenNeeded - if true, the user is asked to supply PK columns if none were found true, if primary key columns where found (or selected by the user) for the underlying table. See Also: WbTable.detectDefinedPkColumns() See Also: WbTable.selectKeyColumns() |
clearHighlightExpression | public void clearHighlightExpression()(Code) | | |
clearLastFilter | public void clearLastFilter(boolean keepGeneralFilter)(Code) | | |
configureEnclosingScrollPane | protected void configureEnclosingScrollPane()(Code) | | |
createCopySelectedMenu | public static WbMenu createCopySelectedMenu()(Code) | | |
createDefaultRenderers | protected void createDefaultRenderers()(Code) | | |
deleteRow | public boolean deleteRow()(Code) | | |
detectDefinedPkColumns | public boolean detectDefinedPkColumns()(Code) | | |
dispose | public void dispose()(Code) | | |
duplicateRow | public int duplicateRow(int row)(Code) | | |
getCellRenderer | public TableCellRenderer getCellRenderer(int row, int column)(Code) | | For some reason setting a default renderer for BLOB columns
is not working. So getCellRenderer is overwritten, to first
check for a BLOB column. If the specified column is not
a BLOB column, the default handling from JTable will be used.
|
getCopySelectedMenu | public WbMenu getCopySelectedMenu()(Code) | | |
getFirstVisibleRow | public int getFirstVisibleRow()(Code) | | |
getLastVisibleRow | public int getLastVisibleRow()(Code) | | |
getLastVisibleRow | public int getLastVisibleRow(int first)(Code) | | |
getPopupColumnIndex | public int getPopupColumnIndex()(Code) | | |
getSelectOnRightButtonClick | public boolean getSelectOnRightButtonClick()(Code) | | |
getShowStatusColumn | public boolean getShowStatusColumn()(Code) | | |
getUseDefaultStringRenderer | public boolean getUseDefaultStringRenderer()(Code) | | |
hasPkColumns | public boolean hasPkColumns()(Code) | | Checks if the underlying DataStore has PrimaryKey columns defined.
true, if the DataStore has PK columns. false if no PKs defined or no DataStore attached to this Table See Also: workbench.storage.DataStore.hasPkColumns |
initDefaultEditors | protected void initDefaultEditors()(Code) | | |
initRendererHighlight | protected void initRendererHighlight(int row)(Code) | | |
isBlobColumn | public boolean isBlobColumn(int column)(Code) | | |
isFiltered | public boolean isFiltered()(Code) | | |
isHighlightEnabled | public boolean isHighlightEnabled()(Code) | | |
isHighlightRequiredFields | public boolean isHighlightRequiredFields()(Code) | | |
isPrimarySortColumn | public boolean isPrimarySortColumn(int viewIndex)(Code) | | |
isUpdateable | public boolean isUpdateable()(Code) | | |
isViewColumnSortAscending | public boolean isViewColumnSortAscending(int viewIndex)(Code) | | |
isViewColumnSorted | public boolean isViewColumnSorted(int viewIndex)(Code) | | |
mouseClicked | public void mouseClicked(MouseEvent e)(Code) | | Start sorting if the column header has been clicked.
Parameters: e - the MouseEvent triggering the click |
mouseEntered | public void mouseEntered(MouseEvent e)(Code) | | Invoked when the mouse enters a component.
|
mouseExited | public void mouseExited(MouseEvent e)(Code) | | Invoked when the mouse exits a component.
|
mousePressed | public void mousePressed(MouseEvent e)(Code) | | Invoked when a mouse button has been pressed on a component.
|
mouseReleased | public void mouseReleased(MouseEvent e)(Code) | | Invoked when a mouse button has been released on a component.
|
openEditWindow | public void openEditWindow()(Code) | | |
populateCopySelectedMenu | public void populateCopySelectedMenu(WbMenu copyMenu)(Code) | | |
processKeyBinding | protected boolean processKeyBinding(KeyStroke ks, KeyEvent e, int condition, boolean pressed)(Code) | | |
removeEditor | public void removeEditor()(Code) | | |
reset | public void reset()(Code) | | |
resetFilter | public void resetFilter()(Code) | | |
resetPopup | public void resetPopup()(Code) | | |
restoreColumnSizes | public void restoreColumnSizes()(Code) | | |
restoreOriginalValues | public void restoreOriginalValues()(Code) | | |
saveColumnSizes | public void saveColumnSizes()(Code) | | |
scrollToRow | public void scrollToRow(int aRow)(Code) | | Scroll the given row into view.
|
selectCell | public void selectCell(int row, int col)(Code) | | |
selectKeyColumns | public boolean selectKeyColumns()(Code) | | Display dialog window to let the user
select the key columns for the current update table
true if the user selected OK, false if the user cancelled the dialog |
setAdjustToColumnLabel | public void setAdjustToColumnLabel(boolean aFlag)(Code) | | |
setColumnWidth | public void setColumnWidth(int column, int width)(Code) | | |
setFont | public void setFont(Font f)(Code) | | For some reason my Renderers do not display bigger
fonts properly. So I have to adjust the row height
when the font is defined
|
setHighlightRequiredFields | public void setHighlightRequiredFields(boolean flag)(Code) | | |
setRowResizeAllowed | public void setRowResizeAllowed(boolean aFlag)(Code) | | |
setSelectOnRightButtonClick | public void setSelectOnRightButtonClick(boolean flag)(Code) | | |
setShowPopupMenu | public void setShowPopupMenu(boolean aFlag)(Code) | | |
setShowStatusColumn | public void setShowStatusColumn(boolean flag)(Code) | | |
setUseDefaultStringRenderer | public void setUseDefaultStringRenderer(boolean aFlag)(Code) | | |
showFocusBorder | public void showFocusBorder()(Code) | | |
sortingFinished | public void sortingFinished()(Code) | | |
sortingStarted | public void sortingStarted()(Code) | | |
stopEditing | public boolean stopEditing()(Code) | | |
useMultilineTooltip | public void useMultilineTooltip(boolean flag)(Code) | | |
Methods inherited from javax.swing.JTable | public void addColumn(TableColumn aColumn)(Code)(Java Doc) public void addColumnSelectionInterval(int index0, int index1)(Code)(Java Doc) public void addNotify()(Code)(Java Doc) public void addRowSelectionInterval(int index0, int index1)(Code)(Java Doc) public void changeSelection(int rowIndex, int columnIndex, boolean toggle, boolean extend)(Code)(Java Doc) public void clearSelection()(Code)(Java Doc) public void columnAdded(TableColumnModelEvent e)(Code)(Java Doc) public int columnAtPoint(Point point)(Code)(Java Doc) public void columnMarginChanged(ChangeEvent e)(Code)(Java Doc) public void columnMoved(TableColumnModelEvent e)(Code)(Java Doc) public void columnRemoved(TableColumnModelEvent e)(Code)(Java Doc) public void columnSelectionChanged(ListSelectionEvent e)(Code)(Java Doc) protected void configureEnclosingScrollPane()(Code)(Java Doc) public int convertColumnIndexToModel(int viewColumnIndex)(Code)(Java Doc) public int convertColumnIndexToView(int modelColumnIndex)(Code)(Java Doc) public int convertRowIndexToModel(int viewRowIndex)(Code)(Java Doc) public int convertRowIndexToView(int modelRowIndex)(Code)(Java Doc) protected TableColumnModel createDefaultColumnModel()(Code)(Java Doc) public void createDefaultColumnsFromModel()(Code)(Java Doc) protected TableModel createDefaultDataModel()(Code)(Java Doc) protected void createDefaultEditors()(Code)(Java Doc) protected void createDefaultRenderers()(Code)(Java Doc) protected ListSelectionModel createDefaultSelectionModel()(Code)(Java Doc) protected JTableHeader createDefaultTableHeader()(Code)(Java Doc) public static JScrollPane createScrollPaneForTable(JTable aTable)(Code)(Java Doc) public void doLayout()(Code)(Java Doc) public boolean editCellAt(int row, int column)(Code)(Java Doc) public boolean editCellAt(int row, int column, EventObject e)(Code)(Java Doc) public void editingCanceled(ChangeEvent e)(Code)(Java Doc) public void editingStopped(ChangeEvent e)(Code)(Java Doc) public AccessibleContext getAccessibleContext()(Code)(Java Doc) public boolean getAutoCreateColumnsFromModel()(Code)(Java Doc) public boolean getAutoCreateRowSorter()(Code)(Java Doc) public int getAutoResizeMode()(Code)(Java Doc) public TableCellEditor getCellEditor()(Code)(Java Doc) public TableCellEditor getCellEditor(int row, int column)(Code)(Java Doc) public Rectangle getCellRect(int row, int column, boolean includeSpacing)(Code)(Java Doc) public TableCellRenderer getCellRenderer(int row, int column)(Code)(Java Doc) public boolean getCellSelectionEnabled()(Code)(Java Doc) public TableColumn getColumn(Object identifier)(Code)(Java Doc) public Class> getColumnClass(int column)(Code)(Java Doc) public int getColumnCount()(Code)(Java Doc) public TableColumnModel getColumnModel()(Code)(Java Doc) public String getColumnName(int column)(Code)(Java Doc) public boolean getColumnSelectionAllowed()(Code)(Java Doc) public TableCellEditor getDefaultEditor(Class> columnClass)(Code)(Java Doc) public TableCellRenderer getDefaultRenderer(Class> columnClass)(Code)(Java Doc) public boolean getDragEnabled()(Code)(Java Doc) final public DropLocation getDropLocation()(Code)(Java Doc) final public DropMode getDropMode()(Code)(Java Doc) public int getEditingColumn()(Code)(Java Doc) public int getEditingRow()(Code)(Java Doc) public Component getEditorComponent()(Code)(Java Doc) public boolean getFillsViewportHeight()(Code)(Java Doc) public Color getGridColor()(Code)(Java Doc) public Dimension getIntercellSpacing()(Code)(Java Doc) public TableModel getModel()(Code)(Java Doc) public Dimension getPreferredScrollableViewportSize()(Code)(Java Doc) public Printable getPrintable(PrintMode printMode, MessageFormat headerFormat, MessageFormat footerFormat)(Code)(Java Doc) public int getRowCount()(Code)(Java Doc) public int getRowHeight()(Code)(Java Doc) public int getRowHeight(int row)(Code)(Java Doc) public int getRowMargin()(Code)(Java Doc) public boolean getRowSelectionAllowed()(Code)(Java Doc) public RowSorter<? extends TableModel> getRowSorter()(Code)(Java Doc) public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)(Code)(Java Doc) public boolean getScrollableTracksViewportHeight()(Code)(Java Doc) public boolean getScrollableTracksViewportWidth()(Code)(Java Doc) public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)(Code)(Java Doc) public int getSelectedColumn()(Code)(Java Doc) public int getSelectedColumnCount()(Code)(Java Doc) public int[] getSelectedColumns()(Code)(Java Doc) public int getSelectedRow()(Code)(Java Doc) public int getSelectedRowCount()(Code)(Java Doc) public int[] getSelectedRows()(Code)(Java Doc) public Color getSelectionBackground()(Code)(Java Doc) public Color getSelectionForeground()(Code)(Java Doc) public ListSelectionModel getSelectionModel()(Code)(Java Doc) public boolean getShowHorizontalLines()(Code)(Java Doc) public boolean getShowVerticalLines()(Code)(Java Doc) public boolean getSurrendersFocusOnKeystroke()(Code)(Java Doc) public JTableHeader getTableHeader()(Code)(Java Doc) public String getToolTipText(MouseEvent event)(Code)(Java Doc) public TableUI getUI()(Code)(Java Doc) public String getUIClassID()(Code)(Java Doc) public boolean getUpdateSelectionOnSort()(Code)(Java Doc) public Object getValueAt(int row, int column)(Code)(Java Doc) protected void initializeLocalVars()(Code)(Java Doc) public boolean isCellEditable(int row, int column)(Code)(Java Doc) public boolean isCellSelected(int row, int column)(Code)(Java Doc) public boolean isColumnSelected(int column)(Code)(Java Doc) public boolean isEditing()(Code)(Java Doc) public boolean isRowSelected(int row)(Code)(Java Doc) public void moveColumn(int column, int targetColumn)(Code)(Java Doc) protected String paramString()(Code)(Java Doc) public Component prepareEditor(TableCellEditor editor, int row, int column)(Code)(Java Doc) public Component prepareRenderer(TableCellRenderer renderer, int row, int column)(Code)(Java Doc) public boolean print() throws PrinterException(Code)(Java Doc) public boolean print(PrintMode printMode) throws PrinterException(Code)(Java Doc) public boolean print(PrintMode printMode, MessageFormat headerFormat, MessageFormat footerFormat) throws PrinterException(Code)(Java Doc) public boolean print(PrintMode printMode, MessageFormat headerFormat, MessageFormat footerFormat, boolean showPrintDialog, PrintRequestAttributeSet attr, boolean interactive) throws PrinterException, HeadlessException(Code)(Java Doc) public boolean print(PrintMode printMode, MessageFormat headerFormat, MessageFormat footerFormat, boolean showPrintDialog, PrintRequestAttributeSet attr, boolean interactive, PrintService service) throws PrinterException, HeadlessException(Code)(Java Doc) protected boolean processKeyBinding(KeyStroke ks, KeyEvent e, int condition, boolean pressed)(Code)(Java Doc) public void removeColumn(TableColumn aColumn)(Code)(Java Doc) public void removeColumnSelectionInterval(int index0, int index1)(Code)(Java Doc) public void removeEditor()(Code)(Java Doc) public void removeNotify()(Code)(Java Doc) public void removeRowSelectionInterval(int index0, int index1)(Code)(Java Doc) protected void resizeAndRepaint()(Code)(Java Doc) public int rowAtPoint(Point point)(Code)(Java Doc) public void selectAll()(Code)(Java Doc) public void setAutoCreateColumnsFromModel(boolean autoCreateColumnsFromModel)(Code)(Java Doc) public void setAutoCreateRowSorter(boolean autoCreateRowSorter)(Code)(Java Doc) public void setAutoResizeMode(int mode)(Code)(Java Doc) public void setCellEditor(TableCellEditor anEditor)(Code)(Java Doc) public void setCellSelectionEnabled(boolean cellSelectionEnabled)(Code)(Java Doc) public void setColumnModel(TableColumnModel columnModel)(Code)(Java Doc) public void setColumnSelectionAllowed(boolean columnSelectionAllowed)(Code)(Java Doc) public void setColumnSelectionInterval(int index0, int index1)(Code)(Java Doc) public void setDefaultEditor(Class> columnClass, TableCellEditor editor)(Code)(Java Doc) public void setDefaultRenderer(Class> columnClass, TableCellRenderer renderer)(Code)(Java Doc) public void setDragEnabled(boolean b)(Code)(Java Doc) final public void setDropMode(DropMode dropMode)(Code)(Java Doc) public void setEditingColumn(int aColumn)(Code)(Java Doc) public void setEditingRow(int aRow)(Code)(Java Doc) public void setFillsViewportHeight(boolean fillsViewportHeight)(Code)(Java Doc) public void setGridColor(Color gridColor)(Code)(Java Doc) public void setIntercellSpacing(Dimension intercellSpacing)(Code)(Java Doc) public void setModel(TableModel dataModel)(Code)(Java Doc) public void setPreferredScrollableViewportSize(Dimension size)(Code)(Java Doc) public void setRowHeight(int rowHeight)(Code)(Java Doc) public void setRowHeight(int row, int rowHeight)(Code)(Java Doc) public void setRowMargin(int rowMargin)(Code)(Java Doc) public void setRowSelectionAllowed(boolean rowSelectionAllowed)(Code)(Java Doc) public void setRowSelectionInterval(int index0, int index1)(Code)(Java Doc) public void setRowSorter(RowSorter<? extends TableModel> sorter)(Code)(Java Doc) public void setSelectionBackground(Color selectionBackground)(Code)(Java Doc) public void setSelectionForeground(Color selectionForeground)(Code)(Java Doc) public void setSelectionMode(int selectionMode)(Code)(Java Doc) public void setSelectionModel(ListSelectionModel newModel)(Code)(Java Doc) public void setShowGrid(boolean showGrid)(Code)(Java Doc) public void setShowHorizontalLines(boolean showHorizontalLines)(Code)(Java Doc) public void setShowVerticalLines(boolean showVerticalLines)(Code)(Java Doc) public void setSurrendersFocusOnKeystroke(boolean surrendersFocusOnKeystroke)(Code)(Java Doc) public void setTableHeader(JTableHeader tableHeader)(Code)(Java Doc) public void setUI(TableUI ui)(Code)(Java Doc) public void setUpdateSelectionOnSort(boolean update)(Code)(Java Doc) public void setValueAt(Object aValue, int row, int column)(Code)(Java Doc) public void sizeColumnsToFit(boolean lastColumnOnly)(Code)(Java Doc) public void sizeColumnsToFit(int resizingColumn)(Code)(Java Doc) public void sorterChanged(RowSorterEvent e)(Code)(Java Doc) public void tableChanged(TableModelEvent e)(Code)(Java Doc) protected void unconfigureEnclosingScrollPane()(Code)(Java Doc) public void updateUI()(Code)(Java Doc) public void valueChanged(ListSelectionEvent e)(Code)(Java Doc)
|
|
|