|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A listener interface for receiving notification of status changes and read / write operations
in an IndyComponent
.
Classes implementing this interface can register their interest in a given IndyComponent
instance using the interface.
IndyComponent
,
IndyComponent.addComponentListener(IndyComponentListener)
Method Summary | |
void |
onBeginWork(IndyComponent sender,
IndyComponent.WorkMode workMode,
int size)
Signals that the IndyComponent passed in sender has
commenced a chunk of work of the given IndyComponent.WorkMode that will entail
processing size bytes. |
void |
onEndWork(IndyComponent sender,
IndyComponent.WorkMode workMode)
Signals that a chunk of work of the given IndyComponent.WorkMode has been
compoleted by the IndyComponent sender |
void |
onStatus(IndyComponent sender,
Status status,
java.lang.String statusText)
Signals a state change in the IndyComponent passed in the sender
parameter. |
void |
onWork(IndyComponent sender,
IndyComponent.WorkMode workMode,
int workCount)
Signals that a piece of work of a given IndyComponent.WorkMode undertaken by
the IndyComponent sender has progressed by workCount
bytes. |
Method Detail |
public void onStatus(IndyComponent sender, Status status, java.lang.String statusText)
IndyComponent
passed in the sender
parameter. The new state is an instance of Status
, and a string representation
of this information is also provided which can be fed back to the user.sender
- The IndyComponent
whose state has changed.status
- The new Status
of the component.statusText
- A friendly string represention of the state change.IndyComponent
,
Status
public void onBeginWork(IndyComponent sender, IndyComponent.WorkMode workMode, int size)
IndyComponent
passed in sender
has
commenced a chunk of work of the given IndyComponent.WorkMode
that will entail
processing size
bytes. If size=0
then it can be ignored.sender
- The IndyComponent
starting a chunk of work.workMode
- The WorkMode
of this workworkCountMax
- The size of the job.IndyComponent
,
IndyComponent.WorkMode
public void onWork(IndyComponent sender, IndyComponent.WorkMode workMode, int workCount)
IndyComponent.WorkMode
undertaken by
the IndyComponent
sender
has progressed by workCount
bytes.sender
- The IndyComponent
that is workingworkMode
- The WorkMode
of the work underway.workCount
- The progress made.IndyComponent
,
IndyComponent.WorkMode
public void onEndWork(IndyComponent sender, IndyComponent.WorkMode workMode)
IndyComponent.WorkMode
has been
compoleted by the IndyComponent
sender
sender
- The IndyComponent
that has completed workworkMode
- The WorkMode
of the completed work.IndyComponent
,
IndyComponent.WorkMode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |