|
||||||||||
| 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.jurvis.swing.table.JvTable
public abstract class JvTable
A JTable that allows nodes to be dragged and dropped within the
table and between other components.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JTable |
|---|
JTable.AccessibleJTable, 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.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| 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 | |
|---|---|
JvTable()
Construct a JvTable with the default data and column
models with no ability to drag and drop rows. |
|
JvTable(TableModel model)
Construct a JvTable with the specified data and column
models with no ability to drag and drop rows. |
|
JvTable(TableModel model,
TableColumnModel columnModel)
Construct a JvTable with the specified data and column
models with no ability to drag and drop rows. |
|
| Method Summary | |
|---|---|
void |
addItem()
Add an new item to the container. |
void |
copyItem()
Copy the currently selected item to the clipboard. |
void |
createDefaultColumnsFromModel()
Creates columns for the table from the data model using the getColumnCount method defined in the
TableModel interface. |
void |
deleteItem()
Delete the currently selected item from the container. |
void |
editItem()
Edit the currently selected item of the container. |
JComponent |
getComponent()
Return the top-level component of this container. |
JTable |
getTable()
Return the JTable of this container. |
boolean |
isAddItemEnabled()
Return true if an "Add Item" is currently allowed. |
boolean |
isCopyItemEnabled()
Return true if a "Copy Item" is currently allowed. |
boolean |
isDeleteItemEnabled()
Return true if an "Delete Item" is currently allowed. |
boolean |
isEditItemEnabled()
Return true if an "Edit Item" is currently allowed. |
boolean |
isPasteItemEnabled()
Return true if a "Paste Item" is currently allowed. |
void |
pasteItem()
Paste the currently selected item to the clipboard. |
protected boolean |
processKeyBinding(KeyStroke ks,
KeyEvent e,
int condition,
boolean pressed)
Invoked to process the key bindings for ks as the result
of the KeyEvent e. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jurvis.beans.JvJavaBean |
|---|
addPropertyChangeListener, removePropertyChangeListener |
| Constructor Detail |
|---|
public JvTable()
JvTable with the default data and column
models with no ability to drag and drop rows.
public JvTable(TableModel model)
JvTable with the specified data and column
models with no ability to drag and drop rows.
model - the TableModel containing the table data
public JvTable(TableModel model,
TableColumnModel columnModel)
JvTable with the specified data and column
models with no ability to drag and drop rows.
model - the TableModel containing the table datacolumnModel - the TableColumnModeldescribing the columns| Method Detail |
|---|
public JComponent getComponent()
getComponent in interface JvPanelContainerpublic JTable getTable()
JTable of this container.
getTable in interface JvPanelTableJTable of this containerpublic boolean isAddItemEnabled()
isAddItemEnabled in interface JvPanelContainerpublic boolean isDeleteItemEnabled()
isDeleteItemEnabled in interface JvPanelContainerpublic boolean isEditItemEnabled()
isEditItemEnabled in interface JvPanelContainerpublic boolean isCopyItemEnabled()
isCopyItemEnabled in interface JvPanelContainerpublic boolean isPasteItemEnabled()
isPasteItemEnabled in interface JvPanelContainerpublic void addItem()
addItem in interface JvPanelContainerpublic void deleteItem()
deleteItem in interface JvPanelContainerpublic void editItem()
editItem in interface JvPanelContainerpublic void copyItem()
copyItem in interface JvPanelContainerpublic void pasteItem()
pasteItem in interface JvPanelContainerpublic void createDefaultColumnsFromModel()
getColumnCount method defined in the
TableModel interface.
createDefaultColumnsFromModel in class JTable
protected boolean processKeyBinding(KeyStroke ks,
KeyEvent e,
int condition,
boolean pressed)
ks as the result
of the KeyEvent e. Override to ensure that when a keypress
occurs the editor component gets focus. See Bug Parade #4274963.
processKeyBinding in class JTable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||