|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpalmed.edit.TextArea
public final class TextArea
This class implements a text area component.
| Constructor Summary | |
|---|---|
TextArea(Viewport viewport)
Create a text area component. |
|
| Method Summary | |
|---|---|
boolean |
click(int x,
int y)
Handle a click event. |
void |
drag(int x,
int y)
Handle a drag event. |
int |
getColumns()
Retrieve the number of columns. |
int |
getHeight()
Retrieve the current height. |
int |
getLayout()
Retrieve the layout. |
int |
getLines()
Retrieve the number of lines. |
int |
getWidth()
Retrieve the current width. |
void |
paint(javax.microedition.lcdui.Graphics g)
Paint the component. |
void |
resize(int width,
int height)
Request a component resize. |
void |
setFont(java.lang.String name)
Change the font. |
void |
unclick(int x,
int y)
Handle an unclick event. |
void |
update(Coordinate position)
Notify the insertion position has changed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextArea(Viewport viewport)
viewport - the viewport| Method Detail |
|---|
public void paint(javax.microedition.lcdui.Graphics g)
paint in interface IComponentg - the graphics
public void resize(int width,
int height)
resize in interface IComponentwidth - the new widthheight - the new heightpublic int getLayout()
Supported layouts are :
getLayout in interface IComponentpublic int getWidth()
getWidth in interface IComponentpublic int getHeight()
getHeight in interface IComponent
public boolean click(int x,
int y)
click in interface IComponentx - the pointer abscissay - the pointer ordinate
public void drag(int x,
int y)
The component must have claimed focus upon click in order to receive this event.
drag in interface IComponentx - the pointer abscissay - the pointer ordinate
public void unclick(int x,
int y)
The component must have claimed focus upon click ini order to receive this event.
unclick in interface IComponentx - the pointer abscissay - the pointer ordinatepublic void update(Coordinate position)
update in interface ISelectionViewposition - the new positionpublic int getLines()
public int getColumns()
public void setFont(java.lang.String name)
name - the font resource name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||