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