uk.ac.cam.cl.whb21.interactionArea
Class InteractionAreaApplet

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended byjava.applet.Applet
                  extended byuk.ac.cam.cl.whb21.interactionArea.InteractionAreaApplet
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class InteractionAreaApplet
extends java.applet.Applet

Java controller for the interaction area. The following applet parameters are accepted:

This name should be the names of the applet (as specified by name="..." in the applet tag), not the class name of the applet.

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
InteractionAreaApplet()
          The only constructor
 
Method Summary
 void clearStudentText()
          Clears the last said student text (by removing the text from the IA_StudentTextDiv div element).
 void clearSystemHtml()
          Clears the IA_SystemHtmlDiv div element.
 void clearSystemText()
          Clears the last said system text (by removing the text from the IA_SystemTextDiv div element).
 void init()
          Called by the browser at applet initialisation time
 void serverCall(java.lang.String name, java.util.Vector args)
          If we have a server, calls actionCall on it with the same arguments.
 void showStudentText(java.lang.String s)
          Shows student text as having been "said" (by inserting the text into the IA_StudentTextDiv div element) and appends the same text to the log.
 void showSystemHtml(java.lang.String s)
          Shows some HTML in the IA_SystemHtmlDiv element
 void showSystemText(java.lang.String s)
          Shows system text as having been "said" (by inserting the text into the IA_SystemTextDiv div element) and appends the same text to the log.
 void start()
          Called by the browser at applet start time
 
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

InteractionAreaApplet

public InteractionAreaApplet()
The only constructor

Method Detail

init

public void init()
Called by the browser at applet initialisation time


start

public void start()
Called by the browser at applet start time


clearStudentText

public void clearStudentText()
Clears the last said student text (by removing the text from the IA_StudentTextDiv div element).


clearSystemText

public void clearSystemText()
Clears the last said system text (by removing the text from the IA_SystemTextDiv div element).


showStudentText

public void showStudentText(java.lang.String s)
Shows student text as having been "said" (by inserting the text into the IA_StudentTextDiv div element) and appends the same text to the log.

Parameters:
s - text to show

showSystemText

public void showSystemText(java.lang.String s)
Shows system text as having been "said" (by inserting the text into the IA_SystemTextDiv div element) and appends the same text to the log.

Parameters:
s - text to show

showSystemHtml

public void showSystemHtml(java.lang.String s)
Shows some HTML in the IA_SystemHtmlDiv element

Parameters:
s - the html to show

clearSystemHtml

public void clearSystemHtml()
Clears the IA_SystemHtmlDiv div element.


serverCall

public void serverCall(java.lang.String name,
                       java.util.Vector args)
If we have a server, calls actionCall on it with the same arguments.

Parameters:
name -
args -