javax.microedition.lcdui
Class Spacer

java.lang.Object
  extended by javax.microedition.lcdui.Item
      extended by javax.microedition.lcdui.Spacer

public class Spacer
extends Item

Author:
Andre Nijholt

Field Summary
 
Fields inherited from class javax.microedition.lcdui.Item
cmdListener, commands, interactive, label, minHeight, minWidth, prefHeight, prefWidth
 
Constructor Summary
Spacer(int minWidth, int minHeight)
           
 
Method Summary
 void addCommand(Command cmd)
           
 void paint(Graphics g, int x, int y, int w, int h, boolean selected)
           
 void setDefaultCommand(Command cmd)
           
 void setLabel(String label)
           
 void setMinimumSize(int minWidth, int minHeight)
           
 
Methods inherited from class javax.microedition.lcdui.Item
getLabel, getMinimumHeight, getMinimumWidth, getPaintRequest, getPreferredHeight, getPreferredWidth, hideNotify, isInteractive, keyPressed, keyReleased, notifyStateChanged, removeCommand, repaint, setItemCommandListener, setPreferredSize, showNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Spacer

public Spacer(int minWidth,
              int minHeight)
Method Detail

addCommand

public void addCommand(Command cmd)
Overrides:
addCommand in class Item

setDefaultCommand

public void setDefaultCommand(Command cmd)

setLabel

public void setLabel(String label)

setMinimumSize

public void setMinimumSize(int minWidth,
                           int minHeight)

paint

public void paint(Graphics g,
                  int x,
                  int y,
                  int w,
                  int h,
                  boolean selected)
Specified by:
paint in class Item