net.sourceforge.mewt.iform
Class IFormCanvas

java.lang.Object
  extended by javax.microedition.lcdui.Displayable
      extended by javax.microedition.lcdui.Canvas
          extended by net.sourceforge.mewt.iform.IFormCanvas

public class IFormCanvas
extends javax.microedition.lcdui.Canvas

The Class IFormCanvas.


Field Summary
 
Fields inherited from class javax.microedition.lcdui.Canvas
DOWN, FIRE, GAME_A, GAME_B, GAME_C, GAME_D, KEY_NUM0, KEY_NUM1, KEY_NUM2, KEY_NUM3, KEY_NUM4, KEY_NUM5, KEY_NUM6, KEY_NUM7, KEY_NUM8, KEY_NUM9, KEY_POUND, KEY_STAR, LEFT, RIGHT, UP
 
Constructor Summary
IFormCanvas()
          Instantiates a new i form canvas.
IFormCanvas(int rows, int cols)
          Instantiates a new i form canvas.
 
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 dispose()
          Dispose.
 int getBackground()
          Gets the background.
 int getCols()
          Gets the cols.
 int getForeground()
          Gets the foreground.
 int getRows()
          Gets the rows.
 ImageButton getSelected()
          Gets the selected.
 int getSelectedIndex()
          Gets the selected index.
 void removeAll()
          Removes the all.
 void setBackground(int background)
          Sets the background.
 void setCols(int cols)
          Sets the cols.
 void setForeground(int foreground)
          Sets the foreground.
 void setRows(int rows)
          Sets the rows.
 void setSelectedIndex(int index)
          Sets the selected index.
 
Methods inherited from class javax.microedition.lcdui.Canvas
getGameAction, getKeyCode, getKeyName, hasPointerEvents, hasPointerMotionEvents, hasRepeatEvents, isDoubleBuffered, repaint, repaint, serviceRepaints, setCommandListener, setFullScreenMode
 
Methods inherited from class javax.microedition.lcdui.Displayable
addCommand, getHeight, getTicker, getTitle, getWidth, isShown, removeCommand, setTicker, setTitle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IFormCanvas

public IFormCanvas()
Instantiates a new i form canvas.


IFormCanvas

public IFormCanvas(int rows,
                   int cols)
Instantiates a new i form canvas.

Parameters:
rows - the rows
cols - the cols
Method Detail

addPopperListener

public void addPopperListener(IFormListener pl)
Adds the popper listener.

Parameters:
pl - the pl

addItem

public TextButton addItem(java.lang.String label,
                          java.lang.String imageRes)
Adds the item.

Parameters:
label - the label
imageRes - the image res
Returns:
the text button

addItem

public ImageButton addItem(ImageButton newItem)
Adds the item.

Parameters:
newItem - the new item
Returns:
the image button

getSelectedIndex

public int getSelectedIndex()
Gets the selected index.

Returns:
the selected index

getSelected

public ImageButton getSelected()
Gets the selected.

Returns:
the selected

setSelectedIndex

public void setSelectedIndex(int index)
Sets the selected index.

Parameters:
index - the new selected index

removeAll

public void removeAll()
Removes the all.


dispose

public void dispose()
Dispose.


getForeground

public int getForeground()
Gets the foreground.

Returns:
the foreground

setForeground

public void setForeground(int foreground)
Sets the foreground.

Parameters:
foreground - the new foreground

getBackground

public int getBackground()
Gets the background.

Returns:
the background

setBackground

public void setBackground(int background)
Sets the background.

Parameters:
background - the new background

getRows

public int getRows()
Gets the rows.

Returns:
the rows

setRows

public void setRows(int rows)
Sets the rows.

Parameters:
rows - the new rows

getCols

public int getCols()
Gets the cols.

Returns:
the cols

setCols

public void setCols(int cols)
Sets the cols.

Parameters:
cols - the new cols