|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.microedition.lcdui.Item javax.microedition.lcdui.CustomItem net.sourceforge.mewt.table.Table
public class Table
The Class Table.
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 | |
---|---|
Table(javax.microedition.lcdui.Form parent,
java.lang.String[] titles)
Instantiates a new table. |
Method Summary | |
---|---|
void |
addRow(java.lang.String[] row)
Adds the row. |
void |
addTableListener(TableListener tl)
Adds the table listener. |
void |
applyTheme(Theme t)
Apply theme. |
void |
deleteRow(int row)
Delete row. |
void |
emptyTable()
Empty table. |
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 |
getColCount()
Gets the col count. |
java.lang.String |
getData(int col,
int row)
Gets the data. |
int |
getForeground()
Gets the foreground. |
java.lang.String[] |
getRow(int row)
Gets the row. |
int |
getRowCount()
Gets the row count. |
int |
getSelectedBackground()
Gets the selected background. |
int |
getSelectedColIndex()
Gets the selected col index. |
int |
getSelectedForeground()
Gets the selected foreground. |
int |
getSelectedRowIndex()
Gets the selected row index. |
java.lang.String |
getText()
Returns the value of the currently selected table cell. |
int |
getTitleBackground()
Gets the title background. |
int |
getTitleForeground()
Gets the title foreground. |
boolean |
isRowSelect()
Checks if is row select. |
void |
keyPressed(int keyCode)
|
void |
notifyLayout()
Notify layout. |
void |
removeTableListener(TableListener tl)
Removes the table listener. |
void |
setBackground(int i)
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 |
setForeground(int foreground)
Sets the foreground. |
void |
setRowSelect(boolean rowSelect)
Sets the row select. |
void |
setSelectedBackground(int selectColor)
Sets the selected background. |
void |
setSelectedCol(int selectedCol)
Sets the selected col. |
void |
setSelectedForeground(int selectColor)
Sets the selected foreground. |
void |
setSelectedRow(int selectedRow)
Sets the selected row. |
void |
setText(java.lang.String text)
Sets the text value of the currently selected table cell. |
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 Table(javax.microedition.lcdui.Form parent, java.lang.String[] titles)
parent
- the parenttitles
- the titlesMethod Detail |
---|
public void notifyLayout()
public void addTableListener(TableListener tl)
tl
- the tlpublic void removeTableListener(TableListener tl)
tl
- the tlpublic void keyPressed(int keyCode)
keyPressed
in class javax.microedition.lcdui.CustomItem
public void addRow(java.lang.String[] row)
row
- the rowpublic void deleteRow(int row)
row
- the rowpublic void emptyTable()
public void setText(java.lang.String text)
text
- the textpublic java.lang.String getText()
public boolean isRowSelect()
public void setRowSelect(boolean rowSelect)
rowSelect
- the new row selectpublic int getSelectedColIndex()
public void setSelectedCol(int selectedCol)
selectedCol
- the new selected colpublic int getSelectedRowIndex()
public void setSelectedRow(int selectedRow)
selectedRow
- the new selected rowpublic java.lang.String getData(int col, int row)
col
- the colrow
- the row
public int getRowCount()
public int getColCount()
public java.lang.String[] getRow(int row)
row
- the row
public void setBackground(int i)
Themeable
setBackground
in interface Themeable
i
- the new backgroundpublic 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 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 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 border1)
Themeable
setBorder1
in interface Themeable
border1
- the new border1public int getBorder2()
Themeable
getBorder2
in interface Themeable
public void setBorder2(int border2)
Themeable
setBorder2
in interface Themeable
border2
- the new border2public int getSelectedBackground()
Themeable
getSelectedBackground
in interface Themeable
public int getSelectedForeground()
Themeable
getSelectedForeground
in interface Themeable
public void setSelectedBackground(int selectColor)
Themeable
setSelectedBackground
in interface Themeable
selectColor
- the new selected backgroundpublic void setSelectedForeground(int selectColor)
Themeable
setSelectedForeground
in interface Themeable
selectColor
- the new selected foreground
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |