|
jMobileCore toolkit | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jmobilecore.ui.core.Component com.jmobilecore.ui.core.TextPane
public class TextPane
Field Summary | |
---|---|
protected com.jmobilecore.ui.core.TextPaneText |
textPane
The TextPaneText represents content of this TextPane . |
Fields inherited from class com.jmobilecore.ui.core.Component |
---|
alignment, background, CENTER, focusable, focusedBackground, focusedForeground, font, foreground, height, isCompletelyVisible, isFocused, isVisible, LEFT, parentScreen, RIGHT, screenY, valid, width |
Constructor Summary | |
---|---|
TextPane(java.lang.String text)
Constructs a new TextPane with the specified string of text,
left justified. |
|
TextPane(java.lang.String text,
javax.microedition.lcdui.Font font)
Constructs a new TextPane with the specified string of text,
left justified. |
Method Summary | |
---|---|
java.lang.String |
getText()
Gets the text of this text pane. |
void |
paint(javax.microedition.lcdui.Graphics g)
Paints the TextPane to the screen. |
void |
setFont(javax.microedition.lcdui.Font _font)
Sets the font of this component. |
protected void |
setHeight()
Calculates the text pane height |
void |
setText(java.lang.String text)
Sets the text for this text pane to the specified value. |
Methods inherited from class com.jmobilecore.ui.core.Component |
---|
destructor, getBackground, getFont, getForeground, getHeight, getWidth, invalidate, isFocusOwner, keyPressed, keyReleased, keyRepeated, paintBackground, pointerDragged, pointerPressed, pointerReleased, prepareForeground, releaseFocus, requestFocus |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected com.jmobilecore.ui.core.TextPaneText textPane
TextPaneText
represents content of this TextPane
.
getText()
,
setText(String)
Constructor Detail |
---|
public TextPane(java.lang.String text)
TextPane
with the specified string of text,
left justified.
text
- the string that the textpane presents.
A null
value
will be accepted without causing a NullPointerException
to be thrown.
Unlike text for labels this text can be multiline.public TextPane(java.lang.String text, javax.microedition.lcdui.Font font)
TextPane
with the specified string of text,
left justified.
text
- the string that the textpane presents.
A null
value
will be accepted without causing a NullPointerException
to be thrown.
Unlike text for labels this text can be multiline.font
- the TextPane
fontMethod Detail |
---|
public java.lang.String getText()
null
if
the text has been set to null
.setText(String)
public void paint(javax.microedition.lcdui.Graphics g)
TextPane
to the screen.
paint
in class Component
g
- The Graphics object to render to.public void setFont(javax.microedition.lcdui.Font _font)
setFont
in class Component
_font
- the font to become this component's font;
if this parameter is null
then this
component font won't be changedprotected void setHeight()
setHeight
in class Component
public void setText(java.lang.String text)
text
- the text that this text pane displays.getText()
|
jMobileCore toolkit | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |