Class sgraphics.widget.ListGlyph
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sgraphics.widget.ListGlyph

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.List
                   |
                   +----sgraphics.widget.ListGlyph

public class ListGlyph
extends List
implements Viewer, Widget, Glyph
A class that allows an awt list to be used as a glyph.

Constructor Index

 o ListGlyph()
Creates a new scrolling list initialized with no visible Lines or multiple selections.
 o ListGlyph(int, boolean)
Creates a new scrolling list initialized with the specified number of visible lines and a boolean stating whether multiple selections are allowed or not.

Method Index

 o allocate(Allocation)
 o append(Glyph)
 o body()
 o count()
 o disconnected()
 o draw(Painter)
 o empty()
 o getChild(int)
 o getParentGlyph()
 o getSgraphicsAdapter()
 o grab(Viewer)
 o handleEvent(GraphicsEvent)
 o needRedraw()
 o needRedraw(Area)
 o needResize()
 o pick(Picker)
 o prepend(Glyph)
 o processPick(Picker, GraphicsEvent)
 o removeCallback()
 o replace(int, Glyph)
 o requirements()
 o setBody(Glyph)
 o setCallback(ViewerCallback)
 o setParent(Glyph)
 o swap(int, int)
 o ungrab()

Constructors

 o ListGlyph
  public ListGlyph()
Creates a new scrolling list initialized with no visible Lines or multiple selections.
 o ListGlyph
  public ListGlyph(int rows,
                   boolean multipleSelections)
Creates a new scrolling list initialized with the specified number of visible lines and a boolean stating whether multiple selections are allowed or not.
Parameters:
rows - the number of items to show.
multipleSelections - if true then multiple selections are allowed.

Methods

 o disconnected
  public void disconnected()
 o requirements
  public Requirements requirements()
 o allocate
  public void allocate(Allocation allocation)
 o setParent
  public void setParent(Glyph parent)
 o getParentGlyph
  public Glyph getParentGlyph()
 o setCallback
  public void setCallback(ViewerCallback callback)
 o removeCallback
  public void removeCallback()
 o pick
  public void pick(Picker pick)
 o processPick
  public boolean processPick(Picker pick,
                             GraphicsEvent event)
 o handleEvent
  public boolean handleEvent(GraphicsEvent event)
 o body
  public Glyph body()
 o setBody
  public void setBody(Glyph body)
 o append
  public void append(Glyph glyph)
 o prepend
  public void prepend(Glyph glyph)
 o replace
  public void replace(int position,
                      Glyph glyph)
 o swap
  public void swap(int position1,
                   int position2)
 o getChild
  public Glyph getChild(int pos)
 o empty
  public void empty()
 o count
  public int count()
 o grab
  public void grab(Viewer target)
 o ungrab
  public void ungrab()
 o needRedraw
  public void needRedraw()
 o needRedraw
  public void needRedraw(Area area)
 o needResize
  public void needResize()
 o draw
  public void draw(Painter painter)
 o getSgraphicsAdapter
  public SgraphicsAdapter getSgraphicsAdapter()

All Packages  Class Hierarchy  This Package  Previous  Next  Index