|
||||||||||
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.StarTableChooser
Dialog which permits selection of an existing StarTable
.
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 | |
StarTableChooser(StarTableFactory tabfact)
Constructs a StarTableChooser. |
Method Summary | |
JPanel |
getActionPanel()
Returns a container which can be used to hold custom controls. |
JFileChooser |
getFileChooser()
Returns the JFileChooser object used for file browsing. |
StarTable |
getJDBCTable(Component parent)
Returns a StarTable got by asking the user for an SQL query on a JDBC connection. |
StarTable |
getRandomTable(Component parent)
Invokes getTable(java.awt.Component) but ensures that the returned table
provides random access. |
SQLReadDialog |
getSQLReadDialog()
Returns the SQLReadDialog object used for getting JDBC/SQL queries from the user. |
StarTableFactory |
getStarTableFactory()
Returns the factory object which this chooser uses to resolve files into StarTables. |
StarTable |
getTable(Component parent)
Returns an existing StarTable object which has been selected by the user. |
static StarTable |
getTable(StarTableFactory tabfact,
String loc,
Component parent)
Invokes the makeStarTable method of a StarTableFactory in a graphical environment to make a table. |
StarTable |
getTableFromBrowser(Component parent)
Returns a StarTable from this chooser's file browser widget. |
void |
setSQLReadDialog(SQLReadDialog sqlDialog)
Sets the SQLReadDialog object used for getting JDBC/SQL queries from the user. |
void |
setStarTableFactory(StarTableFactory tabfact)
Sets the factory object which this chooser uses to resove files into StarTables. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public StarTableChooser(StarTableFactory tabfact)
Method Detail |
public StarTableFactory getStarTableFactory()
public void setStarTableFactory(StarTableFactory tabfact)
public StarTable getTable(Component parent)
parent
- the parent component, used for window positioning etc
public StarTable getRandomTable(Component parent)
getTable(java.awt.Component)
but ensures that the returned table
provides random access.
parent
- the parent component, used for window positioning etc
StarTable.isRandom()
is true,
or null.getTable(java.awt.Component)
public static StarTable getTable(StarTableFactory tabfact, String loc, Component parent)
tabfact
- the StarTableFactory to useloc
- the location of the new tableparent
- the parent window (may be null)
public StarTable getTableFromBrowser(Component parent)
parent
- the parent component, used for positioning
public JPanel getActionPanel()
public JFileChooser getFileChooser()
public StarTable getJDBCTable(Component parent)
parent
- the parent component, used for positioning
public SQLReadDialog getSQLReadDialog()
public void setSQLReadDialog(SQLReadDialog sqlDialog)
sqlDialog
- an SQLReadDialog
|
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 |