mome.ext
Class ListShow
java.lang.Object
mome.ext.ListShow
public class ListShow
- extends Object
- Version:
- 0.9
- Author:
- Sergio Morozov
Constructor Summary |
ListShow(int x,
int y,
int width,
int height)
|
ListShow(int x,
int y,
int width,
int height,
String[] items,
Font[] fonts)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_SELECTED_BGCOLOR
public static final int DEFAULT_SELECTED_BGCOLOR
- See Also:
- Constant Field Values
DEFAULT_SELECTED_FGCOLOR
public static final int DEFAULT_SELECTED_FGCOLOR
- See Also:
- Constant Field Values
DEFAULT_FGCOLOR
public static final int DEFAULT_FGCOLOR
- See Also:
- Constant Field Values
DEFAULT_BGCOLOR
public static final int DEFAULT_BGCOLOR
- See Also:
- Constant Field Values
ListShow
public ListShow(int x,
int y,
int width,
int height)
ListShow
public ListShow(int x,
int y,
int width,
int height,
String[] items,
Font[] fonts)
setBGColor
public void setBGColor(int color)
setFGColor
public void setFGColor(int color)
setSelectedBGColor
public void setSelectedBGColor(int color)
setSelectedFGColor
public void setSelectedFGColor(int color)
append
public void append(String item,
Font font)
append
public void append(String item)
delete
public void delete(int pos)
deleteAll
public void deleteAll()
set
public void set(int pos,
String item,
Font font)
isSelected
public boolean isSelected(int pos)
getSelectedIndex
public int getSelectedIndex()
getSelected
public String getSelected()
next
public boolean next()
prev
public boolean prev()
previous
public void previous()
show
public void show(Graphics g)
getY
public int getY()
- Returns:
- the y
setY
public void setY(int y)
- Parameters:
y
- the y to set
getHeight
public int getHeight()
- Returns:
- the height
getWidth
public int getWidth()
- Returns:
- the width
getX
public int getX()
- Returns:
- the x