|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.microedition.lcdui.Item
javax.microedition.lcdui.CustomItem
de.enough.polish.ui.MessageItem
public class MessageItem
| Field Summary |
|---|
| Fields inherited from class javax.microedition.lcdui.CustomItem |
|---|
KEY_PRESS, KEY_RELEASE, KEY_REPEAT, NONE, POINTER_DRAG, POINTER_PRESS, POINTER_RELEASE, TRAVERSE_HORIZONTAL, TRAVERSE_VERTICAL |
| 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 | |
|---|---|
MessageItem(java.lang.String headline,
java.lang.String text)
Creates a new message item |
|
MessageItem(java.lang.String headline,
java.lang.String text,
Style style)
Creates a new message item |
|
| Method Summary | |
|---|---|
protected int |
getMinContentHeight()
|
protected int |
getMinContentWidth()
|
protected int |
getPrefContentHeight(int width)
|
protected int |
getPrefContentWidth(int height)
|
protected void |
paint(javax.microedition.lcdui.Graphics g,
int w,
int h)
|
void |
setHeadline(java.lang.String headline)
Sets the headline text |
void |
setHeadline(java.lang.String headline,
Style style)
Sets the headline text |
void |
setImage(javax.microedition.lcdui.Image image)
Sets the image of the headline |
void |
setText(java.lang.String text)
Sets the text of the message. |
void |
setText(java.lang.String text,
Style style)
Sets the text of the message. |
| Methods inherited from class javax.microedition.lcdui.CustomItem |
|---|
getGameAction, getInteractionModes, hideNotify, invalidate, keyPressed, keyReleased, keyRepeated, pointerDragged, pointerPressed, pointerReleased, repaint, repaint, showNotify, sizeChanged, traverse, traverseOut |
| Methods inherited from class javax.microedition.lcdui.Item |
|---|
addCommand, getLabel, getLayout, getMinimumHeight, getMinimumWidth, getPreferredHeight, getPreferredWidth, notifyStateChanged, removeCommand, setDefaultCommand, setItemCommandListener, setLabel, setLayout, setPreferredSize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MessageItem(java.lang.String headline,
java.lang.String text)
headline - the headline texttext - the content text
public MessageItem(java.lang.String headline,
java.lang.String text,
Style style)
headline - the headline texttext - the content textstyle - the CSS style| Method Detail |
|---|
protected int getMinContentWidth()
getMinContentWidth in class javax.microedition.lcdui.CustomItemprotected int getMinContentHeight()
getMinContentHeight in class javax.microedition.lcdui.CustomItemprotected int getPrefContentWidth(int height)
getPrefContentWidth in class javax.microedition.lcdui.CustomItemprotected int getPrefContentHeight(int width)
getPrefContentHeight in class javax.microedition.lcdui.CustomItempublic void setHeadline(java.lang.String headline)
headline - the new headline
public void setHeadline(java.lang.String headline,
Style style)
headline - the new headlinestyle - the new style for the headlinepublic void setText(java.lang.String text)
text - the new text
public void setText(java.lang.String text,
Style style)
text - the new textstyle - the new style of the textpublic void setImage(javax.microedition.lcdui.Image image)
image - the new image of the headline
protected void paint(javax.microedition.lcdui.Graphics g,
int w,
int h)
paint in class javax.microedition.lcdui.CustomItem
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||