ca.sqlpower.architect.swingui
Class CompareDMPanel.SourceOrTargetStuff

java.lang.Object
  extended by ca.sqlpower.architect.swingui.CompareDMPanel.SourceOrTargetStuff
Enclosing class:
CompareDMPanel

public class CompareDMPanel.SourceOrTargetStuff
extends java.lang.Object

Contains all of the properties and GUI components that relate to the source or target system. The idea is, the panel will have two instances of this class: One for the "source" system, and the other for the "target" system.

Note: this class is not private because the test needs to refer to it. :(


Nested Class Summary
 class CompareDMPanel.SourceOrTargetStuff.CatalogPopulator
          Finds all the children of a database and puts them in the GUI.
 class CompareDMPanel.SourceOrTargetStuff.OptionGroupListener
          This listener is used to enable/disable JComponents when one of the database choosing options is choosen (for both source and target selections).
 class CompareDMPanel.SourceOrTargetStuff.SchemaPopulator
          Finds all the children of a catalog and puts them in the GUI.
 
Constructor Summary
CompareDMPanel.SourceOrTargetStuff()
           
 
Method Summary
 SQLDatabase getDatabase()
          Returns the currently selected database.
 javax.swing.JDialog getNewConnectionDialog()
           
 SQLObject getObjectToCompare()
          Figures out which SQLObject holds the tables we want to compare, and returns it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompareDMPanel.SourceOrTargetStuff

public CompareDMPanel.SourceOrTargetStuff()
Method Detail

getNewConnectionDialog

public javax.swing.JDialog getNewConnectionDialog()

getObjectToCompare

public SQLObject getObjectToCompare()
                             throws ArchitectException,
                                    java.io.IOException
Figures out which SQLObject holds the tables we want to compare, and returns it.

Throws:
ArchitectException
java.io.IOException
java.io.IOException

getDatabase

public SQLDatabase getDatabase()
Returns the currently selected database. Only creates a new SQLDatabase instance if necessary.



Copyright © 2003-2007 SQL Power Group Inc. www.sqlpower.ca