com.jniwrapper.win32.shell.events
Class ShellEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycom.jniwrapper.win32.shell.events.ShellEvent
All Implemented Interfaces:
java.io.Serializable

public class ShellEvent
extends java.util.EventObject

An event that indicates that a shell event has occured. This event is passed to every ShellEventsListener.

See Also:
Serialized Form

Field Summary
static int SHCNE_ASSOCCHANGED
          A file type association has changed.
static int SHCNE_ATTRIBUTES
          The attributes of an item or folder have changed.
static int SHCNE_CREATE
          A nonfolder item has been created.
static int SHCNE_DELETE
          A nonfolder item has been deleted.
static int SHCNE_DRIVEADD
          A drive has been added.
static int SHCNE_DRIVEADDGUI
          A drive has been added and the Shell should create a new window for the drive.
static int SHCNE_DRIVEREMOVED
          A drive has been removed.
static int SHCNE_FREESPACE
          The amount of free space on a drive has changed.
static int SHCNE_MEDIAINSERTED
          Storage media has been inserted into a drive.
static int SHCNE_MEDIAREMOVED
          Storage media has been removed from a drive.
static int SHCNE_MKDIR
          A folder has been created.
static int SHCNE_NETSHARE
          A folder on the local computer is being shared via the network.
static int SHCNE_NETUNSHARE
          A folder on the local computer is no longer being shared via the network.
static int SHCNE_RENAMEFOLDER
          The name of a folder has changed.
static int SHCNE_RENAMEITEM
          The name of a nonfolder item has changed.
static int SHCNE_RMDIR
          A folder has been removed.
static int SHCNE_SERVERDISCONNECT
          The computer has disconnected from a server.
static int SHCNE_UPDATEDIR
          The contents of an existing folder have changed, but the folder still exists and has not been renamed.
static int SHCNE_UPDATEIMAGE
          An image in the system image list has changed.
static int SHCNE_UPDATEITEM
          An existing nonfolder item has changed, but the item still exists and has not been renamed.
 
Fields inherited from class java.util.EventObject
source
 
Method Summary
 int getId()
          Returns an ID of the event.
 Handle getItem1()
          First event-dependent value.
 Handle getItem2()
          Second event-dependent value.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SHCNE_ASSOCCHANGED

public static final int SHCNE_ASSOCCHANGED
A file type association has changed.

See Also:
Constant Field Values

SHCNE_ATTRIBUTES

public static final int SHCNE_ATTRIBUTES
The attributes of an item or folder have changed. The getItem1() function returns the item or folder that has changed.

See Also:
Constant Field Values

SHCNE_CREATE

public static final int SHCNE_CREATE
A nonfolder item has been created. The getItem1() function returns the item that was created.

See Also:
Constant Field Values

SHCNE_DELETE

public static final int SHCNE_DELETE
A nonfolder item has been deleted. The getItem1() function returns the item that was deleted.

See Also:
Constant Field Values

SHCNE_DRIVEADD

public static final int SHCNE_DRIVEADD
A drive has been added. The getItem1() function returns the root of the drive that was added.

See Also:
Constant Field Values

SHCNE_DRIVEADDGUI

public static final int SHCNE_DRIVEADDGUI
A drive has been added and the Shell should create a new window for the drive. The getItem1() function returns the root of the drive that was added.

See Also:
Constant Field Values

SHCNE_DRIVEREMOVED

public static final int SHCNE_DRIVEREMOVED
A drive has been removed. The getItem1() function returns the root of the drive that was removed.

See Also:
Constant Field Values

SHCNE_FREESPACE

public static final int SHCNE_FREESPACE
The amount of free space on a drive has changed. The getItem1() function returns the root of the drive on which the free space changed.

See Also:
Constant Field Values

SHCNE_MEDIAINSERTED

public static final int SHCNE_MEDIAINSERTED
Storage media has been inserted into a drive. The getItem1() function returns the root of the drive that contains the new media.

See Also:
Constant Field Values

SHCNE_MEDIAREMOVED

public static final int SHCNE_MEDIAREMOVED
Storage media has been removed from a drive. The getItem1() function returns the root of the drive from which the media was removed.

See Also:
Constant Field Values

SHCNE_MKDIR

public static final int SHCNE_MKDIR
A folder has been created. The getItem1() function returns the folder that was created.

See Also:
Constant Field Values

SHCNE_NETSHARE

public static final int SHCNE_NETSHARE
A folder on the local computer is being shared via the network. The getItem1() function returns the folder that is being shared.

See Also:
Constant Field Values

SHCNE_NETUNSHARE

public static final int SHCNE_NETUNSHARE
A folder on the local computer is no longer being shared via the network. The getItem1() function returns the folder that is no longer being shared.

See Also:
Constant Field Values

SHCNE_RENAMEFOLDER

public static final int SHCNE_RENAMEFOLDER
The name of a folder has changed. The getItem1() function returns the previous name of the folder. The getItem2() function returns the new name of the folder.

See Also:
Constant Field Values

SHCNE_RENAMEITEM

public static final int SHCNE_RENAMEITEM
The name of a nonfolder item has changed. The getItem1() function returns the previous name of the item. The getItem2() function returns the new name of the item.

See Also:
Constant Field Values

SHCNE_RMDIR

public static final int SHCNE_RMDIR
A folder has been removed. The getItem1() function returns the folder that was removed.

See Also:
Constant Field Values

SHCNE_SERVERDISCONNECT

public static final int SHCNE_SERVERDISCONNECT
The computer has disconnected from a server. The getItem1() function returns the server from which the computer was disconnected.

See Also:
Constant Field Values

SHCNE_UPDATEDIR

public static final int SHCNE_UPDATEDIR
The contents of an existing folder have changed, but the folder still exists and has not been renamed. The getItem1() function returns the folder that has changed. If a folder has been created, deleted, or renamed, use SHCNE_MKDIR, SHCNE_RMDIR, or SHCNE_RENAMEFOLDER, instead.

See Also:
Constant Field Values

SHCNE_UPDATEIMAGE

public static final int SHCNE_UPDATEIMAGE
An image in the system image list has changed.

Note: on Windows 95/98 The getItem1() function returns the index in the system image list that has changed.

Note: Windows NT/2000/XP The getItem1() function returns the index in the system image list that has changed.

See Also:
Constant Field Values

SHCNE_UPDATEITEM

public static final int SHCNE_UPDATEITEM
An existing nonfolder item has changed, but the item still exists and has not been renamed. The getItem1() function returns the item that has changed. If a nonfolder item has been created, deleted, or renamed, use SHCNE_CREATE, SHCNE_DELETE, or SHCNE_RENAMEITEM instead.

See Also:
Constant Field Values
Method Detail

getId

public int getId()
Returns an ID of the event.

Returns:
ID of the event

getItem1

public Handle getItem1()
First event-dependent value.

Returns:
event-dependent value

getItem2

public Handle getItem2()
Second event-dependent value.

Returns:
event-dependent value