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

Class marimba.gui.ListWidget

java.lang.Object
   |
   +----marimba.gui.Widget
           |
           +----marimba.gui.ContainerWidget
                   |
                   +----marimba.gui.ScrollingContainerWidget
                           |
                           +----marimba.gui.ListWidget

public class ListWidget
extends ScrollingContainerWidget
implements WidgetLayoutMgr
List widget.
Version:
1.42, 12/09/96
Author:
Arthur van Hoff, Klaas Waslander

Variable Index

 o exclusive
If a ListWidget is exclusive and it has ListItemWidgets, then more ListItemWidgets can be selected at the same time, because ListItems check this property in their List.
 o hdrFont
The font that has to be used for the header.

Constructor Index

 o ListWidget()
Constructor.

Method Index

 o addColumn(String, int)
Add a column.
 o addItem(int, Widget)
Add an item at a given position
 o addItem(Widget)
Add an item.
 o addSorted(ListItemWidget)
Add an item in a sorted list, they key of the item is used to determined the sorting order.
 o clear()
Clear all items.
 o clearSelection()
Select an item.
 o countItems()
Count how many items there are in this list
 o deleteItem(int)
Delete an item
 o deleteItem(Widget)
Delete an item
 o getHdrFont()
Get the font for the header.
 o getIntegerValue()
Get the index of the first selected item.
 o getItem(int)
Get item by index
 o getItem(String)
Get item by key.
 o getProperties(PropertyList)
Get the properties of this widget.
 o getValue()
Get the index of the first selected item.
 o indexOf(ListItemWidget)
Get the index of an item.
 o isExclusive()
Check if this ListWidget is exlusive.
 o layout()
Layout the widget itself.
 o layout(Widget)
Layout the content.
 o newContent()
Allocate the content.
 o paint(Graphics, int, int, int, int)
Paint the widget.
 o selectedItem()
Get the first selected item.
 o setColumns(String)
Add columns
 o setExclusive(boolean)
Set the ListWidget to be exclusive or not.
 o setHdrFont(Font)
Set the font for the header.
 o setProperties(PropertyList)
Set the properties of this widget.
 o setValue(ListItemWidget)
Select an item.
 o setValue(Object)
Select an item.

Variables

 o exclusive
  public boolean exclusive
If a ListWidget is exclusive and it has ListItemWidgets, then more ListItemWidgets can be selected at the same time, because ListItems check this property in their List.
See Also:
isExclusive, setExclusive
 o hdrFont
  public Font hdrFont
The font that has to be used for the header.
See Also:
getHdrFont, setHdrFont

Constructors

 o ListWidget
  public ListWidget()
Constructor.

Methods

 o getProperties
  public void getProperties(PropertyList list)
Get the properties of this widget.
Overrides:
getProperties in class ScrollingContainerWidget
 o setProperties
  public void setProperties(PropertyList list)
Set the properties of this widget.
Overrides:
setProperties in class ScrollingContainerWidget
 o isExclusive
  public boolean isExclusive()
Check if this ListWidget is exlusive.
See Also:
exclusive
 o setExclusive
  public void setExclusive(boolean exclusive)
Set the ListWidget to be exclusive or not.
See Also:
exclusive
 o getHdrFont
  public Font getHdrFont()
Get the font for the header.
See Also:
hdrFont
 o setHdrFont
  public void setHdrFont(Font hdrFont)
Set the font for the header.
See Also:
hdrFont
 o newContent
  public Widget newContent()
Allocate the content.
Overrides:
newContent in class ScrollingContainerWidget
 o setColumns
  public synchronized void setColumns(String str)
Add columns
 o addColumn
  public synchronized void addColumn(String lbl,
                                     int width)
Add a column.
 o addItem
  public void addItem(Widget item)
Add an item.
 o addItem
  public void addItem(int n,
                      Widget item)
Add an item at a given position
 o addSorted
  public void addSorted(ListItemWidget item)
Add an item in a sorted list, they key of the item is used to determined the sorting order.
 o deleteItem
  public void deleteItem(Widget item)
Delete an item
 o deleteItem
  public void deleteItem(int i)
Delete an item
 o getIntegerValue
  public int getIntegerValue()
Get the index of the first selected item.
 o getValue
  public Object getValue()
Get the index of the first selected item.
Overrides:
getValue in class Widget
 o setValue
  public void setValue(Object value)
Select an item.
Overrides:
setValue in class Widget
 o setValue
  public void setValue(ListItemWidget item)
Select an item.
 o getItem
  public ListItemWidget getItem(String key)
Get item by key.
 o getItem
  public ListItemWidget getItem(int i)
Get item by index
 o indexOf
  public int indexOf(ListItemWidget item)
Get the index of an item.
 o selectedItem
  public ListItemWidget selectedItem()
Get the first selected item.
 o countItems
  public int countItems()
Count how many items there are in this list
 o clearSelection
  public void clearSelection()
Select an item.
 o clear
  public void clear()
Clear all items.
 o layout
  public void layout()
Layout the widget itself.
Overrides:
layout in class ScrollingContainerWidget
 o layout
  public void layout(Widget w)
Layout the content.
 o paint
  public void paint(Graphics g,
                    int cx,
                    int cy,
                    int cw,
                    int ch)
Paint the widget.
Overrides:
paint in class Widget

All Packages  Class Hierarchy  This Package  Previous  Next  Index