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
-
selected
- A ListItem can be selected.
-
ListItemWidget()
-
-
action()
- The user has double clicked on this item.
-
destroy()
- Destroy the item.
-
getColumnWidth(int)
- Get the width of a given column.
-
getColumnX(int)
- Get the X position of a given column.
-
getListWidget()
- Get the ListWidget for this item.
-
handleEvent(Event)
- Handle events.
-
handleEvent(Event, int)
- Handle an event for a particular column.
-
init()
- Initialize the item.
-
isSelected()
- Check if this ListItem is selected.
-
key()
- The key by which this widget is sorted.
-
paint(Graphics)
- Paint the item and all of its columns.
-
paint(Graphics, int, int, int)
- Draw a column of this item.
-
paintSelection(Graphics)
- Paint the selection.
-
paramString(StringBuffer)
- Debugging.
-
select()
- Select this item.
-
select(boolean)
- Select or unselect this item.
selected
public boolean selected
- A ListItem can be selected.
- See Also:
- isSelected, select
ListItemWidget
public ListItemWidget()
getListWidget
public ListWidget getListWidget()
- Get the ListWidget for this item.
getColumnX
public int getColumnX(int col)
- Get the X position of a given column.
getColumnWidth
public int getColumnWidth(int col)
- Get the width of a given column.
key
public String key()
- The key by which this widget is sorted.
isSelected
public boolean isSelected()
- Check if this ListItem is selected.
- See Also:
- selected
select
public void select()
- Select this item.
- See Also:
- selected
select
public void select(boolean sel)
- Select or unselect this item.
- See Also:
- selected
init
public void init()
- Initialize the item.
- Overrides:
- init in class Widget
destroy
public void destroy()
- Destroy the item.
- Overrides:
- destroy in class Widget
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.
paintSelection
public void paintSelection(Graphics g)
- Paint the selection.
paint
public void paint(Graphics g)
- Paint the item and all of its columns.
- Overrides:
- paint in class Widget
handleEvent
public boolean handleEvent(Event evt,
int col)
- Handle an event for a particular column.
handleEvent
public boolean handleEvent(Event evt)
- Handle events.
- Overrides:
- handleEvent in class Widget
action
public void action()
- The user has double clicked on this item.
- Overrides:
- action in class Widget
paramString
public void paramString(StringBuffer buf)
- Debugging.
- Overrides:
- paramString in class Widget
All Packages Class Hierarchy This Package Previous Next Index