|
Ascent Phase Corp. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--Canvas
|
+--org.ascentphase.suit.Panel
A container that holds one or more widgets internally to be displayed.
| Field Summary | |
protected boolean |
clearReq
|
| Constructor Summary | |
Panel()
|
|
| Method Summary | |
void |
add(org.ascentphase.suit.Widget w,
int x,
int y)
Adds a widget to the Panel at the given coordinate. |
void |
add(org.ascentphase.suit.Widget w,
int x,
int y,
boolean focus)
Adds a widget to the Panel at the given coordinate and give the widget initial focus. |
protected void |
handleCommandEvent(Command evt)
Notifies any listeners when a Command event occurs. |
protected void |
keyPressed(int keyCode)
Called when a key is pressed. |
protected void |
keyReleased(int keyCode)
Called when a key is released. |
protected void |
keyRepeated(int keyCode)
Called when a key is repeated (held down). |
void |
paint(Graphics g)
paint |
protected void |
pointerDragged(int x,
int y)
Called when the pointer is dragged. |
protected void |
pointerPressed(int x,
int y)
Called when the pointer is pressed. |
protected void |
pointerReleased(int x,
int y)
Called when the pointer is released. |
void |
remove(org.ascentphase.suit.Widget w)
Removes the given widget from the Panel. |
void |
setCommandListener(CommandListener l)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected boolean clearReq
| Constructor Detail |
public Panel()
| Method Detail |
public void add(org.ascentphase.suit.Widget w,
int x,
int y)
w - the Widget to add.x - the x coordinate on the screen.y - the y coordinate on the screen.
public void add(org.ascentphase.suit.Widget w,
int x,
int y,
boolean focus)
w - the Widget to add.x - the x coordinate on the screen.y - the y coordinate on the screen.focus - true to give the Widget initial focus.public void remove(org.ascentphase.suit.Widget w)
w - the widget to remove.public void paint(Graphics g)
protected void keyPressed(int keyCode)
protected void keyReleased(int keyCode)
protected void keyRepeated(int keyCode)
protected void pointerDragged(int x,
int y)
protected void pointerPressed(int x,
int y)
protected void pointerReleased(int x,
int y)
public void setCommandListener(CommandListener l)
protected void handleCommandEvent(Command evt)
evt - the Command evt to pass to listeners.
|
Ascent Phase Corp. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||