|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.epfl.lsr.apex.APEXStatus
A status listener for APEX operations.
You can either use the blocking methodsgetStatus
or getReason
,
or redefine the receivedStatus
method or add an ActionListener
to receive status events.
Constructor Summary | |
APEXStatus()
Instantiates a new APEX status. |
|
APEXStatus(ActionListener listener)
Instantiates a new APEX status with an associated ActionListener
Please consider the possibility to redefine the receivedStatus
method for reuse.
|
|
APEXStatus(ActionListener listener,
Object obj)
Instantiates a new APEX status with an associated ActionListener
and an object for reuse (e.g. in actionPerformed )
Please consider the possibility to redefine the receivedStatus
method for reuse.
|
|
APEXStatus(Object obj)
Instantiates a new APEX status containig an optional object for later reuse. |
Method Summary | |
void |
endStatus()
Can be called from the application to disable and terminate the status and release blocked threads. |
Object |
getObject()
Returns the object associated to this status |
int |
getStatusCode()
Returns the status code of this status or blocks if the status code is not known yet. |
String |
getStatusReason()
Returns the textual reason of this status or blocks if the status code is not known yet. |
void |
receivedStatus(APEXStatus status)
Can be redefined in order to call methods within the application on an event. |
void |
setActionListener(ActionListener listener)
Sets an ActionListener on this status which
is activated is a status update is performes. |
void |
setObject(Object obj)
Sets an object associated to this status |
void |
setStatus(int code)
Is called internally if the status for this status is known. |
void |
setStatus(int code,
String reason)
Is called internally if the status for this status is known. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public APEXStatus()
Instantiates a new APEX status.
Please consider the possibility to redefine the receivedStatus
method for reuse.
public APEXStatus(Object obj)
Instantiates a new APEX status containig an optional object for later reuse.
Please consider the possibility to redefine the receivedStatus
method for reuse.
public APEXStatus(ActionListener listener)
Instantiates a new APEX status with an associated ActionListener
Please consider the possibility to redefine the receivedStatus
method for reuse.
listener
- An action listenerpublic APEXStatus(ActionListener listener, Object obj)
Instantiates a new APEX status with an associated ActionListener
and an object for reuse (e.g. in actionPerformed
)
Please consider the possibility to redefine the receivedStatus
method for reuse.
listener
- An action listenerobj
- An object associated to this statusMethod Detail |
public void setActionListener(ActionListener listener)
ActionListener
on this status which
is activated is a status update is performes.
listener
- An action listenerpublic void setStatus(int code)
code
- A status codepublic void setStatus(int code, String reason)
code
- A status codereason
- A textual reasonpublic int getStatusCode()
public String getStatusReason()
public void endStatus()
public void receivedStatus(APEXStatus status)
status
- An APEXStatus objectpublic Object getObject()
public void setObject(Object obj)
obj
- The associated object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |