wt.clients.tools.transfer
Class ImportPolicyEditor

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.ImportPolicyEditor
All Implemented Interfaces:
Accessible, ImageObserver, MenuContainer, RootPaneContainer, Serializable, WindowConstants

public class ImportPolicyEditor
extends JFrame

Import Policy Panel Import Policies determine the actions to be taken during an Import for a specific type of object: 1) Action for when Import Object does not exist in the database 2) Action for when Import Object already exists in the database This utility provides the User Interface functionality for editing/saving/creating of Import Policies

See Also:
Serialized Form

Nested Class Summary
(package private)  class ImportPolicyEditor.keyaction
           
(package private)  class ImportPolicyEditor.SymAction
           
(package private)  class ImportPolicyEditor.SymWindow
           
 
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)  JButton cancelSaveButton
           
(package private)  JCheckBox caseBox
           
(package private)  GridBagConstraints constraints
           
(package private)  Cursor cursor_default
           
(package private)  Cursor cursor_wait
           
(package private)  JMenuItem exitMenuItem
           
(package private)  Font f2
           
(package private)  boolean fComponentsAdjusted
           
(package private)  JMenu filemenu
           
(package private)  JMenuItem findMenuItem
           
(package private)  JMenuItem findnextMenuItem
           
(package private)  JTextField findTextField
           
(package private)  JMenu helpmenu
           
private  HelpSystem helpSystem
           
(package private)  ImportPolicyPanel importPolicyPanel
           
(package private)  Insets in1
           
(package private)  Insets in2
           
(package private)  Hashtable ishash
           
(package private)  JDialog jd
           
(package private)  GridBagLayout jdgb
           
(package private)  int lastButtonHit
           
(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
           
private  Object object
           
(package private)  JButton okMessageButton
           
(package private)  JButton openCancelButton
           
(package private)  JFileChooser openFileDialog1
           
(package private)  JMenuItem openMenuItem
           
(package private)  JButton openOpenButton
           
(package private)  JMenuItem overviewMenuItem
           
(package private)  JList pickList
           
(package private)  DefaultListModel pickListModel
           
(package private)  JScrollPane plpane
           
(package private)  JButton runLaterSaveButton
           
(package private)  JMenuItem saveMenuItem
           
(package private)  JRadioButton searchDownRadioButton
           
(package private)  JTextField searchtext
           
(package private)  JRadioButton searchUpRadioButton
           
(package private)  String specname
           
(package private)  JTextField spectext
           
(package private)  int stop
           
(package private)  GridBagLayout transfergb
           
(package private)  JMenuItem tutorialMenuItem
           
(package private)  JMenu viewmenu
           
(package private)  JButton yesSaveButton
           
 
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
ImportPolicyEditor()
          Constructor
 
Method Summary
(package private)  void aboutMenuItem_ActionPerformed(ActionEvent event)
          Action performed by the about menu
 void addNotify()
           
private  void Addto(DefaultListModel dlf, String name)
          Adds a name to a list 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)
          Utility method to aid in the creation of gridbag layout
(package private)  void Cancel_button_ActionPerformed()
          Action performed by the cancel button
(package private)  void cancelSaveButton_ActionPerformed()
          Action performed by the OK button on dialogs
private  void configureRootMenu()
          Enable the root Object menu depending on the Transfer Mode
 void displayHelp(String key)
          display the new help window
private  void enable_buttons()
          Enable buttons when a valid spec is being edited
(package private)  void exitMenuItem_ActionPerformed()
          Action performed by the exit menu
(package private)  void findMenuItem_ActionPerformed()
          Action performed by the find menu
(package private)  void findnextMenuItem_ActionPerformed()
          Action performed by the find next menu
(package private)  void getnewspec()
          Brings up the dialog to open/search for specs
(package private)  void Help_button_ActionPerformed()
          Action performed by the help button
private static void installDefaultButtonFix()
           
 void loadSearchButton_ActionPerformed()
          Action performed by the search button on the load dialog
static void main(String[] args)
           
(package private)  void newMenuItem_ActionPerformed()
          Action performed by the exit menu
(package private)  void noSaveButton_ActionPerformed()
          Action performed by the NO button on dialogs
(package private)  void Ok_button_ActionPerformed()
          Action performed by the OK button,on the Main window
(package private)  void okMessageButton_ActionPerformed()
          Action performed by the OK button on dialogs
(package private)  void openCancelButton_ActionPerformed()
          Action performed by the cancel button on the load dialog
(package private)  void openMenuItem_ActionPerformed()
          Action performed by the load menu
(package private)  void openOpenButton_ActionPerformed()
          Action performed by the open button on the load dialog
(package private)  void Save_button_ActionPerformed()
          Action performed by the save button
(package private)  void saveMenuItem_ActionPerformed()
          Action performed by the save menu
 void setHelpSystem(HelpSystem helpSystem)
          brings up a new help window
 void setVisible(boolean b)
           
(package private)  boolean shouldsave()
          returns whether or not the current spec should prompt ton save changes
(package private)  void showConfirmSaveDialog(String text)
          Show a save? dialog
(package private)  void showErrorMessage(String errmes)
          Show a save? dialog
(package private)  void showFindTextDialog(String mess)
          Show a find dialog
(package private)  void showWithSize(int x, int y)
          show a dialog, and if it comes up with 0 size, resize it to x,y
(package private)  void yesSaveButton_ActionPerformed()
          Action performed by the 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

openFileDialog1

JFileChooser openFileDialog1

importPolicyPanel

ImportPolicyPanel importPolicyPanel

m_bInstalledDefaultButtonFix

static boolean m_bInstalledDefaultButtonFix

fComponentsAdjusted

boolean fComponentsAdjusted

transfergb

GridBagLayout transfergb

constraints

GridBagConstraints constraints

openOpenButton

JButton openOpenButton

openCancelButton

JButton openCancelButton

runLaterSaveButton

JButton runLaterSaveButton

okMessageButton

JButton okMessageButton

cancelSaveButton

JButton cancelSaveButton

yesSaveButton

JButton yesSaveButton

noSaveButton

JButton noSaveButton

loadSearchButton

JButton loadSearchButton

cursor_wait

Cursor cursor_wait

cursor_default

Cursor cursor_default

in1

Insets in1

in2

Insets in2

helpSystem

private HelpSystem helpSystem

pickListModel

DefaultListModel pickListModel

pickList

JList pickList

plpane

JScrollPane plpane

searchtext

JTextField searchtext

spectext

JTextField spectext

nameText

JTextField nameText

findTextField

JTextField findTextField

caseBox

JCheckBox caseBox

searchDownRadioButton

JRadioButton searchDownRadioButton

searchUpRadioButton

JRadioButton searchUpRadioButton

ishash

Hashtable ishash

specname

String specname

stop

int stop

lastButtonHit

int lastButtonHit

jd

JDialog jd

jdgb

GridBagLayout jdgb

f2

Font f2

object

private Object object

mainMenuBar

JMenuBar mainMenuBar

filemenu

JMenu filemenu

exitMenuItem

JMenuItem exitMenuItem

newMenuItem

JMenuItem newMenuItem

openMenuItem

JMenuItem openMenuItem

saveMenuItem

JMenuItem saveMenuItem

viewmenu

JMenu viewmenu

findMenuItem

JMenuItem findMenuItem

findnextMenuItem

JMenuItem findnextMenuItem

helpmenu

JMenu helpmenu

aboutMenuItem

JMenuItem aboutMenuItem

overviewMenuItem

JMenuItem overviewMenuItem

tutorialMenuItem

JMenuItem tutorialMenuItem
Constructor Detail

ImportPolicyEditor

public ImportPolicyEditor()
Constructor

Method Detail

installDefaultButtonFix

private static void installDefaultButtonFix()

setVisible

public void setVisible(boolean b)
Parameters:
b - boolean

main

public static void main(String[] args)

addNotify

public void addNotify()

okMessageButton_ActionPerformed

void okMessageButton_ActionPerformed()
Action performed by the OK button on dialogs


cancelSaveButton_ActionPerformed

void cancelSaveButton_ActionPerformed()
Action performed by the OK button on dialogs


yesSaveButton_ActionPerformed

void yesSaveButton_ActionPerformed()
Action performed by the YES button on dialogs


noSaveButton_ActionPerformed

void noSaveButton_ActionPerformed()
Action performed by the NO button on dialogs


aboutMenuItem_ActionPerformed

void aboutMenuItem_ActionPerformed(ActionEvent event)
Action performed by the about menu


newMenuItem_ActionPerformed

void newMenuItem_ActionPerformed()
Action performed by the exit menu


exitMenuItem_ActionPerformed

void exitMenuItem_ActionPerformed()
Action performed by the exit menu


openMenuItem_ActionPerformed

void openMenuItem_ActionPerformed()
Action performed by the load menu


getnewspec

void getnewspec()
Brings up the dialog to open/search for specs


openOpenButton_ActionPerformed

void openOpenButton_ActionPerformed()
Action performed by the open button on the load dialog


openCancelButton_ActionPerformed

void openCancelButton_ActionPerformed()
Action performed by the cancel button on the load dialog


shouldsave

boolean shouldsave()
returns whether or not the current spec should prompt ton save changes


saveMenuItem_ActionPerformed

void saveMenuItem_ActionPerformed()
Action performed by the save menu


Cancel_button_ActionPerformed

void Cancel_button_ActionPerformed()
Action performed by the cancel button


Save_button_ActionPerformed

void Save_button_ActionPerformed()
Action performed by the save button


Help_button_ActionPerformed

void Help_button_ActionPerformed()
Action performed by the help button


Ok_button_ActionPerformed

void Ok_button_ActionPerformed()
Action performed by the OK button,on the Main window


findMenuItem_ActionPerformed

void findMenuItem_ActionPerformed()
Action performed by the find menu


findnextMenuItem_ActionPerformed

void findnextMenuItem_ActionPerformed()
Action performed by the find next menu


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)
Utility method to aid in the creation of gridbag layout


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

loadSearchButton_ActionPerformed

public void loadSearchButton_ActionPerformed()
Action performed by the search button on the load dialog


enable_buttons

private void enable_buttons()
Enable buttons when a valid spec is being edited


configureRootMenu

private void configureRootMenu()
Enable the root Object menu depending on the Transfer Mode


showFindTextDialog

void showFindTextDialog(String mess)
Show a find dialog

Parameters:
mess - message to describe find

showConfirmSaveDialog

void showConfirmSaveDialog(String text)
Show a save? dialog

Parameters:
text - save text message

showErrorMessage

void showErrorMessage(String errmes)
Show a save? dialog

Parameters:
errmes - text of error

showWithSize

void showWithSize(int x,
                  int y)
show a dialog, and if it comes up with 0 size, resize it to x,y

Parameters:
x - width of dialog
y - height of dialog