jMobileCore toolkit

com.jmobilecore.ui
Class TimeZoneList

java.lang.Object
  extended by com.jmobilecore.ui.core.Component
      extended by com.jmobilecore.ui.core.Label
          extended by com.jmobilecore.ui.core.List
              extended by com.jmobilecore.ui.TimeZoneList

public class TimeZoneList
extends List

The TimeZoneList component presents the user with a scrolling list of timezones.

Author:
Greg Gridin
See Also:
List, TimeZone

Field Summary
 
Fields inherited from class com.jmobilecore.ui.core.List
eventListener, items, leftKey, listScreen, rightKey, selected, title
 
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
TimeZoneList(java.lang.String label)
          Creates a new timezone scrolling list.
 
Method Summary
 java.lang.String getTimeZoneID()
          Gets currently selected timezone id Timezone id belongs to TimeZone.getAvailableIDs()
 void paint(javax.microedition.lcdui.Graphics g)
          Paints the PropertyLabel to the screen.
 boolean setTimeZoneID(java.lang.String tzID)
          Selects timezone by timezone id Timezone id should be one of TimeZone.getAvailableIDs()
 
Methods inherited from class com.jmobilecore.ui.core.List
add, add, add, add, createListScreen, deselect, destructor, getComponent, getItem, getItemCount, getSelectedComponent, getSelectedIndex, getSelectedItem, isIndexSelected, keyPressed, remove, remove, removeAll, replaceItem, select, setListScreen, setListScreen
 
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
 

Constructor Detail

TimeZoneList

public TimeZoneList(java.lang.String label)
Creates a new timezone scrolling list.

Method Detail

getTimeZoneID

public java.lang.String getTimeZoneID()
Gets currently selected timezone id Timezone id belongs to TimeZone.getAvailableIDs()

Returns:
timezone id

paint

public void paint(javax.microedition.lcdui.Graphics g)
Paints the PropertyLabel to the screen.

Overrides:
paint in class Label
Parameters:
g - The Graphics object to render to.

setTimeZoneID

public boolean setTimeZoneID(java.lang.String tzID)
Selects timezone by timezone id Timezone id should be one of TimeZone.getAvailableIDs()

Parameters:
tzID - The timezone id
Returns:
true if timezone was successfully selected, false otherwise

jMobileCore toolkit