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

Quick Search    Search Deep

com.lutris.dods.gui.editors
Class DataObjectEditor  view DataObjectEditor download DataObjectEditor.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Dialog
                  extended byjavax.swing.JDialog
                      extended bycom.lutris.dods.gui.editors.DataObjectEditor
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 DataObjectEditor
extends javax.swing.JDialog

This class is a pop-up window which lets you edit all of a DataObject's attributes (not Attributes) in a convenient window.

Version:
$Revision: 1.12.14.1 $

Nested Class Summary
(package private)  class DataObjectEditor.SymAction
          The inner classes are just listeners for events.
(package private)  class DataObjectEditor.SymChange
          Class declaration
 
Nested classes inherited from class javax.swing.JDialog
javax.swing.JDialog.AccessibleJDialog
 
Nested classes inherited from class java.awt.Dialog
java.awt.Dialog.AccessibleAWTDialog
 
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.JPanel buttonPanel
           
private  javax.swing.JButton cancelButton
           
private  javax.swing.JPanel classPanel
           
private  javax.swing.JPanel dbPanel
           
private  javax.swing.JPanel dbTypePanel
           
private  com.lutris.dods.gui.DataObjectApplication doa
           
private  com.lutris.dods.store.doa.DataObject editObject
           
private  javax.swing.JLabel extendsLabel
           
private  javax.swing.JComboBox extensionOf
           
private  javax.swing.JButton helpButton
           
private  javax.swing.JCheckBox isAbstract
           
private  javax.swing.JRadioButton isCaching
           
private  javax.swing.JRadioButton isConcreteClass
           
private  javax.swing.JRadioButton isEveryClass
           
private  javax.swing.JCheckBox isFinal
           
private  javax.swing.JRadioButton isFullCaching
           
private  javax.swing.JRadioButton isHierarchy
           
private  javax.swing.JRadioButton isLazyLoading
           
private  javax.swing.JTabbedPane jtp
           
private  com.lutris.dods.gui.tree.PackageTreeSelectionListener listener
           
private  javax.swing.JLabel nameLabel
           
private  javax.swing.JButton okButton
           
private  javax.swing.JLabel packageLabel
           
private  javax.swing.JTextField packageName
           
(package private) static java.util.ResourceBundle res
           
private  javax.swing.JPanel scrollPanePanel
           
private  javax.swing.JTree structTree
           
private  javax.swing.JTextField tableName
           
private  javax.swing.JLabel tableNameLabel
           
private  javax.swing.JTextField textName
           
private  com.lutris.dods.gui.tree.PackageTree tree
           
private  javax.swing.JScrollPane treeView
           
private  javax.swing.JPanel typePanel
           
 
Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Dialog
 
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, EXIT_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
DataObjectEditor(javax.swing.JTree tre, com.lutris.dods.gui.DataObjectApplication da)
          This Constructor lays out all of the input devices.
 
Method Summary
private  void cancelButton_actionPerformed(java.awt.event.ActionEvent event)
          This method hides the Dialog when cancel is pressed.
private  void checkEnabledMapping()
          This Method checks the mapping type, and depending on what type of mapping is chosen, will enable or disable the option to set the table name.
private  void extensionOf_actionPerformed(java.awt.event.ActionEvent event)
          Method declaration
private  void isAbstract_stateChanged(javax.swing.event.ChangeEvent event)
          Method declaration
private  void isCaching_stateChanged(javax.swing.event.ChangeEvent event)
          Method declaration
private  void isConcreteClass_stateChanged(javax.swing.event.ChangeEvent event)
          Method declaration
private  void isEveryClass_stateChanged(javax.swing.event.ChangeEvent event)
          Method declaration
private  void isFullCaching_stateChanged(javax.swing.event.ChangeEvent event)
          Method declaration
private  void isHierarchy_stateChanged(javax.swing.event.ChangeEvent event)
          Method declaration
private  void isLazyLoading_stateChanged(javax.swing.event.ChangeEvent event)
          Method declaration
private  boolean isTableUnique()
          Method declaration
private  boolean isUpdateValid()
          Method declaration
private  void name_actionPerformed(java.awt.event.ActionEvent event)
          When you hit enter in the name Field, it's as if the okButton was pressed.
private  void okButton_actionPerformed(java.awt.event.ActionEvent event)
          This method changes all of the DataObject's attributes and hides the dialog.
 void setDataObject(com.lutris.dods.store.doa.DataObject dataObject)
          This method sets up the DataObject which will be edited by the DOE.
private  void tableName_actionPerformed(java.awt.event.ActionEvent event)
          When you hit enter in the table name Field, it's as if the okButton was pressed.
private  void updateDataObject()
          Method declaration
 
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getPreferredSize, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Dialog
addNotify, dispose, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show
 
Methods inherited from class java.awt.Window
addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getGraphicsConfiguration, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, 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, removeNotify, 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, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, 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
 

Field Detail

res

static java.util.ResourceBundle res

editObject

private com.lutris.dods.store.doa.DataObject editObject

tree

private com.lutris.dods.gui.tree.PackageTree tree

structTree

private javax.swing.JTree structTree

doa

private com.lutris.dods.gui.DataObjectApplication doa

jtp

private javax.swing.JTabbedPane jtp

listener

private com.lutris.dods.gui.tree.PackageTreeSelectionListener listener

scrollPanePanel

private javax.swing.JPanel scrollPanePanel

treeView

private javax.swing.JScrollPane treeView

packageName

private javax.swing.JTextField packageName

packageLabel

private javax.swing.JLabel packageLabel

dbPanel

private javax.swing.JPanel dbPanel

tableNameLabel

private javax.swing.JLabel tableNameLabel

tableName

private javax.swing.JTextField tableName

dbTypePanel

private javax.swing.JPanel dbTypePanel

isEveryClass

private javax.swing.JRadioButton isEveryClass

isConcreteClass

private javax.swing.JRadioButton isConcreteClass

isHierarchy

private javax.swing.JRadioButton isHierarchy

isLazyLoading

private javax.swing.JRadioButton isLazyLoading

isCaching

private javax.swing.JRadioButton isCaching

isFullCaching

private javax.swing.JRadioButton isFullCaching

buttonPanel

private javax.swing.JPanel buttonPanel

okButton

private javax.swing.JButton okButton

cancelButton

private javax.swing.JButton cancelButton

helpButton

private javax.swing.JButton helpButton

classPanel

private javax.swing.JPanel classPanel

nameLabel

private javax.swing.JLabel nameLabel

extendsLabel

private javax.swing.JLabel extendsLabel

textName

private javax.swing.JTextField textName

extensionOf

private javax.swing.JComboBox extensionOf

typePanel

private javax.swing.JPanel typePanel

isAbstract

private javax.swing.JCheckBox isAbstract

isFinal

private javax.swing.JCheckBox isFinal
Constructor Detail

DataObjectEditor

public DataObjectEditor(javax.swing.JTree tre,
                        com.lutris.dods.gui.DataObjectApplication da)
This Constructor lays out all of the input devices.

Method Detail

cancelButton_actionPerformed

private void cancelButton_actionPerformed(java.awt.event.ActionEvent event)
This method hides the Dialog when cancel is pressed.


okButton_actionPerformed

private void okButton_actionPerformed(java.awt.event.ActionEvent event)
This method changes all of the DataObject's attributes and hides the dialog.


isUpdateValid

private boolean isUpdateValid()
Method declaration


isTableUnique

private boolean isTableUnique()
Method declaration


updateDataObject

private void updateDataObject()
                       throws com.lutris.dods.exceptions.DataObjectNameException,
                              com.lutris.dods.exceptions.DataObjectTypeException
Method declaration


name_actionPerformed

private void name_actionPerformed(java.awt.event.ActionEvent event)
When you hit enter in the name Field, it's as if the okButton was pressed.


tableName_actionPerformed

private void tableName_actionPerformed(java.awt.event.ActionEvent event)
When you hit enter in the table name Field, it's as if the okButton was pressed.


checkEnabledMapping

private void checkEnabledMapping()
This Method checks the mapping type, and depending on what type of mapping is chosen, will enable or disable the option to set the table name.


setDataObject

public void setDataObject(com.lutris.dods.store.doa.DataObject dataObject)
This method sets up the DataObject which will be edited by the DOE. It also initializes all of the fields to what the value is in the editObject.


isEveryClass_stateChanged

private void isEveryClass_stateChanged(javax.swing.event.ChangeEvent event)
Method declaration


isConcreteClass_stateChanged

private void isConcreteClass_stateChanged(javax.swing.event.ChangeEvent event)
Method declaration


isHierarchy_stateChanged

private void isHierarchy_stateChanged(javax.swing.event.ChangeEvent event)
Method declaration


isLazyLoading_stateChanged

private void isLazyLoading_stateChanged(javax.swing.event.ChangeEvent event)
Method declaration


isCaching_stateChanged

private void isCaching_stateChanged(javax.swing.event.ChangeEvent event)
Method declaration


isFullCaching_stateChanged

private void isFullCaching_stateChanged(javax.swing.event.ChangeEvent event)
Method declaration


isAbstract_stateChanged

private void isAbstract_stateChanged(javax.swing.event.ChangeEvent event)
Method declaration


extensionOf_actionPerformed

private void extensionOf_actionPerformed(java.awt.event.ActionEvent event)
Method declaration