public interface TableLoadClient
startSequence()
setLabel(java.lang.String)
, loadSuccess(uk.ac.starlink.table.StarTable)
, loadFailure(java.lang.Throwable)
(any number of times, in any order)endSequence(boolean)
Modifier and Type | Method and Description |
---|---|
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.
|
StarTableFactory getTableFactory()
void startSequence()
void setLabel(String label)
boolean loadSuccess(StarTable table)
table
- loaded tableboolean loadFailure(Throwable error)
error
- errorvoid 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 actionCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.