|
jMobileCore toolkit | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jmobilecore.ui.core.Component com.jmobilecore.ui.core.SoftKeyBar
public class SoftKeyBar
The SoftKeyBar
is special Component
which represents
bottom line of the phone screen with names of soft keys.
This class contains set of methods that supports insertion/delition of soft keys
and execution of associated actions when softkey is pressed
Field Summary | |
---|---|
protected SoftKey |
centerSoftKey
The center positioned softkey |
protected SoftKey |
leftSoftKey
The left positioned softkey |
protected SoftKey |
rightSoftKey
The right positioned softkey |
Fields inherited from class com.jmobilecore.ui.core.Component |
---|
alignment, background, CENTER, focusable, focusedBackground, focusedForeground, font, foreground, height, isCompletelyVisible, isFocused, isVisible, LEFT, parentScreen, RIGHT, screenY, valid, width |
Constructor Summary | |
---|---|
SoftKeyBar()
Constructs a new softkey bar |
Method Summary | |
---|---|
void |
destructor()
Default destructor. |
protected boolean |
keyPressed(int keyCode)
Responds to a key press. |
void |
paint(javax.microedition.lcdui.Graphics g)
Paints the cursor for this component |
void |
removeSoftKey(int position)
Removes softkey from the softkey bar |
void |
setSoftKey(SoftKey softKey,
int position)
Sets softkey to the softkey bar If new soft key is null then action is equivalent to removeSoftKey
from specified position |
Methods inherited from class com.jmobilecore.ui.core.Component |
---|
getBackground, getFont, getForeground, getHeight, getWidth, invalidate, isFocusOwner, keyReleased, keyRepeated, paintBackground, pointerDragged, pointerPressed, pointerReleased, prepareForeground, releaseFocus, requestFocus, setFont, setHeight |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SoftKey centerSoftKey
protected SoftKey leftSoftKey
protected SoftKey rightSoftKey
Constructor Detail |
---|
public SoftKeyBar()
Method Detail |
---|
public void destructor()
destructor
in class Component
protected boolean keyPressed(int keyCode)
keyPressed
in class Component
keyCode
- The code for the key that was pressed.
true
if the key was successfully processed, false
otherwisepublic void paint(javax.microedition.lcdui.Graphics g)
paint
in class Component
g
- Graphics objectpublic void removeSoftKey(int position)
position
- the position of the key,
if there is no key in specified position then does nothingSoftKey
public void setSoftKey(SoftKey softKey, int position)
null
then action is equivalent to removeSoftKey
from specified position
softKey
- new soft keyposition
- the position of the key,SoftKey
,
removeSoftKey(int)
|
jMobileCore toolkit | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |