|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTable
org.jdesktop.swingx.JXTable
org.tbee.swing.table.JTable
org.tbee.swing.table.JTableForEdit
org.tbee.swing.jdbc.JTableForEditRowset
public class JTableForEditRowset
TOM 2007-09-11: Ziet er niet erg bruikbaar uit. Scrap? This class implements a quick JTableForEdit on a SQL statement using a CachedRowSet. Use the Column inner classes to hook in enhanced behaviour. Example: new JTableForEditRowset( lConnection , "select translationnr, id, countrycodenr, translation from translation" , new Column[] { new AutomaticValueColumn("Nr", "select translationnr.nextval from _number where n = 1") , new Column("Id") , new JComboBoxColumn("Taal", "select countrycodenr, countrycode from countrycodetable order by countrycode", true) , new Column("Vertaling") } );
| Nested Class Summary | |
|---|---|
static class |
JTableForEditRowset.AutomaticValueColumn
Upon store this field will have a the result of an SQL statement put into it, if the current value is still the initial value |
static class |
JTableForEditRowset.Column
Base column, just add some descriptive info |
static class |
JTableForEditRowset.JComboBoxColumn
Use a combobox for this column, so we need an SQL statement. |
| Nested classes/interfaces inherited from class org.tbee.swing.table.JTableForEdit |
|---|
JTableForEdit.RowCol |
| Nested classes/interfaces inherited from class org.tbee.swing.table.JTable |
|---|
JTable.OnFocusStopEditHandler |
| Nested classes/interfaces inherited from class org.jdesktop.swingx.JXTable |
|---|
org.jdesktop.swingx.JXTable.BooleanEditor, org.jdesktop.swingx.JXTable.GenericEditor, org.jdesktop.swingx.JXTable.NumberEditor, org.jdesktop.swingx.JXTable.TableAdapter |
| Nested classes/interfaces inherited from class javax.swing.JTable |
|---|
JTable.AccessibleJTable, JTable.DropLocation, JTable.PrintMode |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static String |
SOURCECODE_VERSION
Standard variable for determining version of a class file. |
| Fields inherited from class org.tbee.swing.table.JTableForEdit |
|---|
iResourceBundle |
| Fields inherited from class org.tbee.swing.table.JTable |
|---|
iFocusLostHandler, iJTableColumnResizer, iJTableRowResizer, SORTERCHANGED_PROPERTYID |
| Fields inherited from class org.jdesktop.swingx.JXTable |
|---|
compoundHighlighter, dataAdapter, editorRemover, filteredRowCountChanged, FOCUS_NEXT_COMPONENT, FOCUS_PREVIOUS_COMPONENT, forceRevalidate, HORIZONTALSCROLL_ACTION_COMMAND, isXTableRowHeightSet, MATCH_HIGHLIGHTER, PACKALL_ACTION_COMMAND, PACKSELECTED_ACTION_COMMAND, resetDefaultTableCellRendererHighlighter, searchable, UIPREFIX, USE_DTCR_COLORMEMORY_HACK |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
JTableForEditRowset(Connection connection,
nl.knowledgeplaza.util.jdbc.SqlBuilder sqlBuilder,
JTableForEditRowset.Column[] columns)
|
|
JTableForEditRowset(Connection connection,
String sql,
JTableForEditRowset.Column[] columns)
|
|
| Method Summary | |
|---|---|
protected void |
initialize()
Initializes the table |
protected void |
initializeRowset()
Initializes the table |
void |
reload()
Discard any data and reload |
void |
store()
Store the data and is no errors, refresh |
| Methods inherited from class org.jdesktop.swingx.JXTable |
|---|
addHighlighter, adjustComponentOrientation, adminSetRowHeight, columnPropertyChange, columnSelectionChanged, configureColumnControl, configureEnclosingScrollPane, configureSorterProperties, createDefaultColumnControl, createDefaultColumnModel, createDefaultColumnsFromModel, createDefaultEditors, createDefaultRenderers, createDefaultRowSorter, createDefaultStringValueRegistry, createDefaultTableHeader, createHighlighterChangeListener, createLinkController, createRolloverProducer, doFind, doLayout, getAutoCreateColumnsFromModel, getAutoCreateRowSorter, getColumn, getColumnControl, getColumnCount, getColumnExt, getColumnExt, getColumnFactory, getColumnMargin, getColumns, getColumns, getComponentAdapter, getComponentAdapter, getCompoundHighlighter, getControlsSorterProperties, getHighlighterChangeListener, getHighlighters, getLinkController, getNewDefaultRenderer, getPreferredScrollableViewportSize, getRowFilter, getScrollableTracksViewportWidth, getSearchable, getSelectionMode, getSortController, getSortedColumn, getSortOrder, getSortOrder, getSortOrderCycle, getSortsOnUpdates, getStringAt, getStringValueRegistry, getUIString, getUIString, getVisibleColumnCount, getVisibleRowCount, hasSortController, initializeColumnPreferredWidth, initializeColumnWidths, isAutoStartEditOnKeyStroke, isCellEditable, isColumnControlVisible, isDataChanged, isEditable, isFocusCycleRoot, isHorizontalScrollEnabled, isRolloverEnabled, isRowHeightEnabled, isSortable, isSortable, isSortable, isStructureChanged, isTerminateEditOnFocusLost, isUpdate, packAll, packColumn, packColumn, packSelected, packTable, postprocessModelChange, postprocessSorterChanged, preprocessModelChange, removeEditor, removeHighlighter, removeNotify, resetSortOrder, rowAtPoint, scrollCellToVisible, scrollColumnToVisible, scrollRowToVisible, setAutoCreateRowSorter, setAutoStartEditOnKeyStroke, setColumnControl, setColumnControlVisible, setColumnFactory, setColumnMargin, setColumnModel, setColumnSequence, setComponentOrientation, setDefaultRenderer, setFillsViewportHeight, setGridColor, setHighlighters, setHorizontalScrollEnabled, setLocale, setPreferredScrollableViewportSize, setRolloverEnabled, setRowFilter, setRowHeight, setRowHeightEnabled, setSearchable, setSelectionBackground, setSelectionForeground, setShowGrid, setShowGrid, setSortable, setSortOrder, setSortOrder, setSortOrderCycle, setSortsOnUpdates, setTerminateEditOnFocusLost, setVisibleColumnCount, setVisibleRowCount, toggleSortOrder, toggleSortOrder, transferFocus, transferFocusBackward, unconfigureColumnControl, unconfigureEnclosingScrollPane, updateColumnControlUI, updateColumnUI, updateHighlighterUI, updateHorizontalAction, updateLocaleActionState, updateLocaleState, updateRowHeightUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String SOURCECODE_VERSION
| Constructor Detail |
|---|
public JTableForEditRowset(Connection connection,
String sql,
JTableForEditRowset.Column[] columns)
throws SQLException
connection - sql - columns -
SQLException
public JTableForEditRowset(Connection connection,
nl.knowledgeplaza.util.jdbc.SqlBuilder sqlBuilder,
JTableForEditRowset.Column[] columns)
throws SQLException
connection - sql - columns -
SQLException| Method Detail |
|---|
protected void initializeRowset()
throws SQLException
SQLException
protected void initialize()
throws SQLException
SQLException
public void reload()
throws SQLException
SQLException
public void store()
throws SQLException
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||