|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.util.EventObject
|
+--com.ibm.as400.resource.ResourceListEvent
The ResourceListEvent class represents a resource list event.
| Field Summary | |
static int |
LENGTH_CHANGED
Event ID indicating that the length of the list changed. |
static int |
LIST_CLOSED
Event ID indicating that the list is closed. |
static int |
LIST_COMPLETED
Event ID indicating that the list is completely loaded. |
static int |
LIST_IN_ERROR
Event ID indicating that the list is not completely loaded due to an error. |
static int |
LIST_OPENED
Event ID indicating that the list is opened. |
static int |
RESOURCE_ADDED
Event ID indicating that a resource is added to the list. |
| Fields inherited from class java.util.EventObject |
source |
| Constructor Summary | |
ResourceListEvent(java.lang.Object source,
int eventID)
Constructs a ResourceListEvent object. |
|
ResourceListEvent(java.lang.Object source,
int eventID,
long length)
Constructs a ResourceListEvent object. |
|
ResourceListEvent(java.lang.Object source,
int eventID,
Resource resource,
long index)
Constructs a ResourceListEvent object. |
|
| Method Summary | |
int |
getID()
Returns the event ID. |
long |
getIndex()
Returns the index of the associated resource within the list. |
long |
getLength()
Returns the length of the list. |
Resource |
getResource()
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 |
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
| Constructor Detail |
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.| Method Detail |
public int getID()
public long getIndex()
public long getLength()
public Resource getResource()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||