org.microemu.device.impl
Class DeviceImpl

java.lang.Object
  extended by org.microemu.device.impl.DeviceImpl
All Implemented Interfaces:
org.microemu.device.Device
Direct Known Subclasses:
Device

public abstract class DeviceImpl
extends java.lang.Object
implements org.microemu.device.Device


Field Summary
static java.lang.String DEFAULT_LOCATION
           
 
Constructor Summary
DeviceImpl()
           
 
Method Summary
static DeviceImpl create(EmulatorContext context, java.lang.ClassLoader classLoader, java.lang.String descriptorLocation, java.lang.Class defaultDeviceClass)
           
 void destroy()
           
 java.util.Vector getButtons()
           
 java.lang.String getDescriptorLocation()
          Deprecated.  
 org.microemu.device.DeviceDisplay getDeviceDisplay()
           
 EmulatorContext getEmulatorContext()
           
 org.microemu.device.FontManager getFontManager()
           
 org.microemu.device.InputMethod getInputMethod()
           
 java.lang.String getName()
           
 javax.microedition.lcdui.Image getNormalImage()
           
 javax.microedition.lcdui.Image getOverImage()
           
 javax.microedition.lcdui.Image getPressedImage()
           
 java.util.Vector getSoftButtons()
           
 java.util.Map getSystemProperties()
           
 boolean hasPointerEvents()
           
 boolean hasPointerMotionEvents()
           
 boolean hasRepeatEvents()
           
 void init()
           
 void init(EmulatorContext context)
          Deprecated. use Device.create(EmulatorContext context, ClassLoader classLoader, String descriptorLocation);
 void init(EmulatorContext context, java.lang.String descriptorLocation)
          Deprecated. use Device.create(EmulatorContext context, ClassLoader classLoader, String descriptorLocation);
protected  void loadConfig(java.lang.ClassLoader classLoader, java.lang.String base, XMLElement doc)
           
 boolean vibrate(int duration)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.microemu.device.Device
getUIFactory
 

Field Detail

DEFAULT_LOCATION

public static final java.lang.String DEFAULT_LOCATION
See Also:
Constant Field Values
Constructor Detail

DeviceImpl

public DeviceImpl()
Method Detail

create

public static DeviceImpl create(EmulatorContext context,
                                java.lang.ClassLoader classLoader,
                                java.lang.String descriptorLocation,
                                java.lang.Class defaultDeviceClass)
                         throws java.io.IOException
Throws:
java.io.IOException

init

public void init()
Specified by:
init in interface org.microemu.device.Device

init

public void init(EmulatorContext context)
Deprecated. use Device.create(EmulatorContext context, ClassLoader classLoader, String descriptorLocation);


init

public void init(EmulatorContext context,
                 java.lang.String descriptorLocation)
Deprecated. use Device.create(EmulatorContext context, ClassLoader classLoader, String descriptorLocation);


getDescriptorLocation

public java.lang.String getDescriptorLocation()
Deprecated. 


destroy

public void destroy()
Specified by:
destroy in interface org.microemu.device.Device

getName

public java.lang.String getName()
Specified by:
getName in interface org.microemu.device.Device

getEmulatorContext

public EmulatorContext getEmulatorContext()

getInputMethod

public org.microemu.device.InputMethod getInputMethod()
Specified by:
getInputMethod in interface org.microemu.device.Device

getFontManager

public org.microemu.device.FontManager getFontManager()
Specified by:
getFontManager in interface org.microemu.device.Device

getDeviceDisplay

public org.microemu.device.DeviceDisplay getDeviceDisplay()
Specified by:
getDeviceDisplay in interface org.microemu.device.Device

getNormalImage

public javax.microedition.lcdui.Image getNormalImage()
Specified by:
getNormalImage in interface org.microemu.device.Device

getOverImage

public javax.microedition.lcdui.Image getOverImage()
Specified by:
getOverImage in interface org.microemu.device.Device

getPressedImage

public javax.microedition.lcdui.Image getPressedImage()
Specified by:
getPressedImage in interface org.microemu.device.Device

getSoftButtons

public java.util.Vector getSoftButtons()
Specified by:
getSoftButtons in interface org.microemu.device.Device

getButtons

public java.util.Vector getButtons()
Specified by:
getButtons in interface org.microemu.device.Device

loadConfig

protected void loadConfig(java.lang.ClassLoader classLoader,
                          java.lang.String base,
                          XMLElement doc)
                   throws java.io.IOException
Throws:
java.io.IOException

hasPointerEvents

public boolean hasPointerEvents()
Specified by:
hasPointerEvents in interface org.microemu.device.Device

hasPointerMotionEvents

public boolean hasPointerMotionEvents()
Specified by:
hasPointerMotionEvents in interface org.microemu.device.Device

hasRepeatEvents

public boolean hasRepeatEvents()
Specified by:
hasRepeatEvents in interface org.microemu.device.Device

vibrate

public boolean vibrate(int duration)
Specified by:
vibrate in interface org.microemu.device.Device

getSystemProperties

public java.util.Map getSystemProperties()
Specified by:
getSystemProperties in interface org.microemu.device.Device


Copyright © 2001-2009 MicroEmulator Team. All Rights Reserved.