org.eclipse.ercp.swt.mobile
Class MobileDeviceEvent

java.lang.Object
  extended byorg.eclipse.swt.events.TypedEvent
      extended byorg.eclipse.ercp.swt.mobile.MobileDeviceEvent

public class MobileDeviceEvent
extends TypedEvent

Instances of this class are sent as a result of device configuration changes. In the case of an inputChanged event, the data field contains an Input object. In the case of a screenChanged event, the data field contains a Screen object.

See Also:
MobileDeviceListener

Field Summary
static int ADDED
          This indicates that a new feature has become available.
static int CLOSED
          This indicates that internal screens and input features are no longer active.
 java.lang.Object feature
          The instance of an Input or Screen object being added or removed when the device configuration changes.
static int OPENED
          This indicates that internal screens and input features are now active.
static int REMOVED
          This indicates that a feature is no longer available.
 int type
          the event type.
 
Fields inherited from class org.eclipse.swt.events.TypedEvent
data, display, time, widget
 
Constructor Summary
MobileDeviceEvent(MobileDevice device)
          Constructs a new instance of this class and associates it with the given mobile device.
 
Methods inherited from class org.eclipse.swt.events.TypedEvent
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OPENED

public static final int OPENED
This indicates that internal screens and input features are now active.

See Also:
Constant Field Values

CLOSED

public static final int CLOSED
This indicates that internal screens and input features are no longer active.

See Also:
Constant Field Values

ADDED

public static final int ADDED
This indicates that a new feature has become available.

See Also:
Constant Field Values

REMOVED

public static final int REMOVED
This indicates that a feature is no longer available.

See Also:
Constant Field Values

type

public int type
the event type.


feature

public java.lang.Object feature
The instance of an Input or Screen object being added or removed when the device configuration changes. The value is null when the type value is not ADDED or REMOVED.

Constructor Detail

MobileDeviceEvent

public MobileDeviceEvent(MobileDevice device)
Constructs a new instance of this class and associates it with the given mobile device.

Parameters:
device - the device object which is the source of this event
See Also:
MobileDevice