|
||||||||||
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.DatabaseTablesBean
public class DatabaseTablesBean
Provides a bean with table panels for a simple database.
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 Map |
_tablePanels
Map of table name to table panel instance. |
static String |
EDIT_MODE_PROPERTY
Edit mode property name. |
static String |
SUBJECT_PROPERTY
Subject record property name. |
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 | |
---|---|
DatabaseTablesBean()
|
Method Summary | |
---|---|
void |
adjustSplitPanes()
Set the divider locations of the split panes evenly. |
void |
checkActions()
Check the enable state of the actions. |
protected boolean |
checkForFileOverwrite(File file)
Return true if it's OK to overwrite the given file. |
List |
createColumnDescriptorList(ITableData tableData)
Create a list of ColumnDescriptor objects from this item's
information. |
protected TablePanel |
createTablePanel(IDatabase database,
ITableData tableData)
Create a table panel. |
void |
editModeActionPerformed(ActionEvent event)
Callback for the edit mode button. |
void |
exportXmlActionPerformed(ActionEvent event)
Callback for the export XML button. |
Action |
getEditModeAction()
Return the edit mode action. |
JMenuItem |
getEditModeMenuItem()
Return the edit mode menu item. |
Action |
getExportHtmlAction()
Return the export HTML action. |
Action |
getExportXmlAction()
Return the export XML action. |
List |
getSelectedValues()
Return the selected values in the table. |
Action |
getViewModeAction()
Return the view mode action. |
JMenuItem |
getViewModeMenuItem()
Return the view mode menu item. |
void |
init()
Initialize this object. |
void |
setCursorBusy(boolean busy)
Set the cursor to busy depending upon the given state. |
void |
setDatabase(IDatabase database)
Set the database. |
void |
setEditMode(boolean isEditMode)
Set the edit mode flag. |
void |
setFrame(Frame frame)
Set the parent frame. |
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. |
void |
viewModeActionPerformed(ActionEvent event)
Callback for the view mode button. |
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 |
---|
public static final String EDIT_MODE_PROPERTY
public static final String SUBJECT_PROPERTY
protected Map _tablePanels
Constructor Detail |
---|
public DatabaseTablesBean()
Method Detail |
---|
public void adjustSplitPanes()
public void checkActions()
public List createColumnDescriptorList(ITableData tableData)
ColumnDescriptor
objects from this item's
information.
public void editModeActionPerformed(ActionEvent event)
public void exportXmlActionPerformed(ActionEvent event)
public Action getEditModeAction()
public JMenuItem getEditModeMenuItem()
public Action getExportHtmlAction()
public Action getExportXmlAction()
public List getSelectedValues()
public Action getViewModeAction()
public JMenuItem getViewModeMenuItem()
public void init()
public void setCursorBusy(boolean busy)
public void setDatabase(IDatabase database)
public void setEditMode(boolean isEditMode)
public void setFrame(Frame frame)
public void setShowAssociatedItems(boolean showAssociatedItems)
public void setSubject(IRecord subject)
public void setToolBarVisible(boolean visible)
public void viewModeActionPerformed(ActionEvent event)
protected boolean checkForFileOverwrite(File file)
protected TablePanel createTablePanel(IDatabase database, ITableData tableData)
|
||||||||||
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 |