EVEDemo.ISChangeApplet
Class ISMaster

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Frame
                          |
                          +--com.sun.java.swing.JFrame
                                |
                                +--EVEDemo.ISChangeApplet.ISMaster

public class ISMaster
extends com.sun.java.swing.JFrame

This applet sets up a user's ability to simulate capability changes on the information sources.
The first thing that occurs when creating an instance of this class is that it attempts to connect to the server "mwMainServer"
An instance of each needed frame is created here, and all mouse click event handling is done here, as well. Each of these frames is hid and shown from here also.

comment koeller 030799. RMI is not used anymore, so we will slowly remove RMI support. I started with commenting out some of the exceptions

See Also:
Serialized Form

Inner Class Summary
(package private)  class ISMaster.SymMouse
          (mostly generated by Visual Cafe)
listener for mouse clicks
 
Inner classes inherited from class com.sun.java.swing.JFrame
com.sun.java.swing.JFrame.AccessibleJFrame
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AWTTreeLock
 
Field Summary
(package private)  Alive a
           
(package private)  addAttFrame aaFrame
          Intance of addAttFrame for adding an attribute
(package private)  com.sun.java.swing.tree.TreePath aaTreePath
          the selected path when aaFrame was shown
private  java.util.Vector allViews
          Vector of all Views.
(package private)  addRelFrame arFrame
          Instance of addRelFrame for adding a relation
(package private)  com.sun.java.swing.tree.TreePath arTreePath
          the selected path when arFrame was shown
(package private)  java.lang.String attName
          Used in calling delete, change name, and add methods in simulating changes
(package private)  IS currIS
          Used in calling delete, change name, and add methods in simulating changes
static boolean DEBUG
          Debug flag
(package private)  com.sun.java.swing.tree.TreePath delTreePath
          the selected path when dFrame was shown
(package private)  delFrame dFrame
          Instance of delFrame for deleting attributes and relations
(package private)  evolveFrame eFrame
          Instance of evolveFrame for showing evolution of view definitions
(package private)  com.sun.java.swing.JButton ISchangeButton
          Button on applet
(package private)  ISChange isFrame
          Instance of ISChange for choosing which changes to make
(package private)  java.lang.String ISName
          Used in calling delete, change name, and add methods in simulating changes
(package private)  com.sun.java.swing.JLabel lblWelcome
          Label on applet
(package private)  myMessageBox messageTime
          Instance of myMessageBox for displaying messages to the user
private  Main mwMain
          The handle to the server
(package private)  java.lang.String relName
          Used in calling delete, change name, and add methods in simulating changes
(package private)  com.sun.java.swing.tree.TreePath renTreePath
          the selected path when rFrame was shown
(package private)  renFrame rFrame
          Instance of renFrame for renaming attributes and relations
private  MKB theMKB
          a reference to the MKB, replaces the InformationSource Vector
 
Fields inherited from class com.sun.java.swing.JFrame
accessibleContext, defaultCloseOperation, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
base, CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, frameSerializedDataVersion, HAND_CURSOR, icon, ICONIFIED, mbManagement, menuBar, MOVE_CURSOR, N_RESIZE_CURSOR, nameCounter, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, ownedWindows, resizable, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, serialVersionUID, state, SW_RESIZE_CURSOR, TEXT_CURSOR, title, W_RESIZE_CURSOR, WAIT_CURSOR, weakThis
 
Fields inherited from class java.awt.Window
active, base, focusMgr, inputContext, nameCounter, OPENED, ownedWindowList, serialVersionUID, state, warningString, weakThis, windowListener, windowSerializedDataVersion
 
Fields inherited from class java.awt.Container
component, containerListener, containerSerializedDataVersion, dispatcher, layoutMgr, maxSize, ncomponents, serialVersionUID
 
Fields inherited from class java.awt.Component
actionListenerK, adjustmentListenerK, appContext, assert, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, hasFocus, height, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, RIGHT_ALIGNMENT, serialVersionUID, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowListenerK, x, y
 
Constructor Summary
ISMaster(Main mn)
           
 
Method Summary
 void aaFrame_cancel_MouseClicked()
          Hides aaFrame
 void aaFrame_ok_MouseClicked()
          Adds attribute unless error is encountered Hides aaFrame
 void arFrame_cancel_MouseClicked()
          Hides arFrame
 void arFrame_ok_MouseClicked()
          Renames relation unless error is encountered Hides arFrame
 boolean attSelected(com.sun.java.swing.tree.TreePath path)
          Return if an attribute has been selected
 int componentCount(com.sun.java.swing.tree.TreePath path)
          Returns the number of components in the representated in the path Since each component is separated by a comma, it just counts the commas in the string representation of the path
 void destroy()
           
 void dFrame_no_MouseClicked()
          Hides dFrame
 void dFrame_yes_MouseClicked()
          Deletes selected attribute or relation assuming no error in RMI connection is encountered.
 void eFrame_disExtDif_MouseClicked()
          Prompts eFrame to display the extent differences frame
 void eFrame_ok_MouseClicked()
          Hides eFrame
 java.lang.String getAttNameFromPath(com.sun.java.swing.tree.TreePath path)
          Takes path and returns name of attribute if the path contains an attribute
 IS getISfromName(java.lang.String theIS)
          Return the InformationSource that belongs to the selected name
 java.lang.String getISNameFromPath(com.sun.java.swing.tree.TreePath path)
          Takes path and returns the name of the InformationSource if the path contains an Information Source
 java.lang.String getRelNameFromPath(com.sun.java.swing.tree.TreePath path)
          Takes path and returns name of relation if the path contains a relation
 void init()
          Connects to RMI server called mwMainServer.
 void ISchangeButton_MouseClicked()
          Shows isFrame
 void isFrame_addAtt_MouseClicked()
          Shows aaFrame if a relation is selected, else shows error message
 void isFrame_addRel_MouseClicked()
          Shows arFrame if an IS is selected, else shows error message
 void isFrame_dataUpd_MouseClicked()
          Sends a data update to database and SWEEP-module.
 void isFrame_delAtt_MouseClicked()
          Shows dFrame if an attribute is selected, else shows error message
 void isFrame_delRel_MouseClicked()
          Shows dFrame if a relation is selected, else shows error message
 void isFrame_ok_MouseClicked()
          Hides isFrame
 void isFrame_renAtt_MouseClicked()
          Shows rFrame if an attribute is selected, else shows error message
 void isFrame_renRel_MouseClicked()
          Shows rFrame if a relation is selected, else shows error message
 boolean ISSelected(com.sun.java.swing.tree.TreePath path)
          Returns if an IS has been selected
 boolean relSelected(com.sun.java.swing.tree.TreePath path)
          Return if a relation has been selected
 void rFrame_cancel_MouseClicked()
          Hides rFrame
 void rFrame_ok_MouseClicked()
          Renames item unless error is encountered Hides rFrame
 void setPickedVersions(int[] myChoices)
           
 void start()
           
 void stop()
           
 
Methods inherited from class com.sun.java.swing.JFrame
addImpl, createRootPane, createRootPaneException, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, processKeyEvent, processWindowEvent, setContentPane, setDefaultCloseOperation, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
, addNotify, addToFrameList, constructComponentName, finalize, getCursorType, getFrames, getIconImage, getMenuBar, getState, getTitle, initIDs, isResizable, paramString, postProcessKeyEvent, readObject, remove, removeFromFrameList, removeNotify, setCursor, setIconImage, setMenuBar, setResizable, setState, setTitle, writeObject
 
Methods inherited from class java.awt.Window
addOwnedWindow, addWindowListener, applyResourceBundle, applyResourceBundle, connectOwnedWindow, dispatchEventImpl, dispose, eventEnabled, getFocusOwner, getInputContext, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, isActive, isShowing, nextFocus, ownedInit, pack, postEvent, postWindowEvent, preProcessKeyEvent, processEvent, removeOwnedWindow, removeWindowListener, setFocusOwner, setWarningString, show, toBack, toFront, transferFocus
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyOrientation, countComponents, deliverEvent, dispatchEventToSelf, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getMouseEventTarget, getPreferredSize, getWindow, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPrint, list, list, locate, minimumSize, paint, paintComponents, postsOldMouseEvents, preferredSize, print, printComponents, printOneComponent, processContainerEvent, proxyEnableEvents, proxyRequestFocus, remove, remove, removeAll, removeContainerListener, setFont, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkitImpl, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, 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, processInputMethodEvent, processMouseEvent, processMouseMotionEvent, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

DEBUG

public static final boolean DEBUG
Debug flag

mwMain

private Main mwMain
The handle to the server

theMKB

private MKB theMKB
a reference to the MKB, replaces the InformationSource Vector

allViews

private java.util.Vector allViews
Vector of all Views. MAYA: Now including a vector of "version" objects

lblWelcome

com.sun.java.swing.JLabel lblWelcome
Label on applet

ISchangeButton

com.sun.java.swing.JButton ISchangeButton
Button on applet

isFrame

ISChange isFrame
Instance of ISChange for choosing which changes to make

dFrame

delFrame dFrame
Instance of delFrame for deleting attributes and relations

rFrame

renFrame rFrame
Instance of renFrame for renaming attributes and relations

aaFrame

addAttFrame aaFrame
Intance of addAttFrame for adding an attribute

arFrame

addRelFrame arFrame
Instance of addRelFrame for adding a relation

eFrame

evolveFrame eFrame
Instance of evolveFrame for showing evolution of view definitions

messageTime

myMessageBox messageTime
Instance of myMessageBox for displaying messages to the user

delTreePath

com.sun.java.swing.tree.TreePath delTreePath
the selected path when dFrame was shown

renTreePath

com.sun.java.swing.tree.TreePath renTreePath
the selected path when rFrame was shown

aaTreePath

com.sun.java.swing.tree.TreePath aaTreePath
the selected path when aaFrame was shown

arTreePath

com.sun.java.swing.tree.TreePath arTreePath
the selected path when arFrame was shown

attName

java.lang.String attName
Used in calling delete, change name, and add methods in simulating changes

relName

java.lang.String relName
Used in calling delete, change name, and add methods in simulating changes

ISName

java.lang.String ISName
Used in calling delete, change name, and add methods in simulating changes

currIS

IS currIS
Used in calling delete, change name, and add methods in simulating changes

a

Alive a
Constructor Detail

ISMaster

public ISMaster(Main mn)
Method Detail

init

public void init()
Connects to RMI server called mwMainServer.
Intializes all objects on the applet. Creates instances of each frame

start

public void start()

stop

public void stop()

destroy

public void destroy()

ISchangeButton_MouseClicked

public void ISchangeButton_MouseClicked()
Shows isFrame

isFrame_ok_MouseClicked

public void isFrame_ok_MouseClicked()
Hides isFrame

isFrame_addAtt_MouseClicked

public void isFrame_addAtt_MouseClicked()
Shows aaFrame if a relation is selected, else shows error message

isFrame_addRel_MouseClicked

public void isFrame_addRel_MouseClicked()
Shows arFrame if an IS is selected, else shows error message

isFrame_renAtt_MouseClicked

public void isFrame_renAtt_MouseClicked()
Shows rFrame if an attribute is selected, else shows error message

isFrame_renRel_MouseClicked

public void isFrame_renRel_MouseClicked()
Shows rFrame if a relation is selected, else shows error message

isFrame_delAtt_MouseClicked

public void isFrame_delAtt_MouseClicked()
Shows dFrame if an attribute is selected, else shows error message

isFrame_delRel_MouseClicked

public void isFrame_delRel_MouseClicked()
Shows dFrame if a relation is selected, else shows error message

isFrame_dataUpd_MouseClicked

public void isFrame_dataUpd_MouseClicked()
Sends a data update to database and SWEEP-module.

dFrame_yes_MouseClicked

public void dFrame_yes_MouseClicked()
Deletes selected attribute or relation assuming no error in RMI connection is encountered. If an error is encountered display an error message.
Hides dFrame.

setPickedVersions

public void setPickedVersions(int[] myChoices)

dFrame_no_MouseClicked

public void dFrame_no_MouseClicked()
Hides dFrame

rFrame_ok_MouseClicked

public void rFrame_ok_MouseClicked()
Renames item unless error is encountered Hides rFrame

rFrame_cancel_MouseClicked

public void rFrame_cancel_MouseClicked()
Hides rFrame

aaFrame_ok_MouseClicked

public void aaFrame_ok_MouseClicked()
Adds attribute unless error is encountered Hides aaFrame

aaFrame_cancel_MouseClicked

public void aaFrame_cancel_MouseClicked()
Hides aaFrame

arFrame_ok_MouseClicked

public void arFrame_ok_MouseClicked()
Renames relation unless error is encountered Hides arFrame

arFrame_cancel_MouseClicked

public void arFrame_cancel_MouseClicked()
Hides arFrame

eFrame_ok_MouseClicked

public void eFrame_ok_MouseClicked()
Hides eFrame

eFrame_disExtDif_MouseClicked

public void eFrame_disExtDif_MouseClicked()
Prompts eFrame to display the extent differences frame

getISfromName

public IS getISfromName(java.lang.String theIS)
Return the InformationSource that belongs to the selected name

ISSelected

public boolean ISSelected(com.sun.java.swing.tree.TreePath path)
Returns if an IS has been selected

relSelected

public boolean relSelected(com.sun.java.swing.tree.TreePath path)
Return if a relation has been selected

attSelected

public boolean attSelected(com.sun.java.swing.tree.TreePath path)
Return if an attribute has been selected

componentCount

public int componentCount(com.sun.java.swing.tree.TreePath path)
Returns the number of components in the representated in the path Since each component is separated by a comma, it just counts the commas in the string representation of the path

getAttNameFromPath

public java.lang.String getAttNameFromPath(com.sun.java.swing.tree.TreePath path)
Takes path and returns name of attribute if the path contains an attribute

getRelNameFromPath

public java.lang.String getRelNameFromPath(com.sun.java.swing.tree.TreePath path)
Takes path and returns name of relation if the path contains a relation

getISNameFromPath

public java.lang.String getISNameFromPath(com.sun.java.swing.tree.TreePath path)
Takes path and returns the name of the InformationSource if the path contains an Information Source