amber.client.panel
Class PScrollPanel

java.lang.Object
  |
  +--amber.client.panel.BaseControl
        |
        +--amber.client.panel.BasePanel
              |
              +--amber.client.panel.PScrollPanel
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.ComponentListener, java.util.EventListener, java.awt.event.FocusListener, java.awt.event.ItemListener, java.awt.event.KeyListener, MbInterface, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, RContainer, java.awt.event.TextListener, java.awt.event.WindowListener

public class PScrollPanel
extends BasePanel

Extension to BasePanel which functions identically except that the panel implements a scroll pane so that the internal panel dimensions can exceed the external ones.

See Also:
ApplicationHandler, ComponentHandler, BaseComponent, BaseControl, BasePanel

Field Summary
protected  java.awt.BorderLayout bL
           
protected  java.awt.ScrollPane scroller
           
 
Fields inherited from class amber.client.panel.BasePanel
components, coordinates, panel, xyLayout
 
Fields inherited from class amber.client.panel.BaseControl
dataDecoder, dataEncoder, encoderBytes, eventEnabled, mainEventHandler, nonVisualObject, panelParent, visualObject
 
Constructor Summary
PScrollPanel()
           
 
Method Summary
 void init(RContainer mainParent, int[] data, java.lang.String parameters)
          This is the main initialisation function for this class.
 void setComponentBounds(Packet packet)
          This function sets the location or size of the component.
 
Methods inherited from class amber.client.panel.BasePanel
addComponent, addComponentToPanel, addListeners, coordToString, createAndAddComponent, createArray, createObject, findById, getContainer, getIdFromInternalObject, internalProcessPacket, isMyId, parseParameters, processPacket, removeAllComponents, removeComponent, removeControl
 
Methods inherited from class amber.client.panel.BaseControl
actionPerformed, canAdd, componentHidden, componentMoved, componentResized, componentShown, createDataInput, displayMessage, findBaseComponent, focusGained, focusLost, forwardPacket, getDataInput, getId, getImage, getNonVisualObject, getParent, getVisualObject, isEventEnabled, itemStateChanged, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, setEnabled, setId, setMessageBoxReturn, setParent, setVisible, textValueChanged, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface amber.client.RContainer
findBaseComponent, forwardPacket, getId, getNonVisualObject, getVisualObject, setEnabled, setVisible
 

Field Detail

bL

protected java.awt.BorderLayout bL

scroller

protected java.awt.ScrollPane scroller
Constructor Detail

PScrollPanel

public PScrollPanel()
Method Detail

init

public void init(RContainer mainParent,
                 int[] data,
                 java.lang.String parameters)
This is the main initialisation function for this class. This is needed as the way we instantiate these classes mandates that only the default constructor can be used. For this reason we must have a separate initialisation function.
Overrides:
init in class BasePanel
Parameters:
mainParent - RContainer handle to the panel this is a component of.
data - int [6] containing information useful to the component in the order ID, eventMask, x, y, w, h.
parameters - String containing any required parameters separated by '|'

setComponentBounds

public void setComponentBounds(Packet packet)
This function sets the location or size of the component. Packet structure: int id, int type, int x (width), int y (height), (int width, int height) bracketed objects optional types which are dependant on the type field.
Overrides:
setComponentBounds in class BasePanel
Parameters:
packet - Packet containing the required information.


Copyright © 2002 Clearfield Research Ltd. All Rights Reserved.