amber.client
Class RLink

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--amber.client.RComponent
                                |
                                +--amber.client.RLink
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, BaseComponent, java.awt.event.ComponentListener, java.util.EventListener, java.awt.event.FocusListener, java.awt.image.ImageObserver, java.awt.event.ItemListener, java.awt.event.KeyListener, MbInterface, java.awt.MenuContainer, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.io.Serializable, java.awt.event.TextListener, java.awt.event.WindowListener

public class RLink
extends RComponent

Extension to RComponent that allows the remote system to send or get strings from the browser itself. The browser uses JavaScript to interface to this object.

See Also:
ApplicationHandler, ComponentHandler, RComponent, Serialized Form

Inner classes inherited from class java.applet.Applet
java.applet.Applet.AccessibleApplet
 
Inner classes inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Inner classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent
 
Fields inherited from class amber.client.RComponent
connectionModule, dataDecoder, dataEncoder, defaultFont, encoderBytes, eventEnabled, InvalidPageSubId, num, visualObject
 
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
RLink()
           
 
Method Summary
protected  void componentSetUp()
           
 int getClientInt()
          This function gets the client int.
 java.lang.String getClientString()
          This function gets the client string.
 int getServerInt()
          This function gets the server int.
 int getServerIntBlocking()
          This function gets the server int.
 java.lang.String getServerString()
          This function gets the server string.
 java.lang.String getServerStringBlocking()
          This function gets the server string.
 void init()
          Main initialisation function for the applet.
 void processPacket(Packet packet)
          This routine contains the logic to parse a packet and perform actions based on the packet's contents.
 void setClientInt(int value)
          This function sets the client int.
 void setClientString(java.lang.String value)
          This function sets the client string.
 void setVisible(boolean visible)
          This function is called to show or hide the control.
 
Methods inherited from class amber.client.RComponent
actionPerformed, addBaseListeners, componentHidden, componentMoved, componentResized, componentShown, createDataInput, displayMessage, displayUrl, enableSpecifiedEvents, findApplet, focusGained, focusLost, forwardPacket, getAppletInfo, getDataInput, getId, getParameter, getSessionId, isMyId, itemStateChanged, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, sendEvent, setEnabled, setId, setMessageBoxReturn, setSessionId, textValueChanged, waitForImage, waitForRegistration, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
 
Methods inherited from class java.applet.Applet
destroy, getAccessibleContext, 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
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, setLayout, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, 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, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface amber.client.BaseComponent
getAudioClip, getAudioClip, getCodeBase, getImage, getImage
 

Constructor Detail

RLink

public RLink()
Method Detail

init

public void init()
Description copied from class: RComponent
Main initialisation function for the applet.
Overrides:
init in class RComponent

componentSetUp

protected void componentSetUp()

processPacket

public void processPacket(Packet packet)
Description copied from class: RComponent
This routine contains the logic to parse a packet and perform actions based on the packet's contents. In this class, does basic common tasks that all applets must implement. Override in the derived classes to do the magic.
Overrides:
processPacket in class RComponent

setVisible

public void setVisible(boolean visible)
This function is called to show or hide the control.
Overrides:
setVisible in class RComponent
Following copied from class: amber.client.RComponent
Parameters:
visible - boolean true if the component is to be visible.

setClientString

public void setClientString(java.lang.String value)
This function sets the client string. Generates an event to tell the server that this has occurred.
Parameters:
value - String containing the data to set the client string to.

setClientInt

public void setClientInt(int value)
This function sets the client int. Generates an event to tell the server that this has occurred.
Parameters:
value - int containing the data to set the client int to.

getClientString

public java.lang.String getClientString()
This function gets the client string.
Returns:
String containing the data in the client string.

getClientInt

public int getClientInt()
This function gets the client int.
Returns:
int containing the data in the client int.

getServerString

public java.lang.String getServerString()
This function gets the server string.
Returns:
String containing the data in the server string.

getServerInt

public int getServerInt()
This function gets the server int.
Returns:
int containing the data in the server int.

getServerStringBlocking

public java.lang.String getServerStringBlocking()
This function gets the server string. Unlike the simple version this method sends a packet to the server and blocks waiting for a reply.
Returns:
String containing the data in the server string.

getServerIntBlocking

public int getServerIntBlocking()
This function gets the server int. Unlike the simple version this method sends a packet to the server and blocks waiting for a reply.
Returns:
int containing the data in the server int.


Copyright © 2002 Clearfield Research Ltd. All Rights Reserved.