|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.microedition.lcdui.Item javax.microedition.lcdui.StringItem ch.aplu.gidlet.TextArea
public class TextArea
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 |
---|
public TextArea(java.lang.String label, int nbLines, int nbChars)
label
- the first line of the StringItem used as titlenbLines
- the maximum number of lines before scroll upnbChars
- the maximum number of characters per lineMethod Detail |
---|
public void append(java.lang.String text)
text
- the line to append
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |