|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.microedition.lcdui.Displayable
javax.microedition.lcdui.Canvas
palmed.ui.Container
palmed.edit.TextBox
public final class TextBox
This class implements a custom text box component.
| Field Summary |
|---|
| 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 | |
|---|---|
TextBox()
Create a text box. |
|
| Method Summary | |
|---|---|
void |
clear()
Clear the text box. |
void |
copy(java.io.OutputStream stream)
Copy the current selected text. |
void |
cut(java.io.OutputStream stream)
Cut the current selected text. |
void |
delete()
Delete any resource associated to the current content. |
boolean |
hasBeenModified()
Test the modification flag. |
protected void |
keyPressed(int keyCode)
|
protected void |
keyRepeated(int keyCode)
|
void |
marshall(java.io.OutputStream stream)
Write to an output stream. |
void |
modified(boolean status)
Notify the modification flag has changed. |
void |
paste(java.io.InputStream stream)
Paste the given text. |
void |
read(java.io.InputStream stream)
Reset the text box and read text from a stream. |
void |
redo()
Redo the last undo. |
void |
setFont(java.lang.String name)
Change the font. |
void |
setLineSeparator(java.lang.String separator)
Change the line separator. |
void |
undo()
Undo the last action. |
void |
unmarshall(java.io.InputStream stream)
Read from an input stream. |
void |
update(Coordinate position)
Notify the insertion position has changed. |
void |
update(int columns,
int lines)
Notify the text bounding box has changed. |
void |
write(java.io.OutputStream stream)
Write text to a stream. |
| Methods inherited from class palmed.ui.Container |
|---|
add, paint, pointerDragged, pointerPressed, pointerReleased, refresh, sizeChanged |
| Methods inherited from class javax.microedition.lcdui.Canvas |
|---|
getGameAction, getKeyCode, getKeyName, hasPointerEvents, hasPointerMotionEvents, hasRepeatEvents, hideNotify, isDoubleBuffered, keyReleased, repaint, repaint, serviceRepaints, setFullScreenMode, showNotify |
| Methods inherited from class javax.microedition.lcdui.Displayable |
|---|
addCommand, getHeight, getTicker, getTitle, getWidth, isShown, removeCommand, setCommandListener, setTicker, setTitle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextBox()
| Method Detail |
|---|
protected void keyPressed(int keyCode)
keyPressed in class javax.microedition.lcdui.Canvasprotected void keyRepeated(int keyCode)
keyRepeated in class javax.microedition.lcdui.Canvas
public void update(int columns,
int lines)
update in interface ITextViewcolumns - the number of columnslines - the number of linespublic void update(Coordinate position)
update in interface ISelectionViewposition - the new position
public void unmarshall(java.io.InputStream stream)
throws java.io.IOException
unmarshall in interface ISerializablestream - the stream to read from
java.io.IOException - an io exception occurs
public void marshall(java.io.OutputStream stream)
throws java.io.IOException
marshall in interface ISerializablestream - the stream to write to
java.io.IOException - an io exception occurs
public void read(java.io.InputStream stream)
throws java.io.IOException
read in interface ITextBoxstream - the stream to read from
java.io.IOException - an io exception occurs
public void write(java.io.OutputStream stream)
throws java.io.IOException
write in interface ITextBoxstream - the stream to write to
java.io.IOException - an io exception occurspublic boolean hasBeenModified()
hasBeenModified in interface ITextBoxpublic void clear()
clear in interface ITextBox
public void copy(java.io.OutputStream stream)
throws java.io.IOException
copy in interface ITextBoxstream - the stream to write to
java.io.IOException - an io exception occurs
public void cut(java.io.OutputStream stream)
throws java.io.IOException
cut in interface ITextBoxstream - the stream to write to
java.io.IOException - an io exception occurs
public void paste(java.io.InputStream stream)
throws java.io.IOException
paste in interface ITextBoxstream - the stream to read from
java.io.IOException - an io exception occurspublic void modified(boolean status)
modified in interface ITextViewstatus - the new modification statuspublic void delete()
delete in interface ITextBoxpublic void undo()
undo in interface ITextBoxpublic void redo()
redo in interface ITextBoxpublic void setLineSeparator(java.lang.String separator)
To reset to the default mode preserving file format use null.
setLineSeparator in interface ITextBoxseparator - a string value or null to resetpublic void setFont(java.lang.String name)
setFont in interface ITextBoxname - the font resource name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||