|
jMobileCore toolkit | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jmobilecore.ui.core.Component
com.jmobilecore.ui.core.Label
com.jmobilecore.ui.core.ListLabel
public class ListLabel
Provides a text label for display as part of List
component. ListLabel
is focusable.
Field Summary | |
---|---|
protected java.lang.Object |
actionCommand
This field indicates the command has been issued by a particular list label. |
protected int |
shortcut
A key stoke that ia associated with a list label. |
Fields inherited from class com.jmobilecore.ui.core.Label |
---|
text |
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 | |
---|---|
ListLabel(java.lang.String label)
Create a list label |
|
ListLabel(java.lang.String label,
javax.microedition.lcdui.Font font,
int shortcut)
Create a list label of specified font with an associated keyboard shortcut. |
|
ListLabel(java.lang.String label,
javax.microedition.lcdui.Font font,
int shortcut,
java.lang.Object action)
Create a list label with an associated keyboard shortcut and custom action. |
Method Summary | |
---|---|
void |
destructor()
Class destructor. |
java.lang.Object |
getAction()
Get the object representing the ListLabel 's action
This method is required by ListComponent interface |
int |
getShortcut()
Get the key code shortcut for this ListLabel
This method is required by ListComponent interface |
void |
setAction(java.lang.Object action)
Sets the object as ListLabel 's action
This method is required by ListComponent interface |
void |
setShortcut(int shortcut)
Sets the key code shortcut for this ListLabel
This method is required by ListComponent interface |
Methods inherited from class com.jmobilecore.ui.core.Label |
---|
createTitleLabel, getText, paint, setText |
Methods inherited from class com.jmobilecore.ui.core.Component |
---|
getBackground, getFont, getForeground, getHeight, getWidth, invalidate, isFocusOwner, keyPressed, 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 |
Methods inherited from interface com.jmobilecore.ui.core.ListComponent |
---|
getFont, getText, setFont, setText |
Field Detail |
---|
protected java.lang.Object actionCommand
actionCommand
is the label of the list label, unless it has been
explicitly set to a different value.
protected int shortcut
PlatformCanvas.KEY_UNDEFINED
value
Constructor Detail |
---|
public ListLabel(java.lang.String label)
label
- the label for this list label.public ListLabel(java.lang.String label, javax.microedition.lcdui.Font font, int shortcut)
label
- the label for this list label.font
- the label fontshortcut
- key code associated with list labelpublic ListLabel(java.lang.String label, javax.microedition.lcdui.Font font, int shortcut, java.lang.Object action)
label
- the label for this list label.font
- the label fontshortcut
- key code associated witha list labelaction
- custom action for the ListLabel
Method Detail |
---|
public void destructor()
destructor
in class Component
public java.lang.Object getAction()
ListLabel
's action
This method is required by ListComponent
interface
getAction
in interface ListComponent
ListLabel
public int getShortcut()
ListLabel
This method is required by ListComponent
interface
getShortcut
in interface ListComponent
public void setAction(java.lang.Object action)
ListLabel
's action
This method is required by ListComponent
interface
setAction
in interface ListComponent
action
- the object - new action valuepublic void setShortcut(int shortcut)
ListLabel
This method is required by ListComponent
interface
setShortcut
in interface ListComponent
shortcut
- the keycode - new shortcut value
|
jMobileCore toolkit | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |