|
||||||||||
| 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.list.ListCustomItem
public class ListCustomItem
The Class ListCustomItem.
| 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 | |
|---|---|
ListCustomItem()
Instantiates a new list custom item. |
|
ListCustomItem(java.lang.String title)
Instantiates a new list custom item. |
|
| Method Summary | |
|---|---|
ListButton |
addItem(ListButton newItem)
Adds the item. |
ListButton |
addItem(java.lang.String label,
java.lang.String imageRes)
Adds the item. |
void |
applyTheme(Theme t)
Apply theme. |
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 |
getForeground()
Gets the foreground. |
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. |
boolean |
isStretchIcons()
Checks if is stretch icons. |
void |
processGameAction(int gameAction)
Process game action. |
void |
setBackground(int background)
Sets the background. |
void |
setBorder1(int border1)
Sets the border1. |
void |
setBorder2(int border2)
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 |
setForeground(int foreground)
Sets the foreground. |
void |
setSelectedBackground(int selectedBackground)
Sets the selected background. |
void |
setSelectedForeground(int selectedForeground)
Sets the selected foreground. |
void |
setSelectedIndex(int selectedIndex)
Sets the selected index. |
void |
setStretchIcons(boolean stretchIcons)
Sets the stretch icons. |
void |
setTitleBackground(int titleBackground)
Sets the title background. |
void |
setTitleForeground(int titleForeground)
Sets the title foreground. |
| 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 ListCustomItem()
public ListCustomItem(java.lang.String title)
title - the title| Method Detail |
|---|
public ListButton addItem(java.lang.String label,
java.lang.String imageRes)
label - the labelimageRes - the image res
public ListButton addItem(ListButton newItem)
newItem - the new item
public void applyTheme(Theme t)
Themeable
applyTheme in interface Themeablet - the tpublic int getForeground()
Themeable
getForeground in interface Themeablepublic void setForeground(int foreground)
Themeable
setForeground in interface Themeableforeground - the new foregroundpublic int getBackground()
Themeable
getBackground in interface Themeablepublic void setBackground(int background)
Themeable
setBackground in interface Themeablebackground - the new backgroundpublic int getButtonBgLight()
Themeable
getButtonBgLight in interface Themeablepublic void setButtonBgLight(int buttonBgLight)
buttonBgLight - the new button bg lightpublic int getButtonBgDark()
Themeable
getButtonBgDark in interface Themeablepublic void setButtonBgDark(int buttonBgDark)
buttonBgDark - the new button bg darkpublic int getButtonSelLight()
Themeable
getButtonSelLight in interface Themeablepublic void setButtonSelLight(int buttonSelLight)
buttonSelLight - the new button sel lightpublic int getButtonSelDark()
Themeable
getButtonSelDark in interface Themeablepublic void setButtonSelDark(int buttonSelDark)
buttonSelDark - the new button sel darkpublic int getBorder1()
Themeable
getBorder1 in interface Themeablepublic void setBorder1(int border1)
Themeable
setBorder1 in interface Themeableborder1 - the new border1public int getBorder2()
Themeable
getBorder2 in interface Themeablepublic void setBorder2(int border2)
Themeable
setBorder2 in interface Themeableborder2 - the new border2public int getSelectedForeground()
Themeable
getSelectedForeground in interface Themeablepublic void setSelectedForeground(int selectedForeground)
Themeable
setSelectedForeground in interface ThemeableselectedForeground - the new selected foregroundpublic int getSelectedBackground()
Themeable
getSelectedBackground in interface Themeablepublic void setSelectedBackground(int selectedBackground)
Themeable
setSelectedBackground in interface ThemeableselectedBackground - the new selected backgroundpublic int getTitleForeground()
Themeable
getTitleForeground in interface Themeablepublic void setTitleForeground(int titleForeground)
titleForeground - the new title foregroundpublic int getTitleBackground()
Themeable
getTitleBackground in interface Themeablepublic void setTitleBackground(int titleBackground)
titleBackground - the new title backgroundpublic void processGameAction(int gameAction)
gameAction - the game actionpublic int getSelectedIndex()
public void setSelectedIndex(int selectedIndex)
selectedIndex - the new selected indexpublic boolean isStretchIcons()
public void setStretchIcons(boolean stretchIcons)
stretchIcons - the new stretch iconspublic 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 | |||||||||