|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IComponent
This interface defines a gui component.
Method Summary | |
---|---|
boolean |
click(int x,
int y)
Handle a click event. |
void |
drag(int x,
int y)
Handle a drag event. |
int |
getHeight()
Retrieve the current height. |
int |
getLayout()
Retrieve the layout. |
int |
getWidth()
Retrieve the current width. |
void |
paint(javax.microedition.lcdui.Graphics g)
Paint the component. |
void |
resize(int width,
int height)
Request a component resize. |
void |
unclick(int x,
int y)
Handle an unclick event. |
Method Detail |
---|
void paint(javax.microedition.lcdui.Graphics g)
g
- the graphicsvoid resize(int width, int height)
width
- the new widthheight
- the new heightint getLayout()
Supported layouts are :
int getWidth()
int getHeight()
boolean click(int x, int y)
x
- the pointer abscissay
- the pointer ordinate
void drag(int x, int y)
The component must have claimed focus upon click in order to receive this event.
x
- the pointer abscissay
- the pointer ordinatevoid unclick(int x, int y)
The component must have claimed focus upon click ini order to receive this event.
x
- the pointer abscissay
- the pointer ordinate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |