|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.mewt.iform.IFormCommon
public class IFormCommon
The Class IFormCommon.
Constructor Summary | |
---|---|
IFormCommon(int w,
int h)
Instantiates a new i form common. |
|
IFormCommon(int r,
int c,
int w,
int h)
Instantiates a new i form common. |
Method Summary | |
---|---|
ImageButton |
addItem(ImageButton newItem)
Adds the item. |
TextButton |
addItem(java.lang.String label,
java.lang.String imageRes)
Adds the item. |
void |
addPopperListener(IFormListener pl)
Adds the popper listener. |
void |
applyTheme(Theme t)
Apply theme. |
void |
dispose()
Dispose. |
int |
getBackground()
Gets the background. |
int |
getBorder1()
Gets the border1. |
int |
getBorder2()
Gets the border2. |
int |
getButtonBgDark()
Gets the button bg dark. |
int |
getButtonBgLight()
Gets the button bg light. |
int |
getButtonSelDark()
Gets the button sel dark. |
int |
getButtonSelLight()
Gets the button sel light. |
int |
getButtonStyle()
Gets the button style. |
int |
getCols()
Gets the cols. |
int |
getForeground()
Gets the foreground. |
int |
getHeight()
Gets the height. |
int |
getRows()
Gets the rows. |
ImageButton |
getSelected()
Gets the selected. |
int |
getSelectedBackground()
Gets the selected background. |
int |
getSelectedForeground()
Gets the selected foreground. |
int |
getSelectedIndex()
Gets the selected index. |
int |
getTitleBackground()
Gets the title background. |
int |
getTitleForeground()
Gets the title foreground. |
int |
getWidth()
Gets the width. |
boolean |
isStretchIcon()
Checks if is stretch icon. |
void |
paintControl(javax.microedition.lcdui.Graphics gc,
int width,
int height)
Paint control. |
void |
processGameAction(int gameAction)
Process game action. |
void |
removeAll()
Removes the all. |
void |
setBackground(int background)
Sets the background. |
void |
setBorder1(int highLight1)
Sets the border1. |
void |
setBorder2(int highLight2)
Sets the border2. |
void |
setButtonBgDark(int buttonBgDark)
Sets the button bg dark. |
void |
setButtonBgLight(int buttonBgLight)
Sets the button bg light. |
void |
setButtonSelDark(int buttonSelDark)
Sets the button sel dark. |
void |
setButtonSelLight(int buttonSelLight)
Sets the button sel light. |
void |
setButtonStyle(int buttonStyle)
Sets the button style. |
void |
setCols(int cols)
Sets the cols. |
void |
setForeground(int foreground)
Sets the foreground. |
void |
setHeight(int height)
Sets the height. |
void |
setRows(int rows)
Sets the rows. |
void |
setSelectedBackground(int selectedBackground)
Sets the selected background. |
void |
setSelectedForeground(int selectedForeground)
Sets the selected foreground. |
void |
setSelectedIndex(int index)
Sets the selected index. |
void |
setStretchIcon(boolean stretchIcon)
Sets the stretch icon. |
void |
setTitleBackground(int titleBackground)
Sets the title background. |
void |
setTitleForeground(int titleForeground)
Sets the title foreground. |
void |
setWidth(int width)
Sets the width. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IFormCommon(int w, int h)
w
- the wh
- the hpublic IFormCommon(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 TextButton 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 void processGameAction(int gameAction)
gameAction
- the game actionpublic int getForeground()
Themeable
getForeground
in interface Themeable
public void setForeground(int foreground)
Themeable
setForeground
in interface Themeable
foreground
- the new foregroundpublic int getBackground()
Themeable
getBackground
in interface Themeable
public void setBackground(int background)
Themeable
setBackground
in interface Themeable
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 colspublic int getWidth()
public void setWidth(int width)
width
- the new widthpublic int getHeight()
public void setHeight(int height)
height
- the new heightpublic void paintControl(javax.microedition.lcdui.Graphics gc, int width, int height)
gc
- the gcwidth
- the widthheight
- the heightpublic int getButtonBgLight()
Themeable
getButtonBgLight
in interface Themeable
public void setButtonBgLight(int buttonBgLight)
buttonBgLight
- the new button bg lightpublic int getButtonBgDark()
Themeable
getButtonBgDark
in interface Themeable
public void setButtonBgDark(int buttonBgDark)
buttonBgDark
- the new button bg darkpublic int getButtonSelLight()
Themeable
getButtonSelLight
in interface Themeable
public void setButtonSelLight(int buttonSelLight)
buttonSelLight
- the new button sel lightpublic int getButtonSelDark()
Themeable
getButtonSelDark
in interface Themeable
public void setButtonSelDark(int buttonSelDark)
buttonSelDark
- the new button sel darkpublic int getBorder1()
Themeable
getBorder1
in interface Themeable
public void setBorder1(int highLight1)
Themeable
setBorder1
in interface Themeable
highLight1
- the new border1public int getBorder2()
Themeable
getBorder2
in interface Themeable
public void setBorder2(int highLight2)
Themeable
setBorder2
in interface Themeable
highLight2
- the new border2public int getTitleForeground()
Themeable
getTitleForeground
in interface Themeable
public void setTitleForeground(int titleForeground)
titleForeground
- the new title foregroundpublic int getTitleBackground()
Themeable
getTitleBackground
in interface Themeable
public void setTitleBackground(int titleBackground)
titleBackground
- the new title backgroundpublic void applyTheme(Theme t)
Themeable
applyTheme
in interface Themeable
t
- the tpublic int getSelectedForeground()
Themeable
getSelectedForeground
in interface Themeable
public void setSelectedForeground(int selectedForeground)
Themeable
setSelectedForeground
in interface Themeable
selectedForeground
- the new selected foregroundpublic int getSelectedBackground()
Themeable
getSelectedBackground
in interface Themeable
public void setSelectedBackground(int selectedBackground)
Themeable
setSelectedBackground
in interface Themeable
selectedBackground
- the new selected backgroundpublic boolean isStretchIcon()
public void setStretchIcon(boolean stretchIcon)
stretchIcon
- the new stretch iconpublic int getButtonStyle()
public void setButtonStyle(int buttonStyle)
buttonStyle
- the new button style
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |