com.ibm.as400.resource
Class ResourceListEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.ibm.as400.resource.ResourceListEvent
All Implemented Interfaces:
Serializable

Deprecated. Use packages com.ibm.as400.access and com.ibm.as400.access.list instead.

public class ResourceListEvent
extends EventObject

The ResourceListEvent class represents a resource list event.

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
static int LENGTH_CHANGED
          Deprecated. Event ID indicating that the length of the list changed.
static int LIST_CLOSED
          Deprecated. Event ID indicating that the list is closed.
static int LIST_COMPLETED
          Deprecated. Event ID indicating that the list is completely loaded.
static int LIST_IN_ERROR
          Deprecated. Event ID indicating that the list is not completely loaded due to an error.
static int LIST_OPENED
          Deprecated. Event ID indicating that the list is opened.
static int RESOURCE_ADDED
          Deprecated. Event ID indicating that a resource is added to the list.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
Constructor and Description
ResourceListEvent(Object source, int eventID)
          Deprecated. Constructs a ResourceListEvent object.
ResourceListEvent(Object source, int eventID, long length)
          Deprecated. Constructs a ResourceListEvent object.
ResourceListEvent(Object source, int eventID, Resource resource, long index)
          Deprecated. Constructs a ResourceListEvent object.
 
Method Summary
Modifier and Type Method and Description
 int getID()
          Deprecated. Returns the event ID.
 long getIndex()
          Deprecated. Returns the index of the associated resource within the list.
 long getLength()
          Deprecated. Returns the length of the list.
 Resource getResource()
          Deprecated. Returns the associated resource.
 
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

LENGTH_CHANGED

public static final int LENGTH_CHANGED
Deprecated. 
Event ID indicating that the length of the list changed.

See Also:
Constant Field Values

LIST_CLOSED

public static final int LIST_CLOSED
Deprecated. 
Event ID indicating that the list is closed.

See Also:
Constant Field Values

LIST_COMPLETED

public static final int LIST_COMPLETED
Deprecated. 
Event ID indicating that the list is completely loaded.

See Also:
Constant Field Values

LIST_IN_ERROR

public static final int LIST_IN_ERROR
Deprecated. 
Event ID indicating that the list is not completely loaded due to an error.

See Also:
Constant Field Values

LIST_OPENED

public static final int LIST_OPENED
Deprecated. 
Event ID indicating that the list is opened.

See Also:
Constant Field Values

RESOURCE_ADDED

public static final int RESOURCE_ADDED
Deprecated. 
Event ID indicating that a resource is added to the list.

See Also:
Constant Field Values
Constructor Detail

ResourceListEvent

public ResourceListEvent(Object source,
                         int eventID)
Deprecated. 
Constructs a ResourceListEvent object.

Parameters:
source - The source.
eventID - The event ID.

ResourceListEvent

public ResourceListEvent(Object source,
                         int eventID,
                         Resource resource,
                         long index)
Deprecated. 
Constructs a ResourceListEvent object.

Parameters:
source - The source.
eventID - The event ID.
resource - The associated resource, or null if none.
index - The index of the associated resource within the list.

ResourceListEvent

public ResourceListEvent(Object source,
                         int eventID,
                         long length)
Deprecated. 
Constructs a ResourceListEvent object.

Parameters:
source - The source.
eventID - The event ID.
length - The list length.
Method Detail

getID

public int getID()
Deprecated. 
Returns the event ID.

Returns:
The event ID.

getIndex

public long getIndex()
Deprecated. 
Returns the index of the associated resource within the list.

Returns:
The index of the associated resource within the list, or -1 if there is no associated resource.

getLength

public long getLength()
Deprecated. 
Returns the length of the list.

Returns:
The length the list, or -1 if the length of the list is not relevant.

getResource

public Resource getResource()
Deprecated. 
Returns the associated resource.

Returns:
The associated resource, or null if none.