gr.bluevibe.fire.components
Class ListBox

java.lang.Object
  extended bygr.bluevibe.fire.components.Component
      extended bygr.bluevibe.fire.components.ListBox

public class ListBox
extends Component


Constructor Summary
ListBox()
           
 
Method Summary
 void add(ListElement el)
           
 java.lang.Integer getBgColor()
           
 javax.microedition.lcdui.Image getBullet()
           
 java.util.Vector getCheckedElements()
           
 int getColor()
           
 java.lang.Integer getFilled()
           
 javax.microedition.lcdui.Font getFont()
           
 java.lang.String getId()
           
 javax.microedition.lcdui.Image getSelectedBullet()
           
 boolean isBorder()
           
 boolean isMultiple()
           
 boolean isTraversable()
          If a component is traversable it can have commands associated with it and receive key and tap events (and vice versa).
 boolean keyEvent(int key)
          Key events are propagated from FireScreen down to the components of the panel or the popup that contains them.
 void paint(javax.microedition.lcdui.Graphics g)
          Paint is called by the container of the component to allow it to draw itself on Graphics g The drawable area on g is (0,0,width,height).
 boolean pointerEvent(int x, int y)
           
 void setBgColor(java.lang.Integer bgColor)
           
 void setBorder(boolean border)
           
 void setBullet(javax.microedition.lcdui.Image bullet)
           
 void setColor(int color)
           
 void setFilled(java.lang.Integer filled)
           
 void setFont(javax.microedition.lcdui.Font font)
           
 void setId(java.lang.String id)
           
 void setMultiple(boolean multiple)
           
 void setSelectedBullet(javax.microedition.lcdui.Image selectedBullet)
           
 void validate()
          A validate event requests from the component to recalculate its internal properties suck as width/height etc.
 
Methods inherited from class gr.bluevibe.fire.components.Component
addCommand, clock, equals, fireValidateEvent, generateEvent, getHeight, getMinHeight, getMinWidth, getWidth, isAnimated, isSelected, setCommandListener, setContainerCurrent, setCurrent, setHeight, setMinHeight, setMinWidth, setSelected, setWidth
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListBox

public ListBox()
Method Detail

add

public void add(ListElement el)

paint

public void paint(javax.microedition.lcdui.Graphics g)
Description copied from class: Component
Paint is called by the container of the component to allow it to draw itself on Graphics g The drawable area on g is (0,0,width,height).

Overrides:
paint in class Component
Parameters:
g - the area on witch the component will draw it self.

validate

public void validate()
Description copied from class: Component
A validate event requests from the component to recalculate its internal properties suck as width/height etc.

Overrides:
validate in class Component

pointerEvent

public boolean pointerEvent(int x,
                            int y)
Overrides:
pointerEvent in class Component

keyEvent

public boolean keyEvent(int key)
Description copied from class: Component
Key events are propagated from FireScreen down to the components of the panel or the popup that contains them. If a component if not traversable it will not recieve key events.

Overrides:
keyEvent in class Component
Parameters:
key -
Returns:

isBorder

public boolean isBorder()

setBorder

public void setBorder(boolean border)

getColor

public int getColor()

setColor

public void setColor(int color)

getFilled

public java.lang.Integer getFilled()

setFilled

public void setFilled(java.lang.Integer filled)

getFont

public javax.microedition.lcdui.Font getFont()

setFont

public void setFont(javax.microedition.lcdui.Font font)

isMultiple

public boolean isMultiple()

setMultiple

public void setMultiple(boolean multiple)

getBgColor

public java.lang.Integer getBgColor()

getCheckedElements

public java.util.Vector getCheckedElements()

setBgColor

public void setBgColor(java.lang.Integer bgColor)

getId

public java.lang.String getId()

setId

public void setId(java.lang.String id)

isTraversable

public boolean isTraversable()
Description copied from class: Component
If a component is traversable it can have commands associated with it and receive key and tap events (and vice versa).

Overrides:
isTraversable in class Component
Returns:

getBullet

public javax.microedition.lcdui.Image getBullet()

setBullet

public void setBullet(javax.microedition.lcdui.Image bullet)

getSelectedBullet

public javax.microedition.lcdui.Image getSelectedBullet()

setSelectedBullet

public void setSelectedBullet(javax.microedition.lcdui.Image selectedBullet)