infosapient.ui
Class InfoSapientServerApplet

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--javax.swing.JApplet
                                |
                                +--infosapient.ui.InfoSapientServerApplet

public class InfoSapientServerApplet
extends javax.swing.JApplet

Creation date: (04/03/01 1:53:45 PM)

Version:
$Revision: 1.1.1.1 $
See Also:
Serialized Form

Inner Class Summary
(package private)  class InfoSapientServerApplet.actionListener
          invoked when a component generates an ActionEvent.
(package private)  class InfoSapientServerApplet.windowhandler
           
 
Inner classes inherited from class javax.swing.JApplet
javax.swing.JApplet.AccessibleJApplet
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AWTTreeLock
 
Field Summary
private  byte[] buf
           
(package private) static int BUF_SIZ
           
private  java.lang.String host
           
private  java.io.BufferedInputStream is
           
private  int iteration
           
private  InfoSapientServerTablePanel ivjattribListPane
           
private  javax.swing.JLabel ivjhostLabelBean
           
private  javax.swing.JTextField ivjhostNameFld
           
private  javax.swing.JPanel ivjJAppletContentPane
           
private  javax.swing.JTextPane ivjJEditorPane1
           
private  javax.swing.JLabel ivjJLabel1
           
private  javax.swing.JLabel ivjJLabel2
           
private  javax.swing.JLabel ivjJLabel3
           
private  javax.swing.JPanel ivjJPanel1
           
private  javax.swing.JScrollPane ivjJScrollPane1
           
private  javax.swing.JTextField ivjkbNameFld
           
private  javax.swing.JTextField ivjportNumberFld
           
private  javax.swing.JButton ivjresetBtn
           
private  javax.swing.JCheckBox ivjRunTime
           
private  javax.swing.JLabel ivjSPLabel
           
private  javax.swing.JButton ivjsubmitBtn
           
private  java.lang.String kbName
           
private  java.io.PrintStream os
           
private  int PORT
           
private  java.io.PrintWriter pw
           
private  boolean running
           
private  java.util.Properties runParameters
           
private  java.net.Socket soc
           
private  long start
           
private  long stop
           
 
Fields inherited from class javax.swing.JApplet
accessibleContext, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.applet.Applet
serialVersionUID, stub
 
Fields inherited from class java.awt.Panel
base, nameCounter, serialVersionUID
 
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
InfoSapientServerApplet()
           
 
Method Summary
private  boolean connect()
          Attempt to connect this applet to the rules server, given the host and port number.
private  boolean disconnect()
          Disconnect from the rules server
private  void doReset()
          Insert the method's description here.
private  void doSubmit()
          Validate all input and submit it to the specified host at specified port.
private  void execute()
          Connect to the specified rule server, write runParameters to the server, wait for response, close when response received.
 java.lang.String getAppletInfo()
          Gets the applet information.
private  InfoSapientServerTablePanel getattribListPane()
          Return the attribListPane property value.
private  javax.swing.JLabel gethostLabelBean()
          Return the hostLabelBean property value.
private  javax.swing.JTextField gethostNameFld()
          Return the hostNameFld property value.
private  javax.swing.JPanel getJAppletContentPane()
          Return the JAppletContentPane property value.
private  javax.swing.JLabel getJLabel1()
          Return the JLabel1 property value.
private  javax.swing.JLabel getJLabel2()
          Return the JLabel2 property value.
private  javax.swing.JLabel getJLabel3()
          Return the JLabel3 property value.
private  javax.swing.JPanel getJPanel1()
          Return the JPanel1 property value.
private  javax.swing.JScrollPane getJScrollPane1()
          Return the JScrollPane1 property value.
private  javax.swing.JTextField getkbNameFld()
          Return the JTextField1 property value.
private  javax.swing.JTextField getportNumberFld()
          Return the portNumberFld property value.
private  java.io.StringReader getReader(java.lang.String s)
          Insert the method's description here.
private  javax.swing.JButton getresetBtn()
          Return the resetBtn property value.
private  javax.swing.JCheckBox getRunTime()
          Return the RunTime property value.
private  javax.swing.JLabel getSPLabel()
          Return the SPLabel property value.
private  javax.swing.JButton getsubmitBtn()
          Return the submitBtn property value.
private  javax.swing.JTextPane getTextPane()
          Return the JEditorPane1 property value.
private  java.io.StringWriter getWriter()
          Insert the method's description here.
private  void handleErrorMessage(java.lang.String msg)
          Insert the method's description here.
private  void handleException(java.lang.Throwable exception)
          Called whenever the part throws an exception.
 void init()
          Handle the Applet init method.
static void main(java.lang.String[] args)
          main entrypoint - starts the part when it is run as an application
private  void writeParameters()
          Insert the method's description here.
 
Methods inherited from class javax.swing.JApplet
addImpl, createRootPane, createRootPaneException, getAccessibleContext, getContentPane, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, processKeyEvent, remove, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.applet.Applet
destroy, getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop
 
Methods inherited from class java.awt.Panel
, addNotify, constructComponentName
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyOrientation, countComponents, deliverEvent, dispatchEventImpl, dispatchEventToSelf, doLayout, eventEnabled, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getCursorTarget, getInsets, getLayout, getMaximumSize, getMinimumSize, getMouseEventTarget, getPreferredSize, getWindow, initIDs, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPrint, list, list, locate, minimumSize, nextFocus, paint, paintComponents, postProcessKeyEvent, postsOldMouseEvents, preferredSize, preProcessKeyEvent, print, printComponents, printOneComponent, processContainerEvent, processEvent, proxyEnableEvents, proxyRequestFocus, readObject, remove, removeAll, removeContainerListener, removeNotify, setCursor, setFocusOwner, setFont, transferFocus, updateCursor, validate, validateTree, writeObject
 
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, getInputContext, getInputMethodRequests, getIntrinsicCursor, getLocation, getLocation, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkit, getToolkitImpl, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processInputMethodEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

BUF_SIZ

static final int BUF_SIZ

ivjJAppletContentPane

private javax.swing.JPanel ivjJAppletContentPane

ivjattribListPane

private InfoSapientServerTablePanel ivjattribListPane

ivjhostLabelBean

private javax.swing.JLabel ivjhostLabelBean

ivjJLabel1

private javax.swing.JLabel ivjJLabel1

ivjJPanel1

private javax.swing.JPanel ivjJPanel1

ivjsubmitBtn

private javax.swing.JButton ivjsubmitBtn

ivjJScrollPane1

private javax.swing.JScrollPane ivjJScrollPane1

ivjhostNameFld

private javax.swing.JTextField ivjhostNameFld

ivjJLabel2

private javax.swing.JLabel ivjJLabel2

ivjportNumberFld

private javax.swing.JTextField ivjportNumberFld

ivjresetBtn

private javax.swing.JButton ivjresetBtn

ivjSPLabel

private javax.swing.JLabel ivjSPLabel

ivjJEditorPane1

private javax.swing.JTextPane ivjJEditorPane1

ivjJLabel3

private javax.swing.JLabel ivjJLabel3

ivjkbNameFld

private javax.swing.JTextField ivjkbNameFld

soc

private java.net.Socket soc

host

private java.lang.String host

PORT

private int PORT

running

private boolean running

runParameters

private java.util.Properties runParameters

kbName

private java.lang.String kbName

ivjRunTime

private javax.swing.JCheckBox ivjRunTime

is

private java.io.BufferedInputStream is

os

private java.io.PrintStream os

pw

private java.io.PrintWriter pw

buf

private byte[] buf

iteration

private int iteration

start

private long start

stop

private long stop
Constructor Detail

InfoSapientServerApplet

public InfoSapientServerApplet()
Method Detail

connect

private boolean connect()
Attempt to connect this applet to the rules server, given the host and port number.
Returns:
boolean - true if successful

disconnect

private boolean disconnect()
Disconnect from the rules server
Returns:
boolean - true if unsuccessful (ie.. still connected)

doReset

private void doReset()
Insert the method's description here. Creation date: (04/05/01 12:04:42 PM)

doSubmit

private void doSubmit()
Validate all input and submit it to the specified host at specified port. Creation date: (04/05/01 12:04:26 PM)

execute

private void execute()
Connect to the specified rule server, write runParameters to the server, wait for response, close when response received. Creation date: (04/05/01 3:21:25 PM)

getAppletInfo

public java.lang.String getAppletInfo()
Gets the applet information.
Overrides:
getAppletInfo in class java.applet.Applet
Returns:
java.lang.String

getattribListPane

private InfoSapientServerTablePanel getattribListPane()
Return the attribListPane property value.
Returns:
com.ibm.fzy.ui.InfoSapientServerTablePanel

gethostLabelBean

private javax.swing.JLabel gethostLabelBean()
Return the hostLabelBean property value.
Returns:
javax.swing.JLabel

gethostNameFld

private javax.swing.JTextField gethostNameFld()
Return the hostNameFld property value.
Returns:
javax.swing.JTextField

getJAppletContentPane

private javax.swing.JPanel getJAppletContentPane()
Return the JAppletContentPane property value.
Returns:
javax.swing.JPanel

getJLabel1

private javax.swing.JLabel getJLabel1()
Return the JLabel1 property value.
Returns:
javax.swing.JLabel

getJLabel2

private javax.swing.JLabel getJLabel2()
Return the JLabel2 property value.
Returns:
javax.swing.JLabel

getJLabel3

private javax.swing.JLabel getJLabel3()
Return the JLabel3 property value.
Returns:
javax.swing.JLabel

getJPanel1

private javax.swing.JPanel getJPanel1()
Return the JPanel1 property value.
Returns:
javax.swing.JPanel

getJScrollPane1

private javax.swing.JScrollPane getJScrollPane1()
Return the JScrollPane1 property value.
Returns:
javax.swing.JScrollPane

getkbNameFld

private javax.swing.JTextField getkbNameFld()
Return the JTextField1 property value.
Returns:
javax.swing.JTextField

getportNumberFld

private javax.swing.JTextField getportNumberFld()
Return the portNumberFld property value.
Returns:
javax.swing.JTextField

getReader

private java.io.StringReader getReader(java.lang.String s)
Insert the method's description here. Creation date: (04/05/01 4:34:22 PM)
Parameters:
s - java.lang.String
Returns:
java.io.StringReader

getresetBtn

private javax.swing.JButton getresetBtn()
Return the resetBtn property value.
Returns:
javax.swing.JButton

getRunTime

private javax.swing.JCheckBox getRunTime()
Return the RunTime property value.
Returns:
javax.swing.JCheckBox

getSPLabel

private javax.swing.JLabel getSPLabel()
Return the SPLabel property value.
Returns:
javax.swing.JLabel

getsubmitBtn

private javax.swing.JButton getsubmitBtn()
Return the submitBtn property value.
Returns:
javax.swing.JButton

getTextPane

private javax.swing.JTextPane getTextPane()
Return the JEditorPane1 property value.
Returns:
javax.swing.JEditorPane

getWriter

private java.io.StringWriter getWriter()
Insert the method's description here. Creation date: (04/05/01 4:44:36 PM)
Returns:
java.io.StringWriter

handleErrorMessage

private void handleErrorMessage(java.lang.String msg)
Insert the method's description here. Creation date: (04/05/01 11:26:19 AM)
Parameters:
msg - java.lang.String

handleException

private void handleException(java.lang.Throwable exception)
Called whenever the part throws an exception.
Parameters:
exception - java.lang.Throwable

init

public void init()
Handle the Applet init method.
Overrides:
init in class java.applet.Applet

main

public static void main(java.lang.String[] args)
main entrypoint - starts the part when it is run as an application
Parameters:
args - java.lang.String[]

writeParameters

private void writeParameters()
                      throws java.io.IOException
Insert the method's description here. Creation date: (04/05/01 4:07:13 PM)

License to use this program is provided under the TERMS OF THE COMMON PUBLIC LICENSE 0.5. ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.

Copyright (c) 2001, Workplace Performance Tools, All Rights Reserved