|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TableLoadClient
Interface for a GUI-based consumer of tables which are being loaded. All its methods are called on the Event Dispatch Thread, and must be called in sequence:
startSequence()
setLabel(java.lang.String)
, loadSuccess(uk.ac.starlink.table.StarTable)
, loadFailure(java.lang.Throwable)
(any number of times, in any order)endSequence(boolean)
Method Summary | |
---|---|
void |
endSequence(boolean cancelled)
Indicates that no more loadSuccess/loadFailure methods will be invoked. |
StarTableFactory |
getTableFactory()
Returns the table factory via which all loaded tables will be produced. |
boolean |
loadFailure(Throwable error)
Presents a failure which has resulted from a table load attempt. |
boolean |
loadSuccess(StarTable table)
Presents a table which has been successfully loaded. |
void |
setLabel(String label)
Sets a short text string suitable for presenting to the user to indicate what is being loaded. |
void |
startSequence()
Called before any table load attempts are made. |
Method Detail |
---|
StarTableFactory getTableFactory()
void startSequence()
void setLabel(String label)
boolean loadSuccess(StarTable table)
table
- loaded table
boolean loadFailure(Throwable error)
error
- error
void endSequence(boolean cancelled)
cancelled
argument indicates whether the sequence
finished naturally, or was cancelled by a deliberate act of the user.
cancelled
- true iff the sequence was cancelled by a user action
|
Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |