|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmoka.lang.Object
moka.event.EventListener
moka.x.Component
moka.x.CaptionedComponent
moka.x.TextArea
TextArea class is a text entry component.
Field Summary | |
boolean |
editable
Is the text editable ? |
short |
maxLength
The number of character this TextField should accept. |
int |
scrollLine
The index of the first line. |
boolean |
vScrollVisible
Is the vertical scroll bar should be visible ? Should be only read. |
boolean |
warp
Should the words be warped ? Should be only read. |
Fields inherited from class moka.x.Component |
enabled, height, listen, mnemonic, next, parent, prev, visible, width, x, y |
Fields inherited from interface moka.x.Captioned |
caption, font |
Constructor Summary | |
TextArea()
|
|
TextArea(java.lang.String caption)
|
Method Summary | |
void |
paint()
Paints the TextArea. |
void |
setScrollLine(int num)
Sets the scroll position. |
void |
setVScrollVisible(boolean b)
Sets if the vertical scroll bar should be visible. |
void |
setWarp(boolean b)
Sets if the words should be warped. |
void |
use()
This method is invoked by the GEM when the user interacts with the TextArea. |
Methods inherited from class moka.x.CaptionedComponent |
finalize |
Methods inherited from class moka.x.Component |
bottom, center, checkMnemonic, clean, eventTriggered, isCursorOver, left, move, onPaint, right, setBounds, setEnabled, setHeight, setMnemonic, setVisible, setWidth, setX, setY, toFront, top |
Methods inherited from class moka.event.EventListener |
eventTriggered |
Methods inherited from class moka.lang.Object |
equals, getClassName, toString |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface moka.x.Captioned |
setCaption, setFont |
Field Detail |
public short maxLength
public boolean warp
public boolean vScrollVisible
public int scrollLine
public boolean editable
Constructor Detail |
public TextArea()
public TextArea(java.lang.String caption)
Method Detail |
public void setWarp(boolean b)
b
- true to specify that the words should be warped, false to specify that the words should not be warpedpublic void setVScrollVisible(boolean b)
b
- true to specify that the vertical scroll bar should be visiblepublic void setScrollLine(int num)
num
- the number of the first line (should be >= 0 and < to the total number of lines).public void paint()
paint
in class Component
public void use()
use
in class Component
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |