|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JOptionPane | +--uk.ac.starlink.table.gui.StarTableSaver
Dialog which permits a user to save a StarTable
in a place
and format of choice. It should be able to provide suitable dialogs
for all the supported table types; in particular it includes a file
browser and special JDBC connection dialog.
Field Summary |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
StarTableSaver()
Constructs a StarTableSaver. |
Method Summary | |
JFileChooser |
getFileChooser()
Returns the file chooser used by this saver for file browsing. |
String |
getFormat()
Returns the format selected in which to write the table. |
SQLWriteDialog |
getSQLWriteDialog()
Returns the SQLWriteDialog object used for getting JDBC/SQL table specs from the user. |
StarTableOutput |
getStarTableOutput()
Returns the StarTableOutput object which this saver uses to do the actual writing of the StarTables. |
boolean |
saveJDBCTable(StarTable startab,
Component parent)
Saves the StarTable over a JDBC connection following a specialised JDBC dialog. |
void |
saveTable(StarTable startab,
Component parent)
Saves a given StarTable, requesting relevant information from the user. |
static void |
saveTable(StarTableOutput sto,
StarTable startab,
String loc,
String format,
Component parent)
Invokes the writeStarTable method of a StarTableOutput in a graphical environment to save a table. |
boolean |
saveTableFromBrowser(StarTable startab,
Component parent)
Saves the StarTable in a position selected by the user by browsing files in a filechooser. |
void |
setSQLWriteDialog(SQLWriteDialog sqlDialog)
Sets the SQLWriteDialog object used for getting JDBC/SQL table specs from the user. |
void |
setStarTableOutput(StarTableOutput sto)
Sets the StarTableOutput object which this saver uses to do the actual writing of the StarTables. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public StarTableSaver()
Method Detail |
public String getFormat()
public void setStarTableOutput(StarTableOutput sto)
sto
- the new StarTableOutput to usepublic StarTableOutput getStarTableOutput()
public void saveTable(StarTable startab, Component parent)
startab
- the table to saveparent
- the parent component, used for positioning
dialog boxespublic static void saveTable(StarTableOutput sto, StarTable startab, String loc, String format, Component parent)
sto
- the object which handles the actual table writingstartab
- the table to writeloc
- the location to which the table should be writtenformat
- the format type for writing the tableparent
- the parent window (may be null)public boolean saveTableFromBrowser(StarTable startab, Component parent)
startab
- the table to saveparent
- the parent component used for positioning windows
public JFileChooser getFileChooser()
public boolean saveJDBCTable(StarTable startab, Component parent)
startab
- the table to saveparent
- the parent component used for positioning windows
public SQLWriteDialog getSQLWriteDialog()
public void setSQLWriteDialog(SQLWriteDialog sqlDialog)
sqlDialog
- an SQLWriteDialog
|
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 |