com.mot.lnf
Interface CommandManagerLNF


public interface CommandManagerLNF

Methods needed to customize look and feel of the CommandManager


Method Summary
 javax.microedition.lcdui.Command getCancelCommand()
          Get the cancel command to use on the command menu screen
 int getHeight()
          Get the height required to display the command bar.
 void paint(javax.microedition.lcdui.Graphics g, javax.microedition.lcdui.Command[] displayableCommands, int numDisplayableCommands, javax.microedition.lcdui.Command[] itemCommands, int numItemCommands, int selected)
          Method to be used for drawing the CommandManager.
 

Method Detail

paint

public void paint(javax.microedition.lcdui.Graphics g,
                  javax.microedition.lcdui.Command[] displayableCommands,
                  int numDisplayableCommands,
                  javax.microedition.lcdui.Command[] itemCommands,
                  int numItemCommands,
                  int selected)
Method to be used for drawing the CommandManager. The entire command area should be drawn here. Assumes that the command area is located at the bottom of the screen, and uses the entire screen width.
Parameters:
g - Graphics object to use for drawing
displayableCommands - List of Commands associated with the current displayable
numDisplayableCommands - how many commands are in the displayableCommands array
itemCommands - List of Commands associated with the current Item
numItemCommands - how many commands are in the itemCommandsArray
selected - Index of command that has been selected but not yet activated. -1 if no selection

getHeight

public int getHeight()
Get the height required to display the command bar. This function should always return the same value, regardless if commands are actually present in the CommandManager
Returns:
height, in pixels, needed to display commands

getCancelCommand

public javax.microedition.lcdui.Command getCancelCommand()
Get the cancel command to use on the command menu screen
Returns:
The cancel command