Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.lutris.dods.gui
Class DataObjectApplication  view DataObjectApplication download DataObjectApplication.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Frame
                  extended byjavax.swing.JFrame
                      extended bycom.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
 
Field Summary
private  javax.swing.JMenuItem aboutMenuItem
           
private static java.lang.String appPrimary
           
private static java.lang.String appSecondary
           
private static java.lang.String appVersion
           
private  com.lutris.dods.gui.editors.AttributeEditor attributeEditor
           
private  BuildMonitorDialog bmd
           
private  javax.swing.JButton buildAllButton
           
private  javax.swing.JMenuItem buildAllMenuItem
           
private  javax.swing.JMenuItem closeMenuItem
           
private  javax.swing.JMenu databaseMenu
           
private  javax.swing.JMenuItem deleteAttributeMenuItem
           
private  javax.swing.JMenuItem deleteDataObjectMenuItem
           
private  java.util.Vector deletedAttributes
           
private  com.lutris.dods.gui.tree.DOTreeNode deletedNode
           
private  java.util.Vector deletedNodeExtendedBy
           
private  com.lutris.dods.store.doa.DataObject deletedNodeExtensionOf
           
private  com.lutris.dods.gui.tree.DOTreeNode deletedNodeParent
           
private  javax.swing.JMenu deleteMenu
           
private  javax.swing.JMenuItem deletePackageMenuItem
           
private  javax.swing.JMenuBar dodsMenuBar
           
private  com.lutris.dods.gui.table.DOTableModel doTableModel
           
private  com.lutris.dods.gui.tree.DOTreeModel doTreeModel
           
private  com.lutris.dods.gui.tree.DOTreeSelectionListener doTreeSelectionListener
           
private  javax.swing.JButton editAttributeButton
           
private  javax.swing.JMenuItem editAttributeMenuItem
           
private  javax.swing.JButton editDataObjectButton
           
private  javax.swing.JMenuItem editDOMenuItem
           
private  javax.swing.JMenu editMenu
           
private  javax.swing.JButton editPackageButton
           
private  javax.swing.JMenuItem editPackageMenuItem
           
private  javax.swing.JMenuItem exitMenuItem
           
private  javax.swing.JMenu fileMenu
           
private  javax.swing.JButton findErrorsButton
           
private  javax.swing.JMenuItem findErrorsMenuItem
           
private  GraphicalPanel graphicalPanel
           
private  javax.swing.JMenu helpMenu
           
private  javax.swing.JSplitPane horizontalBar
           
private  javax.swing.JCheckBoxMenuItem informixCheckBoxMenuItem
           
private  javax.swing.JButton insertAttributeButton
           
private  javax.swing.JMenuItem insertAttributeMenuItem
           
private  javax.swing.JButton insertDataObjectButton
           
private  javax.swing.JMenuItem insertDOMenuItem
           
private  javax.swing.JButton insertImportedObjectButton
           
private  javax.swing.JMenuItem insertImportedObjectMenuItem
           
private  javax.swing.JMenu insertMenu
           
private  javax.swing.JButton insertPackageButton
           
private  javax.swing.JMenuItem insertPackageMenuItem
           
private  javax.swing.ButtonGroup menuGroup
           
private  javax.swing.JCheckBoxMenuItem msqlCheckBoxMenuItem
           
private  javax.swing.JButton newButton
           
private  javax.swing.JMenuItem newMenuItem
           
private  java.awt.Cursor normal
           
private  javax.swing.JButton openButton
           
private  javax.swing.JMenuItem openMenuItem
           
private  javax.swing.JCheckBoxMenuItem oracleCheckBoxMenuItem
           
private  javax.swing.JCheckBoxMenuItem postCheckBoxMenuItem
           
private  javax.swing.JMenuItem refreshMenuItem
           
(package private) static java.util.ResourceBundle res
           
private  javax.swing.JMenuItem saveAsMenuItem
           
private  javax.swing.JButton saveButton
           
private  javax.swing.JMenuItem saveMenuItem
           
private  javax.swing.JCheckBoxMenuItem standardJDBCCheckBoxMenuItem
           
private  com.lutris.dods.store.Store store
           
private  javax.swing.JCheckBoxMenuItem sybaseCheckBoxMenuItem
           
private  javax.swing.JTable table
           
private  com.lutris.dods.gui.importer.TableBrowser tableBrowser
           
private  java.io.File targetDir
           
private  javax.swing.JToolBar toolBar
           
private  javax.swing.JCheckBoxMenuItem toolbarCheckBoxMenuItem
           
private  javax.swing.JScrollPane top
           
private  javax.swing.JTree tree
           
private  com.lutris.dods.gui.tree.DOTreeNode treeRoot
           
private  javax.swing.JMenuItem undoMenuItem
           
private  javax.swing.JSplitPane verticalBar
           
private  javax.swing.JMenu viewMenu
           
private  java.awt.Cursor wait
           
 
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 javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getPreferredSize, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processKeyEvent, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
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.awt.Window
addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getGraphicsConfiguration, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
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.