uk.ac.cam.cl.whb21.iworkbook
Class ClientControllerApplet

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended byjava.applet.Applet
                  extended byorg.apache.xmlrpc.applet.XmlRpcApplet
                      extended byuk.ac.cam.cl.whb21.iworkbook.ClientControllerApplet
All Implemented Interfaces:
javax.accessibility.Accessible, AppletXmlRpcCaller, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class ClientControllerApplet
extends org.apache.xmlrpc.applet.XmlRpcApplet
implements AppletXmlRpcCaller

Performs XML-RPCs to the server. Treats the response object as a list of XML-RPCs the server is making to the client.

Author:
William Billingsley
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
ClientControllerApplet()
           
 
Method Summary
 void actionCall(java.lang.String name, java.util.Vector arguments)
          Implements an XML-RPC call to the server where the server's return object is expected to be a set of XML-RPC calls.
 void init()
           
 java.lang.Object returnCall(java.lang.String name, java.util.Vector arguments)
          Implements an ordinary XML-RPC call to the server, expecting a return object back.
 void start()
           
 void testResponseCall(java.lang.String response)
          Does not perform an XMLRPC, but behaves as if it has just received the response from an actionCall.
 
Methods inherited from class org.apache.xmlrpc.applet.XmlRpcApplet
execute, initClient, initClient, initClient
 
Methods inherited from class java.applet.Applet
destroy, getAccessibleContext, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, stop
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, 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, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClientControllerApplet

public ClientControllerApplet()
Method Detail

init

public void init()

start

public void start()

actionCall

public void actionCall(java.lang.String name,
                       java.util.Vector arguments)
Description copied from interface: AppletXmlRpcCaller
Implements an XML-RPC call to the server where the server's return object is expected to be a set of XML-RPC calls. The calling applet will not receive a return object. The class which implements AppletXmlRpcCaller will interpret the returned XML and make calls to applets accordingly (as if the XML was a list of XML-RPCs the server was making to the client).

Specified by:
actionCall in interface AppletXmlRpcCaller
Parameters:
name - - the name of the server function to call.
arguments - - the arguments to call the function with.

returnCall

public java.lang.Object returnCall(java.lang.String name,
                                   java.util.Vector arguments)
Description copied from interface: AppletXmlRpcCaller
Implements an ordinary XML-RPC call to the server, expecting a return object back.

Specified by:
returnCall in interface AppletXmlRpcCaller
Parameters:
name - - the name of the server function to call.
arguments - - the arguments to call the function with.
Returns:
the returned object.

testResponseCall

public void testResponseCall(java.lang.String response)
Description copied from interface: AppletXmlRpcCaller
Does not perform an XMLRPC, but behaves as if it has just received the response from an actionCall.

Specified by:
testResponseCall in interface AppletXmlRpcCaller
Parameters:
response - - the faked up response