GSC
Class SkandhaSceneList

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.List
              |
              +--GSC.SkandhaSceneList
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.ItemSelectable, java.awt.MenuContainer, java.io.Serializable

public class SkandhaSceneList
extends java.awt.List

The SkandhaSceneList is a scrollable List of all available skandha scenes saved in the publicly-accessible scenedir directory on-line. Some SkandhaGUIComponent subclasses use the list to open or reference a scene within the SkandhaBox

See Also:
Serialized Form

Inner classes inherited from class java.awt.List
java.awt.List.AccessibleAWTList
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent
 
Field Summary
static java.lang.String resultsdir
          The directory on-line where skandha graphics server images are dropped-off by the server
 
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
SkandhaSceneList(SkandhaUpdater su, Starter s, SkandhaBox sb)
          constructor.
 
Method Summary
 void addComponents()
          Retrieves a list of available scenes and loads each scene name as an item in the scene list.
 boolean handleEvent(java.awt.Event evt)
          Handles mouse events within the scene list
 void loadNewScene(java.lang.String filename)
          Creates a new image through the SkandhaUpdater from the selected scene in the list and updates the image in the SkandhaOutput control
 void removeComponent(int index)
          Removes a component from the scene list based on its relative index in the list
 
Methods inherited from class java.awt.List
add, add, addActionListener, addItem, addItem, addItemListener, addNotify, allowsMultipleSelections, clear, countItems, delItem, delItems, deselect, getAccessibleContext, getItem, getItemCount, getItems, getListeners, getMinimumSize, getMinimumSize, getPreferredSize, getPreferredSize, getRows, getSelectedIndex, getSelectedIndexes, getSelectedItem, getSelectedItems, getSelectedObjects, getVisibleIndex, isIndexSelected, isMultipleMode, isSelected, makeVisible, minimumSize, minimumSize, paramString, preferredSize, preferredSize, processActionEvent, processEvent, processItemEvent, remove, remove, removeActionListener, removeAll, removeItemListener, removeNotify, replaceItem, select, setMultipleMode, setMultipleSelections
 
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, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, postEvent, prepareImage, prepareImage, print, 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, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

resultsdir

public static java.lang.String resultsdir
The directory on-line where skandha graphics server images are dropped-off by the server
Constructor Detail

SkandhaSceneList

public SkandhaSceneList(SkandhaUpdater su,
                        Starter s,
                        SkandhaBox sb)
constructor.
Parameters:
su - a handle to a system SkandhaUpdater object
s - a handle to the starting applet or application
sb - a handle to the system SkandhaBox
Method Detail

addComponents

public void addComponents()
Retrieves a list of available scenes and loads each scene name as an item in the scene list.

removeComponent

public void removeComponent(int index)
Removes a component from the scene list based on its relative index in the list
Parameters:
index - the relative index of the item to remove from the top of the list

handleEvent

public boolean handleEvent(java.awt.Event evt)
Handles mouse events within the scene list
Overrides:
handleEvent in class java.awt.Component
Parameters:
evt - the event that needs handling

loadNewScene

public void loadNewScene(java.lang.String filename)
Creates a new image through the SkandhaUpdater from the selected scene in the list and updates the image in the SkandhaOutput control
Parameters:
filename - the name of the scene file to be loaded