ca.sqlpower.architect.swingui.action
Class CreateRelationshipAction
java.lang.Object
javax.swing.AbstractAction
ca.sqlpower.architect.swingui.action.AbstractArchitectAction
ca.sqlpower.architect.swingui.action.CreateRelationshipAction
- All Implemented Interfaces:
- SelectionListener, PlayPen.CancelableListener, java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
public class CreateRelationshipAction
- extends AbstractArchitectAction
- implements java.awt.event.ActionListener, SelectionListener, PlayPen.CancelableListener
- See Also:
- Serialized Form
| Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
| Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
| Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
identifying
protected boolean identifying
pkTable
protected TablePane pkTable
fkTable
protected TablePane fkTable
active
protected boolean active
- This property is true when we are actively creating a
relationship. The original implementation was to add and
remove this action from the playpen selection listener list,
but it caused ConcurrentModificationException.
CreateRelationshipAction
public CreateRelationshipAction(ArchitectSwingSession session,
boolean identifying,
PlayPen.CursorManager cm)
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent evt)
- Specified by:
actionPerformed in interface java.awt.event.ActionListener
doCreateRelationship
public static void doCreateRelationship(SQLTable pkTable,
SQLTable fkTable,
PlayPen pp,
boolean identifying)
itemSelected
public void itemSelected(SelectionEvent e)
- Description copied from interface:
SelectionListener
- Called whenever an item is selected. The selected item is the
event's source.
- Specified by:
itemSelected in interface SelectionListener
itemDeselected
public void itemDeselected(SelectionEvent e)
- Description copied from interface:
SelectionListener
- Called whenever an item is deselected. The deselected item is the
event's source.
- Specified by:
itemDeselected in interface SelectionListener
isActive
public boolean isActive()
setActive
public void setActive(boolean active)
cancel
public void cancel()
- Specified by:
cancel in interface PlayPen.CancelableListener
Copyright © 2003-2007 SQL Power Group Inc. www.sqlpower.ca