ca.sqlpower.architect.swingui
Class RelationshipEditPanel

java.lang.Object
  extended by ca.sqlpower.architect.swingui.RelationshipEditPanel
All Implemented Interfaces:
SQLObjectListener, ca.sqlpower.swingui.DataEntryPanel

public class RelationshipEditPanel
extends java.lang.Object
implements SQLObjectListener, ca.sqlpower.swingui.DataEntryPanel


Constructor Summary
RelationshipEditPanel(ArchitectSwingSession session)
           
 
Method Summary
 boolean applyChanges()
           
 void dbChildrenInserted(SQLObjectEvent e)
           
 void dbChildrenRemoved(SQLObjectEvent e)
          Checks to see if its respective relationship is removed from playpen.
 void dbObjectChanged(SQLObjectEvent e)
           
 void dbStructureChanged(SQLObjectEvent e)
           
 void discardChanges()
           
 javax.swing.JPanel getPanel()
           
 boolean hasUnsavedChanges()
           
 void setEditDialog(javax.swing.JDialog editDialog)
           
 void setRelationship(SQLRelationship r)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelationshipEditPanel

public RelationshipEditPanel(ArchitectSwingSession session)
Method Detail

setRelationship

public void setRelationship(SQLRelationship r)

applyChanges

public boolean applyChanges()
Specified by:
applyChanges in interface ca.sqlpower.swingui.DataEntryPanel

discardChanges

public void discardChanges()
Specified by:
discardChanges in interface ca.sqlpower.swingui.DataEntryPanel

getPanel

public javax.swing.JPanel getPanel()
Specified by:
getPanel in interface ca.sqlpower.swingui.DataEntryPanel

hasUnsavedChanges

public boolean hasUnsavedChanges()
Specified by:
hasUnsavedChanges in interface ca.sqlpower.swingui.DataEntryPanel

dbChildrenInserted

public void dbChildrenInserted(SQLObjectEvent e)
Specified by:
dbChildrenInserted in interface SQLObjectListener

dbChildrenRemoved

public void dbChildrenRemoved(SQLObjectEvent e)
Checks to see if its respective relationship is removed from playpen. If yes, exit the editing dialog window.

Specified by:
dbChildrenRemoved in interface SQLObjectListener

dbObjectChanged

public void dbObjectChanged(SQLObjectEvent e)
Specified by:
dbObjectChanged in interface SQLObjectListener

dbStructureChanged

public void dbStructureChanged(SQLObjectEvent e)
Specified by:
dbStructureChanged in interface SQLObjectListener

setEditDialog

public void setEditDialog(javax.swing.JDialog editDialog)


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