|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
uk.ac.starlink.table.gui.TableLoadPanel
public abstract class TableLoadPanel
Component which aggregates a TableLoadDialog and buttons (OK and Cancel)
to control it.
The utility method (loadTables is a convenient
way to do synchronous table loading.
Concrete implementations of this abstract class must implement the
getLoadClient() method to determine how loaded tables will be
consumed.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| 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 | |
|---|---|
TableLoadPanel(TableLoadDialog tld,
StarTableFactory tfact)
Constructor. |
|
| Method Summary | |
|---|---|
Action |
getCancelAction()
Returns the action which cancels a load in progress. |
protected abstract TableLoadClient |
getLoadClient()
Returns a GUI consumer for any tables loaded by this panel. |
Action |
getOkAction()
Returns the action which starts to load tables. |
JProgressBar |
getProgressBar()
Returns the progress bar used by this panel. |
boolean |
isLoading()
Indicates whether a load is currently in progress. |
static StarTable |
loadTable(Component parent,
TableLoadDialog tld,
StarTableFactory tfact)
Displays a modal load dialogue to load a single table, and returns the tables it has loaded when finished. |
static StarTable[] |
loadTables(Component parent,
TableLoadDialog tld,
StarTableFactory tfact)
Displays a modal load dialogue to load (possibly) multiple tables, and returns the tables it has loaded when finished. |
static void |
main(String[] args)
Test method. |
void |
setProgressBar(JProgressBar progBar)
Sets the progress bar used by this panel. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TableLoadPanel(TableLoadDialog tld,
StarTableFactory tfact)
tld - load dialoguetfact - representative table factory
(not necessarily the one used to create tables)| Method Detail |
|---|
protected abstract TableLoadClient getLoadClient()
public Action getOkAction()
public Action getCancelAction()
public boolean isLoading()
public JProgressBar getProgressBar()
public void setProgressBar(JProgressBar progBar)
progBar - progress bar
public static StarTable loadTable(Component parent,
TableLoadDialog tld,
StarTableFactory tfact)
throws IOException
parent - parent componenttld - load dialoguetfact - table factory
IOException
public static StarTable[] loadTables(Component parent,
TableLoadDialog tld,
StarTableFactory tfact)
throws IOException
parent - parent componenttld - load dialoguetfact - table factory
IOException
public static void main(String[] args)
throws IOException
IOException
|
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 | ||||||||