|
|||||||||
| Home >> All >> com >> lutris >> dods >> [ gui overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.lutris.dods.gui
Class DataObjectApplication

java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
com.lutris.dods.gui.DataObjectApplication
- All Implemented Interfaces:
- javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, javax.swing.WindowConstants
- public final class DataObjectApplication
- extends javax.swing.JFrame
This class is the heart of the Data Object Design Studio. This frame contains all of the panels and menus that make up DODS.
- Version:
- $Revision: 1.30.2.1.4.1 $
| Nested Class Summary | |
(package private) class |
DataObjectApplication.SymAction
Class declaration |
(package private) class |
DataObjectApplication.SymItem
Class declaration |
(package private) class |
DataObjectApplication.SymWindow
Class declaration |
| Nested classes inherited from class javax.swing.JFrame |
javax.swing.JFrame.AccessibleJFrame |
| Nested classes inherited from class java.awt.Frame |
java.awt.Frame.AccessibleAWTFrame |
| Nested classes inherited from class java.awt.Window |
java.awt.Window.AccessibleAWTWindow |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Fields inherited from class javax.swing.JFrame |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| Fields inherited from class java.awt.Window |
|
| Fields inherited from class java.awt.Container |
|
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
DataObjectApplication()
This constructor initializes all of the visible parts of the Frame. |
|
| Method Summary | |
private void |
buildAll()
Launch Builder to generate and compile source code. |
void |
checkDOS()
For debugging purposes |
void |
checkForErrors()
This method checks all of the Attributes and if they have errors, then this method takes the appropriate action. |
private void |
closeFile()
This Method closes the current project but leaves the program open. |
private void |
DataObjectApplication_WindowClosing(java.awt.event.WindowEvent event)
Method declaration |
private void |
deleteAttributeMenuItem_ActionPerformed(java.awt.event.ActionEvent event)
This method deletes any selected attributes in the table. |
private void |
deleteMenuItem_ActionPerformed(java.awt.event.ActionEvent event)
This method deletes a package or DataObject. |
private void |
deleteReferringAttributes(com.lutris.dods.gui.tree.DOTreeNode deletedNode)
Search all DataObjects for Attributes that refer to this DataObject, and remove those Attributes. |
private void |
deleteReferringAttributes(com.lutris.dods.gui.tree.DOTreeNode checkNode,
com.lutris.dods.store.doa.DataObject deletedDO)
Method declaration |
void |
editAttribute(com.lutris.dods.store.doa.Attribute att)
This method takes care of the initialization of attributeEditor and shows it. |
private void |
editAttributeMenuItem_ActionPerformed(java.awt.event.ActionEvent event)
This method is called when an Attribute is to be edited. |
void |
editDataObject(com.lutris.dods.store.doa.DataObject DO)
This method takes care of the initialization of dataObjbectEditor and shows it. |
private void |
editDOMenuItem_ActionPerformed(java.awt.event.ActionEvent event)
This method is called when a Data object is to be edited. |
void |
editDOPackage(com.lutris.dods.store.doa.DOPackage DOP)
This method takes care of the initialization of packageEditor and shows it. |
private void |
editPackageMenuItem_ActionPerformed(java.awt.event.ActionEvent event)
This method is called when a Package is to be edited. |
void |
editRoot(com.lutris.dods.store.doa.DOPackage DOP)
This method allows you to change the name of the root package. |
boolean |
errorsExist()
|
private void |
exitMenuItem_ActionPerformed(java.awt.event.ActionEvent event)
Method declaration |
private void |
findErrorsMenuItem_ActionPerformed(java.awt.event.ActionEvent event)
This method finds the first attribute with an error and takes you there. |
void |
ImportObject(com.lutris.dods.store.doa.DataObject DO)
This method takes care of the initialization of tableBrowser and shows it. |
private void |
informixCheckBoxMenuItem_ItemStateChanged(java.awt.event.ItemEvent event)
called when Informix is chosen as the Database. |
private void |
insertAttributeMenuItem_ActionPerformed(java.awt.event.ActionEvent event)
This Method shows the Attribute Editor with a new Attribute which. |
private void |
insertDOMenuItem_ActionPerformed(java.awt.event.ActionEvent event)
Method declaration |
private void |
insertImportedObjectMenuItem_ActionPerformed(java.awt.event.ActionEvent event)
This method is called when a new Imported Table object is to be inserted. |
private void |
insertPackageMenuItem_ActionPerformed(java.awt.event.ActionEvent event)
This method is called when a new Package is to be inserted. |
boolean |
isSaved()
This method compares the current project to it's saved version. |
private void |
jbInit()
Setup user Interface |
static void |
main(java.lang.String[] args)
The main method creates an instance of DataObjectApplication and shows it. |
private void |
msqlCheckBoxMenuItem_ItemStateChanged(java.awt.event.ItemEvent event)
called when MSQL is chosen as the Database. |
void |
namingExceptionOccurred(com.lutris.dods.exceptions.DataObjectNameException e,
java.awt.Component par)
When a naming exception occurs, this method is called, and an appropriate warning dialog is displayed. |
private void |
newFile()
This method removes the currentproject(with an option to save) and creates a new one. |
private void |
openFile()
Method declaration |
private void |
oracleCheckBoxMenuItem_ItemStateChanged(java.awt.event.ItemEvent event)
called when Oracle is chosen as the Database. |
private void |
pmInit()
Initialize non UI elements. |
private void |
postCheckBoxMenuItem_ItemStateChanged(java.awt.event.ItemEvent event)
called when PostgresSQL is chosen as the Database. |
private void |
readStore(java.awt.Component owner)
Method declaration |
void |
refreshDODS()
This function will refresh the entire DODS application. |
private void |
refreshMenuItem_ActionPerformed(java.awt.event.ActionEvent event)
The refresh menu item is for when inexplicable painting errors occur and the user wants to repaint everything to remove them. |
private void |
saveAs()
This method opens a save File Dialog and saves the project. |
private void |
saveFile()
Method declaration |
private void |
saveTree()
Method declaration |
void |
setDataObjectInTable(com.lutris.dods.store.doa.DataObject DO)
This method changes the DataObject that has its Attributes displayed in the Table. |
private void |
setTitle()
Method declaration |
private void |
showAboutBox()
Displays a Dialog which should display the appropriate information. |
int |
showSaveOptionDialog()
This method is called when the current project is being closed. |
private boolean |
sizeHasError(com.lutris.dods.store.doa.Attribute att)
Currently always returns false, which should be changed. |
private void |
standardJDBCCheckBoxMenuItem_ItemStateChanged(java.awt.event.ItemEvent event)
called when Standard is chosen as the Database. |
private void |
sybaseCheckBoxMenuItem_ItemStateChanged(java.awt.event.ItemEvent event)
called when Sybase is chosen as the Database. |
private void |
toolbarCheckBoxMenuItem_ItemStateChanged(java.awt.event.ItemEvent event)
This method adds or removes the toolbar depending on the state. |
private void |
undoMenuItem_ActionPerformed(java.awt.event.ActionEvent event)
This reverses the most recent delete action. |
private void |
updateDatabaseMenu()
This method makes sure that the Database for this project is correct. |
void |
updateGraphicalPanel()
This method will update the graphical View when needed. |
void |
updateMenus()
This method is called frequently to update which menus are enabled and disabled. |
void |
updateTable()
this Method updates the table's comboBox Editor to include the appropriate options. |
void |
updateTree()
This method resets the tree when the set of DataObjects and packages changes, while ensuring that the open and selected nodes remain open and selected. |
| Methods inherited from class java.awt.Frame |
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
| Field Detail |
res
static java.util.ResourceBundle res
appPrimary
private static final java.lang.String appPrimary
appSecondary
private static final java.lang.String appSecondary
appVersion
private static final java.lang.String appVersion
store
private com.lutris.dods.store.Store store
attributeEditor
private com.lutris.dods.gui.editors.AttributeEditor attributeEditor
tableBrowser
private com.lutris.dods.gui.importer.TableBrowser tableBrowser
bmd
private BuildMonitorDialog bmd
targetDir
private java.io.File targetDir
dodsMenuBar
private javax.swing.JMenuBar dodsMenuBar
verticalBar
private javax.swing.JSplitPane verticalBar
horizontalBar
private javax.swing.JSplitPane horizontalBar
doTableModel
private com.lutris.dods.gui.table.DOTableModel doTableModel
doTreeModel
private com.lutris.dods.gui.tree.DOTreeModel doTreeModel
tree
private javax.swing.JTree tree
table
private javax.swing.JTable table
top
private javax.swing.JScrollPane top
graphicalPanel
private GraphicalPanel graphicalPanel
doTreeSelectionListener
private com.lutris.dods.gui.tree.DOTreeSelectionListener doTreeSelectionListener
treeRoot
private com.lutris.dods.gui.tree.DOTreeNode treeRoot
toolBar
private javax.swing.JToolBar toolBar
deletedNodeExtendedBy
private java.util.Vector deletedNodeExtendedBy
deletedNodeExtensionOf
private com.lutris.dods.store.doa.DataObject deletedNodeExtensionOf
deletedNode
private com.lutris.dods.gui.tree.DOTreeNode deletedNode
deletedNodeParent
private com.lutris.dods.gui.tree.DOTreeNode deletedNodeParent
deletedAttributes
private java.util.Vector deletedAttributes
wait
private java.awt.Cursor wait
normal
private java.awt.Cursor normal
newButton
private javax.swing.JButton newButton
openButton
private javax.swing.JButton openButton
saveButton
private javax.swing.JButton saveButton
editPackageButton
private javax.swing.JButton editPackageButton
editDataObjectButton
private javax.swing.JButton editDataObjectButton
editAttributeButton
private javax.swing.JButton editAttributeButton
insertPackageButton
private javax.swing.JButton insertPackageButton
insertImportedObjectButton
private javax.swing.JButton insertImportedObjectButton
insertDataObjectButton
private javax.swing.JButton insertDataObjectButton
insertAttributeButton
private javax.swing.JButton insertAttributeButton
buildAllButton
private javax.swing.JButton buildAllButton
findErrorsButton
private javax.swing.JButton findErrorsButton
fileMenu
private javax.swing.JMenu fileMenu
newMenuItem
private javax.swing.JMenuItem newMenuItem
openMenuItem
private javax.swing.JMenuItem openMenuItem
closeMenuItem
private javax.swing.JMenuItem closeMenuItem
saveMenuItem
private javax.swing.JMenuItem saveMenuItem
saveAsMenuItem
private javax.swing.JMenuItem saveAsMenuItem
exitMenuItem
private javax.swing.JMenuItem exitMenuItem
editMenu
private javax.swing.JMenu editMenu
undoMenuItem
private javax.swing.JMenuItem undoMenuItem
deleteMenu
private javax.swing.JMenu deleteMenu
deletePackageMenuItem
private javax.swing.JMenuItem deletePackageMenuItem
deleteDataObjectMenuItem
private javax.swing.JMenuItem deleteDataObjectMenuItem
deleteAttributeMenuItem
private javax.swing.JMenuItem deleteAttributeMenuItem
findErrorsMenuItem
private javax.swing.JMenuItem findErrorsMenuItem
editPackageMenuItem
private javax.swing.JMenuItem editPackageMenuItem
editDOMenuItem
private javax.swing.JMenuItem editDOMenuItem
editAttributeMenuItem
private javax.swing.JMenuItem editAttributeMenuItem
viewMenu
private javax.swing.JMenu viewMenu
toolbarCheckBoxMenuItem
private javax.swing.JCheckBoxMenuItem toolbarCheckBoxMenuItem
refreshMenuItem
private javax.swing.JMenuItem refreshMenuItem
insertMenu
private javax.swing.JMenu insertMenu
insertPackageMenuItem
private javax.swing.JMenuItem insertPackageMenuItem
insertDOMenuItem
private javax.swing.JMenuItem insertDOMenuItem
insertImportedObjectMenuItem
private javax.swing.JMenuItem insertImportedObjectMenuItem
insertAttributeMenuItem
private javax.swing.JMenuItem insertAttributeMenuItem
buildAllMenuItem
private javax.swing.JMenuItem buildAllMenuItem
databaseMenu
private javax.swing.JMenu databaseMenu
standardJDBCCheckBoxMenuItem
private javax.swing.JCheckBoxMenuItem standardJDBCCheckBoxMenuItem
informixCheckBoxMenuItem
private javax.swing.JCheckBoxMenuItem informixCheckBoxMenuItem
msqlCheckBoxMenuItem
private javax.swing.JCheckBoxMenuItem msqlCheckBoxMenuItem
oracleCheckBoxMenuItem
private javax.swing.JCheckBoxMenuItem oracleCheckBoxMenuItem
postCheckBoxMenuItem
private javax.swing.JCheckBoxMenuItem postCheckBoxMenuItem
sybaseCheckBoxMenuItem
private javax.swing.JCheckBoxMenuItem sybaseCheckBoxMenuItem
helpMenu
private javax.swing.JMenu helpMenu
menuGroup
private javax.swing.ButtonGroup menuGroup
aboutMenuItem
private javax.swing.JMenuItem aboutMenuItem
| Constructor Detail |
DataObjectApplication
public DataObjectApplication()
- This constructor initializes all of the visible parts of the Frame.
| Method Detail |
pmInit
private void pmInit()
- Initialize non UI elements.
jbInit
private void jbInit()
- Setup user Interface
main
public static void main(java.lang.String[] args)
- The main method creates an instance of DataObjectApplication and shows it.
setDataObjectInTable
public void setDataObjectInTable(com.lutris.dods.store.doa.DataObject DO)
- This method changes the DataObject that has its Attributes displayed in the Table.
DataObjectApplication_WindowClosing
private void DataObjectApplication_WindowClosing(java.awt.event.WindowEvent event)
- Method declaration
exitMenuItem_ActionPerformed
private void exitMenuItem_ActionPerformed(java.awt.event.ActionEvent event)
- Method declaration
saveTree
private void saveTree()
throws java.lang.Exception
- Method declaration
saveFile
private void saveFile()
- Method declaration
openFile
private void openFile()
- Method declaration
updateTable
public void updateTable()
- this Method updates the table's comboBox Editor to include the appropriate options.
updateTree
public void updateTree()
- This method resets the tree when the set of DataObjects and packages changes,
while ensuring that the open and selected nodes remain open and selected.
updateGraphicalPanel
public void updateGraphicalPanel()
- This method will update the graphical View when needed.
insertDOMenuItem_ActionPerformed
private void insertDOMenuItem_ActionPerformed(java.awt.event.ActionEvent event)
- Method declaration
insertImportedObjectMenuItem_ActionPerformed
private void insertImportedObjectMenuItem_ActionPerformed(java.awt.event.ActionEvent event)
- This method is called when a new Imported Table object is to be inserted.
insertPackageMenuItem_ActionPerformed
private void insertPackageMenuItem_ActionPerformed(java.awt.event.ActionEvent event)
- This method is called when a new Package is to be inserted.
insertAttributeMenuItem_ActionPerformed
private void insertAttributeMenuItem_ActionPerformed(java.awt.event.ActionEvent event)
- This Method shows the Attribute Editor with a new Attribute which.
is then created.
editDOMenuItem_ActionPerformed
private void editDOMenuItem_ActionPerformed(java.awt.event.ActionEvent event)
- This method is called when a Data object is to be edited.
editPackageMenuItem_ActionPerformed
private void editPackageMenuItem_ActionPerformed(java.awt.event.ActionEvent event)
- This method is called when a Package is to be edited.
editAttributeMenuItem_ActionPerformed
private void editAttributeMenuItem_ActionPerformed(java.awt.event.ActionEvent event)
- This method is called when an Attribute is to be edited.
editDataObject
public void editDataObject(com.lutris.dods.store.doa.DataObject DO)
- This method takes care of the initialization of dataObjbectEditor and shows it.
ImportObject
public void ImportObject(com.lutris.dods.store.doa.DataObject DO)
- This method takes care of the initialization of tableBrowser and shows it.
editDOPackage
public void editDOPackage(com.lutris.dods.store.doa.DOPackage DOP)
- This method takes care of the initialization of packageEditor and shows it.
editAttribute
public void editAttribute(com.lutris.dods.store.doa.Attribute att)
- This method takes care of the initialization of attributeEditor and shows it.
editRoot
public void editRoot(com.lutris.dods.store.doa.DOPackage DOP)
- This method allows you to change the name of the root package.
saveAs
private void saveAs()
- This method opens a save File Dialog and saves the project.
newFile
private void newFile()
- This method removes the currentproject(with an option to save) and
creates a new one.
closeFile
private void closeFile()
- This Method closes the current project but leaves the program open.
updateMenus
public void updateMenus()
- This method is called frequently to update which menus are enabled and disabled.
A menuItem will be disabled if It cannot currently be activated.
isSaved
public boolean isSaved()
- This method compares the current project to it's saved version.
JAVADOC