jMobileCore toolkit

com.jmobilecore.ui.core
Interface ListComponent

All Known Implementing Classes:
ListCheckbox, ListImage, ListLabel

public interface ListComponent

The interface ListComponent is required for all list-related components. In this respect, the class ListComponent is analogous to the abstract superclass Component for jMobileCore components.

Author:
Greg Gridin

Method Summary
 java.lang.Object getAction()
          Get the object representing the list component's action
 javax.microedition.lcdui.Font getFont()
          Get the list component's font
 int getShortcut()
          Get the key code shortcut for this list component
 java.lang.String getText()
          Get textual representation of the ListComponent
 void setAction(java.lang.Object action)
          Sets the object as list component's action
 void setFont(javax.microedition.lcdui.Font font)
          Sets the font of this list component.
 void setShortcut(int shortcut)
          Sets the key code shortcut for this list component
 void setText(java.lang.String text)
          Sets the textual representation of the ListComponent
 

Method Detail

getAction

java.lang.Object getAction()
Get the object representing the list component's action

Returns:
the object associated with this list component

getFont

javax.microedition.lcdui.Font getFont()
Get the list component's font

Returns:
the current font

getShortcut

int getShortcut()
Get the key code shortcut for this list component

Returns:
the keycode shortcut

getText

java.lang.String getText()
Get textual representation of the ListComponent

Returns:
the textual representation of the component

setAction

void setAction(java.lang.Object action)
Sets the object as list component's action

Parameters:
action - the object - new action value

setFont

void setFont(javax.microedition.lcdui.Font font)
Sets the font of this list component.

Parameters:
font - the font to become this list component's font;

setShortcut

void setShortcut(int shortcut)
Sets the key code shortcut for this list component

Parameters:
shortcut - the keycode - new shortcut value

setText

void setText(java.lang.String text)
Sets the textual representation of the ListComponent

Parameters:
text - the new textual representation of the component

jMobileCore toolkit