wt.clients.tools.transfer
Class EditGraphTemplate

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Frame
                  extended byjavax.swing.JFrame
                      extended bywt.clients.tools.transfer.EditGraphTemplate
All Implemented Interfaces:
Accessible, ImageObserver, MenuContainer, RootPaneContainer, Serializable, WindowConstants

public class EditGraphTemplate
extends JFrame

Specify search criteria on Windchill classes to act as a filter for the objects to export.

Since:
R5.0
See Also:
Serialized Form

Nested Class Summary
(package private)  class EditGraphTemplate.ESymWindow
           
(package private)  class EditGraphTemplate.FIFOTreeObject
           
(package private)  class EditGraphTemplate.keyaction
           
(package private)  class EditGraphTemplate.MyRenderer1
           
(package private)  class EditGraphTemplate.MyTableModel
           
(package private)  class EditGraphTemplate.myTreeListener
           
(package private)  class EditGraphTemplate.MyTreeRenderer
           
private  class EditGraphTemplate.PopupListener
           
(package private)  class EditGraphTemplate.SymAction
          Action handler
 
Nested classes inherited from class javax.swing.JFrame
JFrame.AccessibleJFrame
 
Nested classes inherited from class java.awt.Frame
Frame.AccessibleAWTFrame
 
Nested classes inherited from class java.awt.Window
Window.AccessibleAWTWindow
 
Nested classes inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
(package private)  JMenuItem aboutMenuItem
           
(package private)  Hashtable actions
           
(package private)  ObjectGraphEdge[][] allEdges
           
(package private)  ObjectGraphNode[][] allNodes
           
(package private)  JButton cancelButton
           
(package private)  JButton cancelSaveButton
           
(package private)  JCheckBox caseBox
           
(package private)  ConfigSpecDialog cif
           
(package private)  JTextField classFieldText
           
private static Vector classIncludedList
           
private static String CLASSNAME
           
(package private)  JButton closePreview
           
(package private)  TF_CollapseAction collapse
           
(package private)  TF_CompactAction compact
           
(package private)  JButton configSpecbutton
           
(package private)  JMenuItem configSpecMenuItem
           
(package private)  GridBagConstraints constraints
           
(package private)  Cursor cursor_default
           
(package private)  Cursor cursor_wait
           
(package private)  TF_Curved_layoutAction curved_layout
           
(package private)  TF_EditCriteriaAction editcriteria
           
(package private)  JMenu editmenu
           
(package private)  ExportObjectGraphTemplate eg
           
(package private)  ExportObjectGraphTemplate egSaved
           
(package private)  Hashtable eoshash
           
(package private)  JTextField ESearchField
           
(package private)  JScrollPane ESelectFromTablePane
           
(package private)  EditGraphTemplate.MyTableModel EToModel
           
(package private)  DefaultMutableTreeNode Etop
           
(package private)  TableSorter ETosorter
           
(package private)  JTable EToTable
           
(package private)  DefaultTreeModel EtreeModel1
           
(package private)  JScrollPane EWTObjectPane
           
(package private)  JTree EWTObjectTree
           
(package private)  TF_ExcludeAction exclude
           
(package private)  Vector exclusionList
           
(package private)  JMenuItem exitMenuItem
           
(package private)  TF_ExpandAction expand
           
(package private)  TF_ExpandAllAction expandAll
           
(package private)  Font f1
           
(package private)  Font f2
           
(package private)  boolean fComponentsAdjusted
           
(package private)  Vector FIFOVec
           
(package private)  JMenu filemenu
           
(package private)  JMenuItem findMenuItem
           
(package private)  JMenuItem findnextMenuItem
           
(package private)  JTextField findTextField
           
(package private)  ExportGraphModel graphmodel
           
(package private)  JPanel graphpanel
           
(package private)  JScrollPane graphscrollpane
           
(package private)  DefaultGraphSelectionModel graphsm
           
(package private)  JToolBar graphtoolbar
           
(package private)  ExportGraphViewCellRenderer graphvcr
           
(package private)  ExportGraphView graphview
           
(package private)  JRadioButtonMenuItem graphViewMenuItem
           
(package private)  ExportGraphViewLinkRenderer graphvlr
           
(package private)  JMenu helpmenu
           
private  HelpSystem helpSystem
           
(package private)  Insets in_1
           
(package private)  Insets in_2
           
(package private)  TF_IncludeAction include
           
(package private)  TF_IncludeAllAction includeall
           
(package private)  JTextField inputText
           
private  boolean inTableRepaint
           
(package private)  JColorChooser jcocho1
           
(package private)  JDialog jd
           
(package private)  GridBagLayout jdgb
           
(package private)  int lastAddedEdgeIndex
           
(package private)  int lastAddedNodeIndex
           
(package private)  int lastButtonHit
           
(package private)  Hashtable linkshash
           
(package private)  JRadioButtonMenuItem listViewMenuItem
           
(package private)  JButton loadSearchButton
           
(package private) static boolean m_bInstalledDefaultButtonFix
           
(package private)  JMenuBar mainMenuBar
           
(package private)  JTextField nameText
           
(package private)  JMenuItem newMenuItem
           
(package private)  JButton noSaveButton
           
(package private)  ObjectReference ObjectBasisReference
           
(package private)  JButton okMessageButton
           
(package private)  JMenuItem openMenuItem
           
(package private)  JButton openOpenButton
           
(package private)  JMenuItem optionsMenuItem
           
(package private)  JButton optionsOkButton
           
(package private)  EditGraphViewOptions optionsPanel
           
(package private)  JMenuItem overviewMenuItem
           
(package private)  JList picklist
           
(package private)  DefaultListModel picklistModel
           
(package private)  JScrollPane plpane
           
(package private)  JPopupMenu popup
           
(package private)  JMenuItem previewMenuItem
           
(package private)  JToolBar previewtoolbar
           
(package private)  int processing
           
(package private)  JButton removeObject
           
(package private)  String rootclass
           
(package private)  ExportObjectGraphNodeTemplate rootnode
           
(package private)  boolean run_from_prompt
           
(package private)  JMenuItem saveasMenuItem
           
(package private)  boolean saved
           
(package private)  JMenuItem saveMenuItem
           
(package private)  JRadioButton searchDownRadioButton
           
(package private)  JRadioButton searchUpRadioButton
           
(package private)  JCheckBox showexcluded
           
(package private)  JCheckBox showexcluded2
           
(package private)  JTextField spectext
           
(package private)  JRadioButtonMenuItem treeViewMenuItem
           
(package private)  JMenuItem tutorialMenuItem
           
(package private)  JButton unremoveObject
           
(package private)  JButton updatePreview
           
(package private)  int view_mode
           
(package private)  JMenu viewmenu
           
(package private)  JButton yesSaveButton
           
(package private)  TF_ZoomInAction zoomin
           
(package private)  TF_ZoomOutAction zoomout
           
 
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
EditGraphTemplate()
           
EditGraphTemplate(String cl)
          Constructor, create with default graph.
EditGraphTemplate(String cl, boolean runFrom)
          Constructor, create with default graph, and brings up the client with the mode when run from the prompt.
 
Method Summary
(package private)  void aboutMenuItem_ActionPerformed(ActionEvent event)
           
 void addNotify()
           
private  void Addto(DefaultListModel dlf, String name)
          Adds a name to a list alphabetically using binary search
 boolean Addto(TableSorter dlf, String name1, String name2, String name3)
          Adds a name to a Table alphabetically using binary search
private  void buildConstraints(GridBagConstraints gbc, int x, int y, int w, int h, double wx, double wy, int anchor, int fill)
           
(package private)  void buildTemplate()
           
(package private)  void cancelButton_ActionPerformed()
           
(package private)  void cancelSaveButton_ActionPerformed()
          Cancel button on dialogs
 boolean checkIsIn(TableSorter dlf, String name1, String name2, String name3)
          determine if row already exists in the table
(package private)  void configSpecMenuItem_ActionPerformed()
           
private  void createActionTable(JTextComponent textComponent)
          The following two methods allow us to find an action provided by the editor kit by its name.
 void disableAllMenus()
          disable menus when there is no selected entities
 void disableMenus()
          disable menus when there is not root class
 void displayHelp(String key)
          display the new help window
 void enableMenus()
          enable menus when there is a root class
 void ESearchTree(DefaultMutableTreeNode wo, int startindex, int childcount, String search_text, boolean matchCase, boolean searchDown, boolean scrollToVisible, boolean exact)
          Searches Table and tree for location of search text
 void exit()
          handle the exit action
private  void expandAllLinks(Hashtable lhash, String name, int depth)
           
(package private)  void expandHash(String name, ExportGraphNode node1, int graphNum, int ceiling, boolean first)
           
private  void expandHash2(String name, ExportGraphNode node1, int depth, int graphNum, int ceiling, DefaultMutableTreeNode treeNode, boolean first)
           
(package private)  void findMenuItem_ActionPerformed()
          Action performed by the find menu
(package private)  void findnextMenuItem_ActionPerformed()
          Action performed by the find next menu
private  Action getActionByName(String name)
           
(package private)  String[] getAliases(String name)
           
private  Hashtable getAlllinks(String name)
           
private  Vector getAllNeighborEdges(String name)
           
private  Vector getAllNeighbors(String name)
           
private  Vector getAllOriginEdges(String name)
           
 ExportObjectGraphTemplate getDefaultGraph(String classname)
          get the default graph for a given classname
 ExportObjectGraphTemplate getExportObjectGraphTemplate()
          return a copy of the template in use
private  ObjectGraphEdge getLink(String name1, String name2, String name3)
           
(package private)  void getnewspec()
          Brings up a load Dialog
 DefaultMutableTreeNode getNode(DefaultMutableTreeNode dftm, String name)
           
private  ExportObjectGraphNodeTemplate getNodeFromAllNodes(String name)
           
 int getnumcriteria()
          Get the number of criteria specified on class
 String getQueryName()
           
 boolean getRepaint()
           
(package private)  String getRootClass()
           
 void graphViewMenuItem_ActionPerformed()
          Change to the graph view
private static void installDefaultButtonFix()
           
 void listViewMenuItem_ActionPerformed()
          Change to the list view
 void loadsavedExportObjectGraphTemplate()
          Re-load the saved version of querytemplate as a result of exit without updating
(package private)  void loadSearchButton_ActionPerformed()
          the search button on the load dialog on dialogs
static void main(String[] args)
           
(package private)  void makeGraph()
          Make the model from the graph
private  void makeGraph2()
           
(package private)  void newMenuItem_ActionPerformed()
           
(package private)  void noSaveButton_ActionPerformed()
          No button on dialogs
(package private)  void okMessageButton_ActionPerformed()
          OK button on dialogs
(package private)  void openMenuItem_ActionPerformed()
           
(package private)  void openOpenButton_ActionPerformed()
           
(package private)  void optionsMenuItem_ActionPerformed()
           
(package private)  void optionsOkButton_ActionPerformed()
          Ok button on Options dialog Action
(package private)  void previewMenuItem_ActionPerformed()
           
(package private)  void removeObject_ActionPerformed()
          Remove button on Preview
(package private)  void saveasMenuItem_ActionPerformed()
           
 void saveExportObjectGraphTemplate()
          Save a copy of querytemplate before launching this frame in case the changes will not be saved
(package private)  void saveMenuItem_ActionPerformed()
           
(package private)  void searchButton_actionPerformed(String name, boolean matchCase, boolean searchDown)
          find dialog search button action
 void setExportObjectGraphTemplate(ExportObjectGraphTemplate exportTemplate)
           
 void setHelpSystem(HelpSystem helpSystem)
          brings up a new help window
 void setRepaint(boolean aBool)
           
(package private)  void setRootClass(String cl)
          Constructor, create with default graph, and brings up the client with the mode when run from the prompt.
 void setVisible(boolean b)
           
(package private)  boolean shouldsave()
          returns whether the graph has unsaved changes
private  void showConfirmSaveDialog(String mess)
          show a save dialog
private  void showErrorMessage(String errmes)
          show an error dialog
(package private)  void showFindTextDialog(String mess)
          Show a find dialog
private  void showInputDialog(String mess)
          show an input dialog
 void showmerow(int i)
          Scroll table to the row
(package private)  void showWithSize(int x, int y)
          Show dialog
 void treeViewMenuItem_ActionPerformed()
          Change to the tree view
(package private)  void UnpreviewMenuItem_ActionPerformed()
           
(package private)  void unremoveObject_ActionPerformed()
          Add button on Preview
 void updateGraphSelection()
           
 void updateNodeAndEdgeList()
          Update the graph nodes and edges with the changes made in the editor
(package private)  void updatePreview_ActionPerformed()
           
 void updateTableSelection()
          update the selection in table view
 void updateTreeSelection()
          update the selection in tree view
(package private)  void yesSaveButton_ActionPerformed()
          Yes button on dialogs
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
finalize, 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
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, 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, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, 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, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, 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, 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, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

CLASSNAME

private static final String CLASSNAME

rootclass

String rootclass

m_bInstalledDefaultButtonFix

static boolean m_bInstalledDefaultButtonFix

rootnode

ExportObjectGraphNodeTemplate rootnode

graphmodel

ExportGraphModel graphmodel

graphsm

DefaultGraphSelectionModel graphsm

graphvcr

ExportGraphViewCellRenderer graphvcr

graphvlr

ExportGraphViewLinkRenderer graphvlr

graphview

ExportGraphView graphview

exclude

TF_ExcludeAction exclude

include

TF_IncludeAction include

includeall

TF_IncludeAllAction includeall

zoomin

TF_ZoomInAction zoomin

zoomout

TF_ZoomOutAction zoomout

expand

TF_ExpandAction expand

expandAll

TF_ExpandAllAction expandAll

collapse

TF_CollapseAction collapse

compact

TF_CompactAction compact

curved_layout

TF_Curved_layoutAction curved_layout

editcriteria

TF_EditCriteriaAction editcriteria

showexcluded

JCheckBox showexcluded

showexcluded2

JCheckBox showexcluded2

graphtoolbar

JToolBar graphtoolbar

previewtoolbar

JToolBar previewtoolbar

graphpanel

JPanel graphpanel

findTextField

JTextField findTextField

graphscrollpane

JScrollPane graphscrollpane

ObjectBasisReference

ObjectReference ObjectBasisReference

optionsPanel

EditGraphViewOptions optionsPanel

jcocho1

JColorChooser jcocho1

cif

ConfigSpecDialog cif

configSpecbutton

JButton configSpecbutton

closePreview

JButton closePreview

updatePreview

JButton updatePreview

removeObject

JButton removeObject

unremoveObject

JButton unremoveObject

loadSearchButton

JButton loadSearchButton

optionsOkButton

JButton optionsOkButton

cancelButton

JButton cancelButton

openOpenButton

JButton openOpenButton

okMessageButton

JButton okMessageButton

cancelSaveButton

JButton cancelSaveButton

yesSaveButton

JButton yesSaveButton

noSaveButton

JButton noSaveButton

nameText

JTextField nameText

inputText

JTextField inputText

processing

int processing

cursor_wait

Cursor cursor_wait

cursor_default

Cursor cursor_default

f1

Font f1

actions

Hashtable actions

linkshash

Hashtable linkshash

eoshash

Hashtable eoshash

picklistModel

DefaultListModel picklistModel

picklist

JList picklist

plpane

JScrollPane plpane

spectext

JTextField spectext

classFieldText

JTextField classFieldText

eg

ExportObjectGraphTemplate eg

egSaved

ExportObjectGraphTemplate egSaved

saved

boolean saved

run_from_prompt

boolean run_from_prompt

exclusionList

Vector exclusionList

classIncludedList

private static Vector classIncludedList

in_1

Insets in_1

in_2

Insets in_2

f2

Font f2

lastButtonHit

int lastButtonHit

fComponentsAdjusted

boolean fComponentsAdjusted

helpSystem

private HelpSystem helpSystem

jd

JDialog jd

jdgb

GridBagLayout jdgb

constraints

GridBagConstraints constraints

allNodes

ObjectGraphNode[][] allNodes

allEdges

ObjectGraphEdge[][] allEdges

view_mode

int view_mode

EToModel

EditGraphTemplate.MyTableModel EToModel

ETosorter

TableSorter ETosorter

EToTable

JTable EToTable

ESearchField

JTextField ESearchField

Etop

DefaultMutableTreeNode Etop

EtreeModel1

DefaultTreeModel EtreeModel1

EWTObjectTree

JTree EWTObjectTree

ESelectFromTablePane

JScrollPane ESelectFromTablePane

EWTObjectPane

JScrollPane EWTObjectPane

inTableRepaint

private boolean inTableRepaint

lastAddedNodeIndex

int lastAddedNodeIndex

lastAddedEdgeIndex

int lastAddedEdgeIndex

FIFOVec

Vector FIFOVec

mainMenuBar

JMenuBar mainMenuBar

popup

JPopupMenu popup

caseBox

JCheckBox caseBox

searchDownRadioButton

JRadioButton searchDownRadioButton

searchUpRadioButton

JRadioButton searchUpRadioButton

filemenu

JMenu filemenu

exitMenuItem

JMenuItem exitMenuItem

newMenuItem

JMenuItem newMenuItem

openMenuItem

JMenuItem openMenuItem

saveMenuItem

JMenuItem saveMenuItem

saveasMenuItem

JMenuItem saveasMenuItem

editmenu

JMenu editmenu

optionsMenuItem

JMenuItem optionsMenuItem

configSpecMenuItem

JMenuItem configSpecMenuItem

viewmenu

JMenu viewmenu

graphViewMenuItem

JRadioButtonMenuItem graphViewMenuItem

treeViewMenuItem

JRadioButtonMenuItem treeViewMenuItem

listViewMenuItem

JRadioButtonMenuItem listViewMenuItem

previewMenuItem

JMenuItem previewMenuItem

findMenuItem

JMenuItem findMenuItem

findnextMenuItem

JMenuItem findnextMenuItem

helpmenu

JMenu helpmenu

aboutMenuItem

JMenuItem aboutMenuItem

overviewMenuItem

JMenuItem overviewMenuItem

tutorialMenuItem

JMenuItem tutorialMenuItem
Constructor Detail

EditGraphTemplate

public EditGraphTemplate()

EditGraphTemplate

public EditGraphTemplate(String cl)
Constructor, create with default graph.

Parameters:
cl - Root class

EditGraphTemplate

public EditGraphTemplate(String cl,
                         boolean runFrom)
Constructor, create with default graph, and brings up the client with the mode when run from the prompt.

Parameters:
cl - Root class
runFrom - true if started from the command prompt
Method Detail

installDefaultButtonFix

private static void installDefaultButtonFix()

setRootClass

void setRootClass(String cl)
Constructor, create with default graph, and brings up the client with the mode when run from the prompt.

Parameters:
cl - Root class

setVisible

public void setVisible(boolean b)

main

public static void main(String[] args)

addNotify

public void addNotify()

exit

public void exit()
handle the exit action


getQueryName

public String getQueryName()

aboutMenuItem_ActionPerformed

void aboutMenuItem_ActionPerformed(ActionEvent event)

openMenuItem_ActionPerformed

void openMenuItem_ActionPerformed()

newMenuItem_ActionPerformed

void newMenuItem_ActionPerformed()

getnewspec

void getnewspec()
Brings up a load Dialog


openOpenButton_ActionPerformed

void openOpenButton_ActionPerformed()

optionsMenuItem_ActionPerformed

void optionsMenuItem_ActionPerformed()

optionsOkButton_ActionPerformed

void optionsOkButton_ActionPerformed()
Ok button on Options dialog Action


cancelButton_ActionPerformed

void cancelButton_ActionPerformed()

configSpecMenuItem_ActionPerformed

void configSpecMenuItem_ActionPerformed()

shouldsave

boolean shouldsave()
returns whether the graph has unsaved changes


saveMenuItem_ActionPerformed

void saveMenuItem_ActionPerformed()

saveasMenuItem_ActionPerformed

void saveasMenuItem_ActionPerformed()

previewMenuItem_ActionPerformed

void previewMenuItem_ActionPerformed()

updatePreview_ActionPerformed

void updatePreview_ActionPerformed()

UnpreviewMenuItem_ActionPerformed

void UnpreviewMenuItem_ActionPerformed()

removeObject_ActionPerformed

void removeObject_ActionPerformed()
Remove button on Preview


unremoveObject_ActionPerformed

void unremoveObject_ActionPerformed()
Add button on Preview


findMenuItem_ActionPerformed

void findMenuItem_ActionPerformed()
Action performed by the find menu


findnextMenuItem_ActionPerformed

void findnextMenuItem_ActionPerformed()
Action performed by the find next menu


searchButton_actionPerformed

void searchButton_actionPerformed(String name,
                                  boolean matchCase,
                                  boolean searchDown)
find dialog search button action

Parameters:
searchDown - flat to searc up or down

showmerow

public void showmerow(int i)
Scroll table to the row

Parameters:
i - the row to scroll to

saveExportObjectGraphTemplate

public void saveExportObjectGraphTemplate()
Save a copy of querytemplate before launching this frame in case the changes will not be saved


loadsavedExportObjectGraphTemplate

public void loadsavedExportObjectGraphTemplate()
Re-load the saved version of querytemplate as a result of exit without updating


buildTemplate

void buildTemplate()

getnumcriteria

public int getnumcriteria()
Get the number of criteria specified on class


setExportObjectGraphTemplate

public void setExportObjectGraphTemplate(ExportObjectGraphTemplate exportTemplate)
                                  throws WTException
Throws:
WTException

makeGraph2

private void makeGraph2()

expandHash2

private void expandHash2(String name,
                         ExportGraphNode node1,
                         int depth,
                         int graphNum,
                         int ceiling,
                         DefaultMutableTreeNode treeNode,
                         boolean first)

updateNodeAndEdgeList

public void updateNodeAndEdgeList()
Update the graph nodes and edges with the changes made in the editor


getNodeFromAllNodes

private ExportObjectGraphNodeTemplate getNodeFromAllNodes(String name)

createActionTable

private void createActionTable(JTextComponent textComponent)
The following two methods allow us to find an action provided by the editor kit by its name.


getActionByName

private Action getActionByName(String name)

displayHelp

public void displayHelp(String key)
display the new help window


setHelpSystem

public void setHelpSystem(HelpSystem helpSystem)
brings up a new help window


buildConstraints

private void buildConstraints(GridBagConstraints gbc,
                              int x,
                              int y,
                              int w,
                              int h,
                              double wx,
                              double wy,
                              int anchor,
                              int fill)

getRootClass

String getRootClass()

makeGraph

void makeGraph()
Make the model from the graph


expandHash

void expandHash(String name,
                ExportGraphNode node1,
                int graphNum,
                int ceiling,
                boolean first)

getAliases

String[] getAliases(String name)

getAllNeighbors

private Vector getAllNeighbors(String name)

getAllOriginEdges

private Vector getAllOriginEdges(String name)

getAllNeighborEdges

private Vector getAllNeighborEdges(String name)

getLink

private ObjectGraphEdge getLink(String name1,
                                String name2,
                                String name3)

getAlllinks

private Hashtable getAlllinks(String name)

expandAllLinks

private void expandAllLinks(Hashtable lhash,
                            String name,
                            int depth)

disableMenus

public void disableMenus()
disable menus when there is not root class


enableMenus

public void enableMenus()
enable menus when there is a root class


disableAllMenus

public void disableAllMenus()
disable menus when there is no selected entities


getExportObjectGraphTemplate

public ExportObjectGraphTemplate getExportObjectGraphTemplate()
return a copy of the template in use


Addto

private void Addto(DefaultListModel dlf,
                   String name)
Adds a name to a list alphabetically using binary search

Parameters:
dlf - List to add object
name - - object to add

showInputDialog

private void showInputDialog(String mess)
show an input dialog

Parameters:
mess - message of the input

showConfirmSaveDialog

private void showConfirmSaveDialog(String mess)
show a save dialog

Parameters:
mess - message of the save

showErrorMessage

private void showErrorMessage(String errmes)
show an error dialog


showFindTextDialog

void showFindTextDialog(String mess)
Show a find dialog

Parameters:
mess - message to describe find

okMessageButton_ActionPerformed

void okMessageButton_ActionPerformed()
OK button on dialogs


cancelSaveButton_ActionPerformed

void cancelSaveButton_ActionPerformed()
Cancel button on dialogs


yesSaveButton_ActionPerformed

void yesSaveButton_ActionPerformed()
Yes button on dialogs


noSaveButton_ActionPerformed

void noSaveButton_ActionPerformed()
No button on dialogs


loadSearchButton_ActionPerformed

void loadSearchButton_ActionPerformed()
the search button on the load dialog on dialogs


showWithSize

void showWithSize(int x,
                  int y)
Show dialog

Parameters:
x - width used if size comes up zero
y - height used if size comes up zero

treeViewMenuItem_ActionPerformed

public void treeViewMenuItem_ActionPerformed()
Change to the tree view


graphViewMenuItem_ActionPerformed

public void graphViewMenuItem_ActionPerformed()
Change to the graph view


listViewMenuItem_ActionPerformed

public void listViewMenuItem_ActionPerformed()
Change to the list view


updateTableSelection

public void updateTableSelection()
update the selection in table view


updateTreeSelection

public void updateTreeSelection()
update the selection in tree view


updateGraphSelection

public void updateGraphSelection()

ESearchTree

public void ESearchTree(DefaultMutableTreeNode wo,
                        int startindex,
                        int childcount,
                        String search_text,
                        boolean matchCase,
                        boolean searchDown,
                        boolean scrollToVisible,
                        boolean exact)
Searches Table and tree for location of search text

Parameters:
wo - node of tree to add children to.
startindex - - index of child to start adding at
childcount - - total number of children wo has
search_text - - text to search for.

getNode

public DefaultMutableTreeNode getNode(DefaultMutableTreeNode dftm,
                                      String name)

Addto

public boolean Addto(TableSorter dlf,
                     String name1,
                     String name2,
                     String name3)
Adds a name to a Table alphabetically using binary search

Parameters:
dlf - Table to add object

checkIsIn

public boolean checkIsIn(TableSorter dlf,
                         String name1,
                         String name2,
                         String name3)
determine if row already exists in the table

Parameters:
dlf - Table to add object

getRepaint

public boolean getRepaint()

setRepaint

public void setRepaint(boolean aBool)

getDefaultGraph

public ExportObjectGraphTemplate getDefaultGraph(String classname)
get the default graph for a given classname

Parameters:
classname - class of object to create default graph