uk.ac.starlink.table.gui
Interface TableConsumer

All Known Implementing Classes:
BasicTableConsumer

public interface TableConsumer

Interface which provides callback methods for a table load. The correct sequence must be observed when an instance of this class is used: you must either call

loadStarted(java.lang.String) followed by loadSucceeded(uk.ac.starlink.table.StarTable) or
or
loadStarted(java.lang.String) followed by loadFailed(java.lang.Throwable).
You can't nest these. All these calls must be performed from the event dispatch thread.

Since:
29 Nov 2004
See Also:
TableLoadChooser

Method Summary
 void loadFailed(Throwable th)
          Called when a table load has failed for some reason.
 void loadStarted(String id)
          Called when an attempt to load a table has been initiated.
 void loadSucceeded(StarTable table)
          Called when a table has successfully been loaded.
 

Method Detail

loadStarted

public void loadStarted(String id)
Called when an attempt to load a table has been initiated.

Parameters:
id - identifier for the source of the table (such as a filename)

loadSucceeded

public void loadSucceeded(StarTable table)
Called when a table has successfully been loaded.

Parameters:
table - the table that has been acquired

loadFailed

public void loadFailed(Throwable th)
Called when a table load has failed for some reason.

Parameters:
th - exception describing what went wrong (may be null)

Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved.