Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.barteo.emulator.device.applet
Class AppletSoftButton  view AppletSoftButton download AppletSoftButton.java

java.lang.Object
  extended bycom.barteo.emulator.device.applet.AppletButton
      extended bycom.barteo.emulator.device.applet.AppletSoftButton
All Implemented Interfaces:
com.barteo.emulator.device.SoftButton

public class AppletSoftButton
extends AppletButton
implements com.barteo.emulator.device.SoftButton


Field Summary
(package private)  int alignment
           
(package private)  javax.microedition.lcdui.Command command
           
(package private)  java.util.Vector commandTypes
           
static int LEFT
           
(package private)  java.awt.Rectangle paintable
           
static int RIGHT
           
 
Fields inherited from class com.barteo.emulator.device.applet.AppletButton
chars, key, name, rectangle
 
Constructor Summary
AppletSoftButton(java.lang.String name, java.awt.Rectangle rectangle, java.lang.String keyName, java.awt.Rectangle paintable, java.lang.String alignmentName, java.util.Vector commands)
           
 
Method Summary
 void addCommandType(int commandType)
           
 javax.microedition.lcdui.Command getCommand()
          Gets the command attribute of the SoftButton object
 void paint(java.awt.Graphics g)
           
 boolean preferredCommandType(javax.microedition.lcdui.Command cmd)
          Check if the command is of a type usually associated with this SoftButton.
 void setCommand(javax.microedition.lcdui.Command cmd)
          Sets the command attribute of the SoftButton object
 
Methods inherited from class com.barteo.emulator.device.applet.AppletButton
getChars, getKey, getName, getRectangle, isChar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LEFT

public static int LEFT

RIGHT

public static int RIGHT

commandTypes

java.util.Vector commandTypes

command

javax.microedition.lcdui.Command command

paintable

java.awt.Rectangle paintable

alignment

int alignment
Constructor Detail

AppletSoftButton

public AppletSoftButton(java.lang.String name,
                        java.awt.Rectangle rectangle,
                        java.lang.String keyName,
                        java.awt.Rectangle paintable,
                        java.lang.String alignmentName,
                        java.util.Vector commands)
Method Detail

setCommand

public void setCommand(javax.microedition.lcdui.Command cmd)
Sets the command attribute of the SoftButton object

Specified by:
setCommand in interface com.barteo.emulator.device.SoftButton

getCommand

public javax.microedition.lcdui.Command getCommand()
Gets the command attribute of the SoftButton object

Specified by:
getCommand in interface com.barteo.emulator.device.SoftButton

paint

public void paint(java.awt.Graphics g)

preferredCommandType

public boolean preferredCommandType(javax.microedition.lcdui.Command cmd)
Description copied from interface: com.barteo.emulator.device.SoftButton
Check if the command is of a type usually associated with this SoftButton. E.g. "BACK" commands are normally placed only on a particular button.

Specified by:
preferredCommandType in interface com.barteo.emulator.device.SoftButton

addCommandType

public void addCommandType(int commandType)