peaklau.eaglefund
Class ValueScreen

java.lang.Object
  extended by javax.microedition.lcdui.Displayable
      extended by javax.microedition.lcdui.Canvas
          extended by peaklau.eaglefund.BaseCanvas
              extended by peaklau.eaglefund.TitleScreen
                  extended by peaklau.eaglefund.ScrollScreen
                      extended by peaklau.eaglefund.ValueScreen
All Implemented Interfaces:
java.lang.Runnable, javax.microedition.lcdui.CommandListener

public class ValueScreen
extends ScrollScreen

Display information of one's selected funds class

First step, synchronize the newest fund's value from http://www.peaklau.com/fund/index.php .
  The request format is like this: http://www.peaklau.com/fund/index.php?C0=162703&C1=110002.
  The response from http://www.peaklau.com/fund/index.php is in XML format.
<I> <VERSION>1.0.7 </VERSION>
<F>
  <C>162703 </C>
  <N>广发小盘成长股票基金 </N>
  <D>2007-04-30 </D>
  <V>21570 </V>
  <P>11347 </P>
</F>
<F>
  <C>110002 </C>
  <N>xxx基金 </N>
  <D>2007-04-30 </D>
  <V>35940 </V>
  <P>29504 </P>
</F>
</I>

Second step, parse XML data and update local records.

Finally, call setTxt() to show the data and the processing time.

Version:
$Revision: 1.2 $ $Date: 2007/10/21 14:26:24 $
Author:
peaklau
email:peaklau@hotmail.com
HomePage

Field Summary
 
Fields inherited from class peaklau.eaglefund.TitleScreen
FONT_HEIGHT, height, Line_HIGHT, width
 
Fields inherited from class peaklau.eaglefund.BaseCanvas
host, navigator
 
Fields inherited from class javax.microedition.lcdui.Canvas
DOWN, FIRE, GAME_A, GAME_B, GAME_C, GAME_D, KEY_NUM0, KEY_NUM1, KEY_NUM2, KEY_NUM3, KEY_NUM4, KEY_NUM5, KEY_NUM6, KEY_NUM7, KEY_NUM8, KEY_NUM9, KEY_POUND, KEY_STAR, LEFT, RIGHT, UP
 
Constructor Summary
ValueScreen(java.lang.String title, java.lang.String txt, java.lang.String backDisplayable, INavigator navigator)
           
 
Method Summary
protected  void execute()
          Subclasses can overwrite this method to get refresh some data.
 
Methods inherited from class peaklau.eaglefund.ScrollScreen
hideNotify, keyPressed, paint, setTxt, showNotify
 
Methods inherited from class peaklau.eaglefund.TitleScreen
commandAction, setStatus, setTitle
 
Methods inherited from class peaklau.eaglefund.BaseCanvas
getCurrentTime, refresh, run
 
Methods inherited from class javax.microedition.lcdui.Canvas
getGameAction, getHeight, getKeyCode, getKeyName, getWidth, hasPointerEvents, hasPointerMotionEvents, hasRepeatEvents, isDoubleBuffered, keyReleased, keyRepeated, pointerDragged, pointerPressed, pointerReleased, repaint, repaint, serviceRepaints
 
Methods inherited from class javax.microedition.lcdui.Displayable
addCommand, isShown, removeCommand, setCommandListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.microedition.lcdui.CommandListener
commandAction
 

Constructor Detail

ValueScreen

public ValueScreen(java.lang.String title,
                   java.lang.String txt,
                   java.lang.String backDisplayable,
                   INavigator navigator)
Method Detail

execute

protected void execute()
Description copied from class: BaseCanvas
Subclasses can overwrite this method to get refresh some data.

Overrides:
execute in class BaseCanvas


Copyright © 2007-2009 peaklau. All Rights Reserved.