GSC
Class SkandhaGUICatalog

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

public class SkandhaGUICatalog
extends java.awt.List

The SkandhaGUICatalog is a List-based scrollable catalog of available SkandhaGUIComponents. A user clicks to the immediate left of a list item to add one of that component to the SkandhaBox. A user clicks in the list itself to see the available documentation related to the component. The list of available components is created by the name of all Java source files in the GSC.Components package.

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
 
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
SkandhaGUICatalog()
          constructor.
 
Method Summary
 void addComponents()
          Retrieves a list of components in the GSC.Components package and adds each to the catalog list.
 void getDocumentation(java.lang.String component)
          Gets documentation for a component listed in the catalog list and shows it visually in the documentation frame
 boolean handleEvent(java.awt.Event evt)
          Handles mouse events within the catalog list
 void removeComponent(int index)
          Removes a component from the catalog 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
 

Constructor Detail

SkandhaGUICatalog

public SkandhaGUICatalog()
constructor.
Method Detail

addComponents

public void addComponents()
Retrieves a list of components in the GSC.Components package and adds each to the catalog list.

removeComponent

public void removeComponent(int index)
Removes a component from the catalog 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 catalog list
Overrides:
handleEvent in class java.awt.Component
Parameters:
evt - the event that needs handling

getDocumentation

public void getDocumentation(java.lang.String component)
Gets documentation for a component listed in the catalog list and shows it visually in the documentation frame
Parameters:
component - the name of the component to be documented