|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.sqlpower.swingui.SPSwingWorker
ca.sqlpower.swingui.MonitorableWorker
ca.sqlpower.architect.swingui.CompareDMPanel.SourceOrTargetStuff.CatalogPopulator
public class CompareDMPanel.SourceOrTargetStuff.CatalogPopulator
Finds all the children of a database and puts them in the GUI.
| Constructor Summary | |
|---|---|
CompareDMPanel.SourceOrTargetStuff.CatalogPopulator(ArchitectSwingSession session)
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Checks the datasource selected in the databaseDropdown, and starts a worker thread to read its contents if it exists. |
void |
cleanup()
Does GUI cleanup work on the Swing EDT once the worker is done. |
void |
doStuff()
Populates the database db which got set up in actionPerformed(). |
boolean |
isFinished()
|
void |
setDefaultCatalog(java.lang.String def)
If select is a valid catalog of the database this sets a string that will be used as a default item to select for the catalog next time the list will be redrawn, (this will happen only once). |
void |
setDefaultSchema(java.lang.String def)
If select is a valid schema of the database and there is no catalogs for this database this sets a string that will be used as a default item to select for the schema next time the list will be redrawn, (this will happen only once). |
| Methods inherited from class ca.sqlpower.swingui.SPSwingWorker |
|---|
addTaskTerminationListener, getCleanupExceptionMessage, getDoStuffException, getNextProcess, isCanceled, isCancelled, kill, removeTaskTerminationListener, run, setCancelled, setCleanupExceptionMessage, setDoStuffException, setNextProcess |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ca.sqlpower.util.Monitorable |
|---|
isCancelled, setCancelled |
| Constructor Detail |
|---|
public CompareDMPanel.SourceOrTargetStuff.CatalogPopulator(ArchitectSwingSession session)
| Method Detail |
|---|
public void setDefaultCatalog(java.lang.String def)
select - The name of the item to selectpublic void setDefaultSchema(java.lang.String def)
select - The name of the item to selectpublic void actionPerformed(java.awt.event.ActionEvent e)
Otherwise, clears out the catalog and schema dropdowns and does not start a worker thread.
actionPerformed in interface java.awt.event.ActionListener
public void doStuff()
throws java.lang.Exception
doStuff in class ca.sqlpower.swingui.SPSwingWorkerjava.lang.Exception
public void cleanup()
throws ArchitectException
This work involves:
cleanup in class ca.sqlpower.swingui.SPSwingWorkerArchitectExceptionpublic boolean isFinished()
isFinished in interface ca.sqlpower.util.Monitorable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||