brf.j2me.dynaworks.ui
Class ListItem

java.lang.Object
  |
  +--brf.j2me.dynaworks.ui.ListItem

public final class ListItem
extends java.lang.Object

A ListItem represents an item in a list structure.

Version:
1.0
Author:
Bernd R. Fix

Field Summary
private  int image
          Image number in an image list of the tree
private  java.lang.String text
          label of the item
 int userData
          data associated with the node.
 
Constructor Summary
ListItem(java.lang.String t, int img)
          Creates a ListItem.
 
Method Summary
 int getImage()
          get the image id of this node.
 java.lang.String getText()
          get the next of this node.
 void setImage(int img)
          sets the image number.
 void setText(java.lang.String t)
          sets the item text.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

text

private java.lang.String text
label of the item

image

private int image
Image number in an image list of the tree

userData

public int userData
data associated with the node.
Constructor Detail

ListItem

public ListItem(java.lang.String t,
                int img)
Creates a ListItem.

Parameters:
t - the text
inr - the image number in the image list
Method Detail

setText

public void setText(java.lang.String t)
sets the item text.

Parameters:
t - the text.

getText

public java.lang.String getText()
get the next of this node.

Returns:
the item text.

setImage

public void setImage(int img)
sets the image number.

Parameters:
img - the image number.

getImage

public int getImage()
get the image id of this node.

Returns:
the image number.