|
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.SimpleCheckbox
com.jmobilecore.ui.core.ListCheckbox
public class ListCheckbox
| Field Summary | |
|---|---|
protected java.lang.Object |
actionCommand
This field indicates the command has been issued by a particular list checkbox. |
protected int |
shortcut
A key stoke that ia associated with a list checkbox. |
| Fields inherited from class com.jmobilecore.ui.core.SimpleCheckbox |
|---|
state |
| 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 | |
|---|---|
ListCheckbox(java.lang.String label,
boolean state)
Create a list checkbox |
|
ListCheckbox(java.lang.String label,
javax.microedition.lcdui.Font font,
boolean state,
int shortcut)
Create a list checkbox with an associated keyboard shortcut. |
|
ListCheckbox(java.lang.String label,
javax.microedition.lcdui.Font font,
boolean state,
int shortcut,
java.lang.Object action)
Create a list checkbox with an associated keyboard shortcut and custom action. |
|
| Method Summary | |
|---|---|
void |
destructor()
Class destructor. |
java.lang.Object |
getAction()
Get the object representing the ListCheckbox's action
This method is required by ListComponent interface |
int |
getShortcut()
Get the key code shortcut for this ListCheckbox
This method is required by ListComponent interface |
void |
setAction(java.lang.Object action)
Sets the object as ListCheckbox's action
This method is required by ListComponent interface |
void |
setShortcut(int shortcut)
Sets the key code shortcut for this ListCheckbox
This method is required by ListComponent interface |
| Methods inherited from class com.jmobilecore.ui.core.SimpleCheckbox |
|---|
keyPressed, paint |
| Methods inherited from class com.jmobilecore.ui.core.Label |
|---|
createTitleLabel, getText, setText |
| 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 |
| 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 checkbox, unless it has been
explicitly set to a different value.
protected int shortcut
PlatformCanvas.KEY_UNDEFINED value
| Constructor Detail |
|---|
public ListCheckbox(java.lang.String label,
boolean state)
label - the label for this list checkbox.
public ListCheckbox(java.lang.String label,
javax.microedition.lcdui.Font font,
boolean state,
int shortcut)
label - the label for this list checkbox.font - the label fontshortcut - key code associated witha list checkbox
public ListCheckbox(java.lang.String label,
javax.microedition.lcdui.Font font,
boolean state,
int shortcut,
java.lang.Object action)
label - the label for this list checkbox.font - the label fontshortcut - key code associated witha list checkbox.action - custom action for the ListCheckbox| Method Detail |
|---|
public void destructor()
destructor in class Componentpublic java.lang.Object getAction()
ListCheckbox's action
This method is required by ListComponent interface
getAction in interface ListComponentListLabelpublic int getShortcut()
ListCheckbox
This method is required by ListComponent interface
getShortcut in interface ListComponentpublic void setAction(java.lang.Object action)
ListCheckbox's action
This method is required by ListComponent interface
setAction in interface ListComponentaction - the object - new action valuepublic void setShortcut(int shortcut)
ListCheckbox
This method is required by ListComponent interface
setShortcut in interface ListComponentshortcut - the keycode - new shortcut value
|
jMobileCore toolkit | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||