Open Business Objects for EDI
v3.5.2

com.americancoders.GUI
Class OBOEditor

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Frame
                  extended byjavax.swing.JFrame
                      extended bycom.americancoders.GUI.OBOEditor
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, javax.swing.event.ChangeListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, javax.swing.event.TreeSelectionListener, javax.swing.WindowConstants

public class OBOEditor
extends javax.swing.JFrame
implements java.awt.event.ActionListener, javax.swing.event.TreeSelectionListener, javax.swing.event.ChangeListener

class for editing OBOE objects.

OBOE - Open Business Objects for EDI

Part of the OBOE Extended Package
An EDI and XML Translator Written In Java
Copyright 1998-2007 - American Coders, LTD - Raleigh NC USA
All rights reserved
American Coders, Ltd
P. O. Box 97462
Raleigh, NC 27624 USA
1-919-846-2014
http://www.americancoders.com

Version:
3.5.2
Author:
Joe McVerry - American Coders, Ltd.
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
 
Nested classes inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
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
 
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.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
OBOEditor(java.lang.String inFileName)
          Constructor
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
          Swing method to handle action events
 java.awt.Component addSegmentPane(java.lang.String name, Segment inSeg, javax.swing.JTabbedPane inTabbedPane, javax.swing.tree.TreePath tp)
          shows a single segment
 javax.swing.tree.TreePath addToTree(javax.swing.tree.DefaultMutableTreeNode parent, javax.swing.tree.DefaultMutableTreeNode child, boolean visible)
          add an object to the displayed tree
 java.awt.Component addTSPane(TransactionSet inTS, javax.swing.JTabbedPane workingTabbedPane, javax.swing.tree.TreePath tp, javax.swing.tree.DefaultMutableTreeNode inNode)
          shows the transaction set then shows ts's formatted text in a dialog.
 void loadProperties()
          Reads control information from OBOE.properties and stores data in class variables.
 void loadTSMenuItems(javax.swing.JMenu inJM)
          load known transaction sets into new menu
static void main(java.lang.String[] arg)
          allows starting as a java application
 void nodeShow(java.awt.Component inNode)
           
 void notifiyClose()
          listener for when child dialogs close this dialog closes too
 void showEnvTree(Envelope inEnv, java.lang.Object inObject)
          shows the envelope structure
 void stateChanged(javax.swing.event.ChangeEvent ce)
          TabbedPane stateChanged handler, used to reset tree objects
 boolean validateTables()
          Tests all object hanging off of tree.
 void valueChanged(javax.swing.event.TreeSelectionEvent tse)
          Tree valueChanged handler, used to reset tree objects
 
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
addNotify, 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, setVisible, 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
 

Constructor Detail

OBOEditor

public OBOEditor(java.lang.String inFileName)
Constructor

Parameters:
inFileName - String pointing to filename to be edited.
Method Detail

loadTSMenuItems

public void loadTSMenuItems(javax.swing.JMenu inJM)
load known transaction sets into new menu

Parameters:
inJM - the new JMenu

loadProperties

public void loadProperties()
Reads control information from OBOE.properties and stores data in class variables.
hostServerID
OBOEserver id application, documents are sent here
Default: null. If set to null program will not enable the send via ftp menu functions
incomingPortNumber
Port number used to listen for incoming messages
Default: -1, an invalid port number. If set to -1 program will not use the port listener.
mailServerID
internet server id application uses to pull mail from
Default: null. If set to null program will not enable the send via mail menu functions
incomingMailType
Used to specify the internet mail server's protocol type: pop3 or imap
Default: null. If set to null program will display error dialog message and exit.
incomingMailID
Specifies the logon mail id for internet mail server
Default: null. If set to null program will display error dialog message and exit.
incomingMailPassword
Specifies the password of the userid sent to internet mail server
Default: null. If set to null program will display error dialog message and exit.
outgoingMailID
Specifies the user id for sending mail through the internet mail server.
Default: null. If set to null program will display error dialog message and exit.
goodIncomingEDIDirectory
directory where good edi documents are dropped off. Must be a directory and must exists
Your EDI application should use this to get the messages and process the request.
Default: null, if set to null, not a directory or does not exist program will display error dialog message and exit.
badIncomingEDIDirectory
directory where bad edi documents are dropped off. Must be a directory and must exists
Default: null, if set to null, not a directory or does not exist program will display error dialog message and exit.
responseDirectory
directory where response files are logged. Must be a directory and must exists
Default: null, if set to null, not a directory or does not exist program will display error dialog message and exit.
logDirectory
directory where the log, System.out and System.err files are placed.
Default: null, if set to null, not a directory or does not exist program will display error dialog message and exit.


addToTree

public javax.swing.tree.TreePath addToTree(javax.swing.tree.DefaultMutableTreeNode parent,
                                           javax.swing.tree.DefaultMutableTreeNode child,
                                           boolean visible)
add an object to the displayed tree

Parameters:
parent - DefaultMututableTreeNode
child - DefaultMututableTreeNode
visible - boolean is this node to be seen on the tree

showEnvTree

public void showEnvTree(Envelope inEnv,
                        java.lang.Object inObject)
shows the envelope structure

Parameters:
inEnv - Envelope

addTSPane

public java.awt.Component addTSPane(TransactionSet inTS,
                                    javax.swing.JTabbedPane workingTabbedPane,
                                    javax.swing.tree.TreePath tp,
                                    javax.swing.tree.DefaultMutableTreeNode inNode)
shows the transaction set then shows ts's formatted text in a dialog.

Parameters:
inTS - TransactionSet
workingTabbedPane - JTabbedPane because EDIFact doesn't need to use a function group
tp - TreePath to find pane in tree
inNode - DefaultMutuableTreeNode

addSegmentPane

public java.awt.Component addSegmentPane(java.lang.String name,
                                         Segment inSeg,
                                         javax.swing.JTabbedPane inTabbedPane,
                                         javax.swing.tree.TreePath tp)
shows a single segment

Parameters:
name - String Segment name
inSeg - Segment
inTabbedPane - tabbed pane where contents shown
tp - TreePath to find container in tree

notifiyClose

public void notifiyClose()
listener for when child dialogs close this dialog closes too


validateTables

public boolean validateTables()
Tests all object hanging off of tree. Starts with tables and moves inwardlly

Returns:
boolean to indicate true (it's okay) or false

valueChanged

public void valueChanged(javax.swing.event.TreeSelectionEvent tse)
Tree valueChanged handler, used to reset tree objects

Specified by:
valueChanged in interface javax.swing.event.TreeSelectionListener
Parameters:
tse - treeselectionevent

nodeShow

public void nodeShow(java.awt.Component inNode)

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent ce)
TabbedPane stateChanged handler, used to reset tree objects

Specified by:
stateChanged in interface javax.swing.event.ChangeListener
Parameters:
ce - changedEvent

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
Swing method to handle action events

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
ae - event object

main

public static void main(java.lang.String[] arg)
allows starting as a java application

Parameters:
arg - basic string array required by all mains.

Open Business Objects for EDI
v3.5.2


OBOE is a trademark or registered trademark of American Coders, Ltd. in the US and other countries.
Copyright 1999-2004 American Coders, Ltd.
POB 97462
Raleigh NC 27624 USA
All Rights Reserved.