Package uk.ac.starlink.topcat
Class TopcatLoadClient
java.lang.Object
uk.ac.starlink.topcat.TopcatLoadClient
- All Implemented Interfaces:
uk.ac.starlink.table.gui.TableLoadClient
Load client implementation which loads tables into TOPCAT.
- Since:
- 17 Sep 2010
- Author:
- Mark Taylor
-
Constructor Summary
ConstructorsConstructorDescriptionTopcatLoadClient
(Component parent, ControlWindow controlWin) Constructs a load client with popup windows for warnings and errors.TopcatLoadClient
(Component parent, ControlWindow controlWin, boolean popups) Constructs a load client optionally with popup windows for warnings and errors. -
Method Summary
Modifier and TypeMethodDescriptionprotected TopcatModel
addTable
(uk.ac.starlink.table.StarTable table) Takes a table and inserts it into the TOPCAT application, performing some housekeeping tasks at the same time.void
endSequence
(boolean cancelled) int
Returns the number of tables successfully loaded by this client.uk.ac.starlink.table.StarTableFactory
boolean
loadFailure
(Throwable error) boolean
loadSuccess
(uk.ac.starlink.table.StarTable table) void
void
-
Constructor Details
-
TopcatLoadClient
Constructs a load client with popup windows for warnings and errors.- Parameters:
parent
- parent componentcontrolWin
- control window
-
TopcatLoadClient
Constructs a load client optionally with popup windows for warnings and errors.- Parameters:
parent
- parent componentcontrolWin
- control windowpopups
- true iff popup windows should be used to inform the user of possible problems
-
-
Method Details
-
getTableFactory
public uk.ac.starlink.table.StarTableFactory getTableFactory()- Specified by:
getTableFactory
in interfaceuk.ac.starlink.table.gui.TableLoadClient
-
startSequence
public void startSequence()- Specified by:
startSequence
in interfaceuk.ac.starlink.table.gui.TableLoadClient
-
setLabel
- Specified by:
setLabel
in interfaceuk.ac.starlink.table.gui.TableLoadClient
-
loadSuccess
public boolean loadSuccess(uk.ac.starlink.table.StarTable table) - Specified by:
loadSuccess
in interfaceuk.ac.starlink.table.gui.TableLoadClient
-
addTable
Takes a table and inserts it into the TOPCAT application, performing some housekeeping tasks at the same time.- Parameters:
table
- table to insert- Returns:
- topcat model which holds the table
-
loadFailure
- Specified by:
loadFailure
in interfaceuk.ac.starlink.table.gui.TableLoadClient
-
endSequence
public void endSequence(boolean cancelled) - Specified by:
endSequence
in interfaceuk.ac.starlink.table.gui.TableLoadClient
-
getLoadCount
public int getLoadCount()Returns the number of tables successfully loaded by this client.- Returns:
- load count
-