|
||||||||||
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.JPanel
org.vizzini.ui.database.TablePanel
public class TablePanel
Provides a panel for interaction with a database table.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
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 | |
---|---|
protected static int |
COUNT_AREA
|
protected static int |
SELECTED_COUNT_AREA
|
protected static int |
STATUS_AREA
|
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 | |
---|---|
TablePanel(Frame frame,
IDatabase database,
String tableName,
String tableDisplayName,
String linkColumnName,
String searchColumnName,
List columnDescriptorList)
Construct this object. |
Method Summary | |
---|---|
void |
addEntryActionPerformed(ActionEvent event)
Callback for the add entry button. |
void |
associateEntryActionPerformed(ActionEvent event)
Callback for the associate entry button. |
void |
checkActions()
Check the enable state of the actions. |
void |
copyEntryActionPerformed(ActionEvent event)
Callback for the copy entry button. |
protected JPopupMenu |
createPopupMenu()
Create the tool bar. |
protected JToolBar |
createToolBar()
Create the tool bar. |
void |
deleteEntryActionPerformed(ActionEvent event)
Callback for the delete entry action. |
void |
disassociateEntryActionPerformed(ActionEvent event)
Callback for the disassociate entry button. |
protected Action |
getAddEntryAction()
Return the add entry action. |
protected Action |
getAssociateEntryAction()
Return the associate entry action. |
protected Action |
getCopyEntryAction()
Return the copy entry action. |
protected int |
getDeleteConfirmation(boolean onlyOne)
Show a dialog requesting confirmation of the delete action. |
protected Action |
getDeleteEntryAction()
Return the delete entry action. |
protected Action |
getDisassociateEntryAction()
Return the disassociate entry action. |
PropertyChangeListener |
getEditModeListener()
Return a listener for the edit mode property. |
protected Action |
getLookUpEntryAction()
Return the look up entry action. |
protected IRecord |
getSelectedItem()
Return the first selected item. |
Object[] |
getSelectedValues()
Return the selected values in the table. |
protected Action |
getShowAssociatedEntriesAction()
Return the show associated entries action. |
PropertyChangeListener |
getSubjectPropertyListener()
|
String |
getTableName()
Return the table name. |
boolean |
isEditMode()
|
void |
lookUpEntryActionPerformed(ActionEvent event)
Callback for the lookup entry action. |
void |
setCursorBusy(boolean busy)
Set the cursor to busy depending upon the given state. |
void |
setEditMode(boolean editMode)
Set the edit mode. |
void |
setShowAssociatedItems(boolean showAssociatedItems)
Set the flag which determines whether to show only associated items or show all items excluding associated items. |
void |
setSubject(IRecord subject)
Set the subject IRecord. |
void |
setToolBarVisible(boolean visible)
Set the tool bar visible. |
protected void |
showAllEntries()
Callback for the show all entries button. |
protected void |
showAllExceptAssociatedEntries(IRecord subject)
Show all items excluding those associated to subject. |
protected void |
showAssociatedEntries(IRecord subject)
Show only items associated to subject. |
void |
showAssociatedEntriesActionPerformed(ActionEvent event)
Callback for the show associated entries button. |
protected void |
showEntriesAssociatedTo(IRecord subject)
Show entries associated to the given object. |
protected void |
showSubjectOnly(IRecord subject)
Just show the subject. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final int STATUS_AREA
protected static final int COUNT_AREA
protected static final int SELECTED_COUNT_AREA
Constructor Detail |
---|
public TablePanel(Frame frame, IDatabase database, String tableName, String tableDisplayName, String linkColumnName, String searchColumnName, List columnDescriptorList)
frame
- The owning frame (can be null).database
- The database.tableName
- The name of the table represented by this
object.tableDisplayName
- The table display name.linkColumnName
- The name of the column to use to look up an
entry through a link.searchColumnName
- The name of the column to use to lookup an
entry through a search.columnDescriptorList
- List of column descriptors.Method Detail |
---|
public void addEntryActionPerformed(ActionEvent event)
public void associateEntryActionPerformed(ActionEvent event)
public void checkActions()
public void copyEntryActionPerformed(ActionEvent event)
public void deleteEntryActionPerformed(ActionEvent event)
public void disassociateEntryActionPerformed(ActionEvent event)
public PropertyChangeListener getEditModeListener()
public Object[] getSelectedValues()
public PropertyChangeListener getSubjectPropertyListener()
public String getTableName()
public boolean isEditMode()
public void lookUpEntryActionPerformed(ActionEvent event)
public void setCursorBusy(boolean busy)
public void setEditMode(boolean editMode)
public void setShowAssociatedItems(boolean showAssociatedItems)
public void setSubject(IRecord subject)
public void setToolBarVisible(boolean visible)
public void showAssociatedEntriesActionPerformed(ActionEvent event)
protected JPopupMenu createPopupMenu()
protected JToolBar createToolBar()
protected Action getAddEntryAction()
protected Action getAssociateEntryAction()
protected Action getCopyEntryAction()
protected int getDeleteConfirmation(boolean onlyOne)
protected Action getDeleteEntryAction()
protected Action getDisassociateEntryAction()
protected Action getLookUpEntryAction()
protected IRecord getSelectedItem()
protected Action getShowAssociatedEntriesAction()
protected void showAllEntries() throws SQLException
SQLException
protected void showAllExceptAssociatedEntries(IRecord subject) throws SQLException
SQLException
protected void showAssociatedEntries(IRecord subject) throws SQLException
SQLException
protected void showEntriesAssociatedTo(IRecord subject) throws SQLException
SQLException
protected void showSubjectOnly(IRecord subject)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |