ch.aplu.gidlet
Class TextArea

java.lang.Object
  extended by javax.microedition.lcdui.Item
      extended by javax.microedition.lcdui.StringItem
          extended by ch.aplu.gidlet.TextArea

public class TextArea
extends javax.microedition.lcdui.StringItem

Class to display an upscrolling number of text lines automatically wrapped at word boundaries. If the word length exceeds the maximum number of characters per line, the word is separated.


Field Summary
 
Fields inherited from class javax.microedition.lcdui.Item
BUTTON, HYPERLINK, LAYOUT_2, LAYOUT_BOTTOM, LAYOUT_CENTER, LAYOUT_DEFAULT, LAYOUT_EXPAND, LAYOUT_LEFT, LAYOUT_NEWLINE_AFTER, LAYOUT_NEWLINE_BEFORE, LAYOUT_RIGHT, LAYOUT_SHRINK, LAYOUT_TOP, LAYOUT_VCENTER, LAYOUT_VEXPAND, LAYOUT_VSHRINK, PLAIN
 
Constructor Summary
TextArea(java.lang.String label, int nbLines, int nbChars)
          Creates an TextArea with given title, maximum number of lines, and maximum number of characers per line.
 
Method Summary
 void append(java.lang.String text)
          Appends a new line at the bottom of existing lines.
 
Methods inherited from class javax.microedition.lcdui.StringItem
getAppearanceMode, getFont, getText, setFont, setPreferredSize, setText
 
Methods inherited from class javax.microedition.lcdui.Item
addCommand, getLabel, getLayout, getMinimumHeight, getMinimumWidth, getPreferredHeight, getPreferredWidth, notifyStateChanged, removeCommand, setDefaultCommand, setItemCommandListener, setLabel, setLayout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextArea

public TextArea(java.lang.String label,
                int nbLines,
                int nbChars)
Creates an TextArea with given title, maximum number of lines, and maximum number of characers per line.

Parameters:
label - the first line of the StringItem used as title
nbLines - the maximum number of lines before scroll up
nbChars - the maximum number of characters per line
Method Detail

append

public void append(java.lang.String text)
Appends a new line at the bottom of existing lines.

Parameters:
text - the line to append