Class marimba.gui.ListItemWidget
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class marimba.gui.ListItemWidget

java.lang.Object
   |
   +----marimba.gui.Widget
           |
           +----marimba.gui.ListItemWidget

public class ListItemWidget
extends Widget
An Item in a ListWidget. It takes care displaying multiple columns as described in the ListWidget.
Version:
1.29, 12/17/96
Author:
Arthur van Hoff, Klaas Waslander

Variable Index

 o selected
A ListItem can be selected.

Constructor Index

 o ListItemWidget()

Method Index

 o action()
The user has double clicked on this item.
 o destroy()
Destroy the item.
 o getColumnWidth(int)
Get the width of a given column.
 o getColumnX(int)
Get the X position of a given column.
 o getListWidget()
Get the ListWidget for this item.
 o handleEvent(Event)
Handle events.
 o handleEvent(Event, int)
Handle an event for a particular column.
 o init()
Initialize the item.
 o isSelected()
Check if this ListItem is selected.
 o key()
The key by which this widget is sorted.
 o paint(Graphics)
Paint the item and all of its columns.
 o paint(Graphics, int, int, int)
Draw a column of this item.
 o paintSelection(Graphics)
Paint the selection.
 o paramString(StringBuffer)
Debugging.
 o select()
Select this item.
 o select(boolean)
Select or unselect this item.

Variables

 o selected
  public boolean selected
A ListItem can be selected.
See Also:
isSelected, select

Constructors

 o ListItemWidget
  public ListItemWidget()

Methods

 o getListWidget
  public ListWidget getListWidget()
Get the ListWidget for this item.
 o getColumnX
  public int getColumnX(int col)
Get the X position of a given column.
 o getColumnWidth
  public int getColumnWidth(int col)
Get the width of a given column.
 o key
  public String key()
The key by which this widget is sorted.
 o isSelected
  public boolean isSelected()
Check if this ListItem is selected.
See Also:
selected
 o select
  public void select()
Select this item.
See Also:
selected
 o select
  public void select(boolean sel)
Select or unselect this item.
See Also:
selected
 o init
  public void init()
Initialize the item.
Overrides:
init in class Widget
 o destroy
  public void destroy()
Destroy the item.
Overrides:
destroy in class Widget
 o paint
  public void paint(Graphics g,
                    int col,
                    int x,
                    int y)
Draw a column of this item. The x,y position is the baseline on the left most edge of the item.
 o paintSelection
  public void paintSelection(Graphics g)
Paint the selection.
 o paint
  public void paint(Graphics g)
Paint the item and all of its columns.
Overrides:
paint in class Widget
 o handleEvent
  public boolean handleEvent(Event evt,
                             int col)
Handle an event for a particular column.
 o handleEvent
  public boolean handleEvent(Event evt)
Handle events.
Overrides:
handleEvent in class Widget
 o action
  public void action()
The user has double clicked on this item.
Overrides:
action in class Widget
 o paramString
  public void paramString(StringBuffer buf)
Debugging.
Overrides:
paramString in class Widget

All Packages  Class Hierarchy  This Package  Previous  Next  Index