public class ResourceListEvent
extends java.util.EventObject
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.
|
Constructor and Description |
---|
ResourceListEvent(java.lang.Object source,
int eventID)
Deprecated.
Constructs a ResourceListEvent object.
|
ResourceListEvent(java.lang.Object source,
int eventID,
long length)
Deprecated.
Constructs a ResourceListEvent object.
|
ResourceListEvent(java.lang.Object source,
int eventID,
Resource resource,
long index)
Deprecated.
Constructs a ResourceListEvent object.
|
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.
|
public static final int LENGTH_CHANGED
public static final int LIST_CLOSED
public static final int LIST_COMPLETED
public static final int LIST_IN_ERROR
public static final int LIST_OPENED
public static final int RESOURCE_ADDED
public ResourceListEvent(java.lang.Object source, int eventID)
source
- The source.eventID
- The event ID.public ResourceListEvent(java.lang.Object source, int eventID, Resource resource, long index)
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.public ResourceListEvent(java.lang.Object source, int eventID, long length)
source
- The source.eventID
- The event ID.length
- The list length.public int getID()
public long getIndex()
public long getLength()
public Resource getResource()