|
||||||||||
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
net.sourceforge.mewt.iform.IFormCustomItem
public class IFormCustomItem
This class is for embedding the IForm onto existing form items, and thus subclasses CustomItem. Warning : For some unknown reason it will not work on Blackberries, and one of the other IForms must be used instead.
Field Summary |
---|
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 | |
---|---|
IFormCustomItem(int w,
int h)
Instantiates a new i form custom item. |
|
IFormCustomItem(int r,
int c,
int w,
int h)
Instantiates a new i form custom item. |
Method Summary | |
---|---|
ImageButton |
addItem(ImageButton newItem)
Adds the item. |
ImageButton |
addItem(java.lang.String label,
java.lang.String imageRes)
Adds the item. |
void |
addPopperListener(IFormListener pl)
Adds the popper listener. |
void |
dispose()
Dispose. |
int |
getBackground()
Gets the background. |
int |
getCols()
Gets the cols. |
int |
getForeground()
Gets the foreground. |
int |
getRows()
Gets the rows. |
ImageButton |
getSelected()
Gets the selected. |
int |
getSelectedIndex()
Gets the selected index. |
void |
removeAll()
Removes the all. |
void |
setBackground(int background)
Sets the background. |
void |
setCols(int cols)
Sets the cols. |
void |
setForeground(int foreground)
Sets the foreground. |
void |
setRows(int rows)
Sets the rows. |
void |
setSelectedIndex(int index)
Sets the selected index. |
Methods inherited from class javax.microedition.lcdui.CustomItem |
---|
getGameAction |
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 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IFormCustomItem(int w, int h)
w
- the wh
- the hpublic IFormCustomItem(int r, int c, int w, int h)
r
- the rc
- the cw
- the wh
- the hMethod Detail |
---|
public void addPopperListener(IFormListener pl)
pl
- the plpublic ImageButton addItem(java.lang.String label, java.lang.String imageRes)
label
- the labelimageRes
- the image res
public ImageButton addItem(ImageButton newItem)
newItem
- the new item
public int getSelectedIndex()
public ImageButton getSelected()
public void setSelectedIndex(int index)
index
- the new selected indexpublic void removeAll()
public void dispose()
public int getForeground()
public void setForeground(int foreground)
foreground
- the new foregroundpublic int getBackground()
public void setBackground(int background)
background
- the new backgroundpublic int getRows()
public void setRows(int rows)
rows
- the new rowspublic int getCols()
public void setCols(int cols)
cols
- the new cols
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |