mome.ext
Class ListShow

java.lang.Object
  extended by mome.ext.ListShow

public class ListShow
extends Object

Version:
0.9
Author:
Sergio Morozov

Field Summary
static int DEFAULT_BGCOLOR
           
static int DEFAULT_FGCOLOR
           
static int DEFAULT_SELECTED_BGCOLOR
           
static int DEFAULT_SELECTED_FGCOLOR
           
 
Constructor Summary
ListShow(int x, int y, int width, int height)
           
ListShow(int x, int y, int width, int height, String[] items, Font[] fonts)
           
 
Method Summary
 void append(String item)
           
 void append(String item, Font font)
           
 void delete(int pos)
           
 void deleteAll()
           
 int getHeight()
           
 String getSelected()
           
 int getSelectedIndex()
           
 int getWidth()
           
 int getX()
           
 int getY()
           
 boolean isSelected(int pos)
           
 boolean next()
           
 boolean prev()
           
 void previous()
           
 void set(int pos, String item, Font font)
           
 void setBGColor(int color)
           
 void setFGColor(int color)
           
 void setSelectedBGColor(int color)
           
 void setSelectedFGColor(int color)
           
 void setY(int y)
           
 void show(Graphics g)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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)
Method Detail

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