EVEDemo.MKBVKBApplet
Class mkbFrame

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

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

This class creates a frame which displays the mkb hierarchy and constrainsts
The hierachy is a directory style tree and the constraints are displayed in tables When a relation is selected, the tables are updated. Currently, if an IS is selected, the information for the most recently selected table remains. However, this will hopefully be changing soon.

See Also:
Serialized Form

Inner Class Summary
(package private)  class mkbFrame.SymMouse
          (generated by Visual Cafe)
Sets up a mouse click listener
(package private)  class mkbFrame.SymWindow
          (generated by Visual Cafe)
 
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)  java.util.Vector condVec
           
private static boolean DEBUG
           
(package private)  boolean fComponentsAdjusted
          (generated by Visual Cafe)
Used for addNotify check.
(package private)  com.sun.java.swing.JScrollPane jspJ
           
(package private)  com.sun.java.swing.JScrollPane jspP
           
(package private)  com.sun.java.swing.JScrollPane jspT
           
(package private)  java.awt.Label lblJoin
           
(package private)  java.awt.Label lblPC
           
(package private)  java.awt.Label lblSelectedNode
           
(package private)  java.awt.Label lblType
           
(package private)  com.sun.java.swing.JButton mkbOK
           
(package private)  com.sun.java.swing.JButton mkbShowExtent
           
(package private)  com.sun.java.swing.JTree mkbTree
           
private  Main mwMain
          Added by Andreas Koeller.
(package private)  java.awt.Panel panJoin
           
(package private)  java.awt.Panel panLeft
           
(package private)  java.awt.Panel panPC
           
(package private)  java.awt.Panel panRight
           
(package private)  java.awt.Panel panType
           
(package private)  java.util.Vector pcpairVec
           
(package private)  com.sun.java.swing.JScrollPane scrollPaneTree
           
(package private)  java.lang.String selectedRelation
           
(package private)  com.sun.java.swing.JTable tableJ
           
(package private)  com.sun.java.swing.JTable tableP
           
(package private)  com.sun.java.swing.JTable tableT
           
(package private)  IS tempIS
           
(package private)  View tempView
           
(package private)  Condition thisCond
           
(package private)  JoinConstraint thisJC
           
(package private)  PCConstraint thisPC
           
(package private)  PCPair thisPCPair
           
 
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
mkbFrame(Main m)
          Class Constructor, receives all ISObjects from the applet
 
Method Summary
 void addNotify()
          (generated by Visual Cafe)
 void buildMkbTree(java.util.Vector ISObjects)
          Builds the tree by adding all of the leaf nodes to a root node
(package private)  void Frame1_WindowClosing(java.awt.event.WindowEvent event)
          (generated by Visual Cafe)
private  boolean ISSelected(java.lang.String nodePath)
          Returns if a relation has been selected by examing the nodePath
private  int JCRowCount(java.util.Vector vecJC)
          Returns the number of rows needed in the Join Constraint table
(package private)  void mkbOK_MouseClick(java.awt.event.MouseEvent event)
          Called by mouseClick when mkbOK button is clicked.
(package private)  void mkbShowExtent_MouseClick(java.awt.event.MouseEvent event)
          Called by mouseClick when mkbOK button is clicked.
private  int PCRowCount(java.util.Vector vecPC)
          Returns the number of rows needed in the PC Constraint Table
private  boolean relSelected(java.lang.String nodePath)
          Returns if a relation has been selected by examining the nodePath
 void resetConstraintArea()
          Resets constraint scrollpanes and lables to not visible
 void setVisible(boolean show)
          (Mostly generated by Visual Cafe)
Besides setting visibility, it has been modified to setLocation
private  void updateTables(java.util.Vector ISObjects, java.lang.String currIS, java.lang.String currRel)
          Updates the tables to reflect the constraints of the most recently selected relation
 
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
, 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, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

mwMain

private Main mwMain
Added by Andreas Koeller. The reference of mwMain

DEBUG

private static final boolean DEBUG

panLeft

java.awt.Panel panLeft

panRight

java.awt.Panel panRight

lblType

java.awt.Label lblType

lblJoin

java.awt.Label lblJoin

lblPC

java.awt.Label lblPC

jspT

com.sun.java.swing.JScrollPane jspT

jspJ

com.sun.java.swing.JScrollPane jspJ

jspP

com.sun.java.swing.JScrollPane jspP

tableT

com.sun.java.swing.JTable tableT

tableJ

com.sun.java.swing.JTable tableJ

tableP

com.sun.java.swing.JTable tableP

thisJC

JoinConstraint thisJC

thisCond

Condition thisCond

condVec

java.util.Vector condVec

thisPC

PCConstraint thisPC

thisPCPair

PCPair thisPCPair

pcpairVec

java.util.Vector pcpairVec

scrollPaneTree

com.sun.java.swing.JScrollPane scrollPaneTree

mkbTree

com.sun.java.swing.JTree mkbTree

mkbOK

com.sun.java.swing.JButton mkbOK

mkbShowExtent

com.sun.java.swing.JButton mkbShowExtent

lblSelectedNode

java.awt.Label lblSelectedNode

panType

java.awt.Panel panType

panJoin

java.awt.Panel panJoin

panPC

java.awt.Panel panPC

tempView

View tempView

tempIS

IS tempIS

selectedRelation

java.lang.String selectedRelation

fComponentsAdjusted

boolean fComponentsAdjusted
(generated by Visual Cafe)
Used for addNotify check.
Constructor Detail

mkbFrame

public mkbFrame(Main m)
Class Constructor, receives all ISObjects from the applet
Method Detail

resetConstraintArea

public void resetConstraintArea()
Resets constraint scrollpanes and lables to not visible

buildMkbTree

public void buildMkbTree(java.util.Vector ISObjects)
Builds the tree by adding all of the leaf nodes to a root node

relSelected

private boolean relSelected(java.lang.String nodePath)
Returns if a relation has been selected by examining the nodePath

ISSelected

private boolean ISSelected(java.lang.String nodePath)
Returns if a relation has been selected by examing the nodePath

updateTables

private void updateTables(java.util.Vector ISObjects,
                          java.lang.String currIS,
                          java.lang.String currRel)
Updates the tables to reflect the constraints of the most recently selected relation

JCRowCount

private int JCRowCount(java.util.Vector vecJC)
Returns the number of rows needed in the Join Constraint table

PCRowCount

private int PCRowCount(java.util.Vector vecPC)
Returns the number of rows needed in the PC Constraint Table

setVisible

public void setVisible(boolean show)
(Mostly generated by Visual Cafe)
Besides setting visibility, it has been modified to setLocation
Overrides:
setVisible in class java.awt.Component

addNotify

public void addNotify()
(generated by Visual Cafe)
Overrides:
addNotify in class java.awt.Frame

Frame1_WindowClosing

void Frame1_WindowClosing(java.awt.event.WindowEvent event)
(generated by Visual Cafe)

mkbOK_MouseClick

void mkbOK_MouseClick(java.awt.event.MouseEvent event)
Called by mouseClick when mkbOK button is clicked. Hides this frame

mkbShowExtent_MouseClick

void mkbShowExtent_MouseClick(java.awt.event.MouseEvent event)
Called by mouseClick when mkbOK button is clicked. Shows a relation extent.