|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgr.bluevibe.fire.components.Component
Fire Components are pretty much the same as Components in j2se. Every component has a paint method and it is expected to draw its contents inside a rectangle of given width/height. A component can have commands associated with it.
Constructor Summary | |
Component()
|
Method Summary | |
void |
addCommand(javax.microedition.lcdui.Command c)
Add a command to the components. |
boolean |
clock()
Animated components receive clock events in order to update their animation. |
boolean |
equals(java.lang.Object o)
|
protected void |
fireValidateEvent()
|
protected boolean |
generateEvent()
|
int |
getHeight()
|
int |
getMinHeight()
|
int |
getMinWidth()
|
int |
getWidth()
|
boolean |
isAnimated()
If a componets states that it is animated, it will receive periodically clock events in order to update its animation. |
boolean |
isSelected()
|
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 |
setCommandListener(CommandListener listener)
|
protected void |
setContainerCurrent()
|
protected void |
setCurrent(javax.microedition.lcdui.Displayable d)
|
void |
setHeight(int height)
|
void |
setMinHeight(int minHeight)
|
void |
setMinWidth(int minWidth)
|
void |
setSelected(boolean v)
Sets this component on/off selected mode. |
void |
setWidth(int width)
|
void |
validate()
A validate event requests from the component to recalculate its internal properties suck as width/height etc. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Component()
Method Detail |
public void paint(javax.microedition.lcdui.Graphics g)
g
- the area on witch the component will draw it self.public boolean isTraversable()
public boolean isAnimated()
public boolean clock()
public void setSelected(boolean v)
v
- public boolean isSelected()
public boolean keyEvent(int key)
key
-
public boolean pointerEvent(int x, int y)
public void validate()
public int getHeight()
public void setHeight(int height)
public int getMinHeight()
public void setMinHeight(int minHeight)
public int getMinWidth()
public void setMinWidth(int minWidth)
public int getWidth()
public void setWidth(int width)
public void addCommand(javax.microedition.lcdui.Command c)
c
- public void setCommandListener(CommandListener listener)
protected final boolean generateEvent()
public boolean equals(java.lang.Object o)
protected void fireValidateEvent()
protected void setCurrent(javax.microedition.lcdui.Displayable d)
protected void setContainerCurrent()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |