1 package com.bonevich.erj.ui;
2
3 import com.bonevich.erj.model.ForeignKey;
4 import com.bonevich.erj.ui.editor.*;
5
6 import org.tigris.gef.base.Globals;
7
8 import java.util.Hashtable;
9 import java.awt.Component;
10 import java.awt.Window;
11 import javax.swing.JTabbedPane;
12
13 /*** Cmd to edit the properties of a <code>Relation</code>. The loaded
14 * editor is displayed in a tabbed dialog.
15 *
16 * @see CmdProperties */
17 public final class CmdEditForeignKey extends CmdProperties
18 {
19 //////////////////////////////////////////////////////////
20 // Constructors
21 public CmdEditForeignKey(ForeignKey key)
22 {
23 this(key, Globals.curEditor().findFrame());
24 }
25
26 public CmdEditForeignKey(ForeignKey key, Window window)
27 {
28 super(ForeignKeyEditor.NAME_EDIT_FOREIGNKEY);
29 putValue("foreignKey", key);
30 putValue(EDITOR_NAME, "Edit Foreign Key Properties");
31 putValue(PARENT_WINDOW, window);
32 }
33
34 protected ModelEditor createModelEditor(Component cmp)
35 {
36 return new ForeignKeyEditor((JTabbedPane)cmp, (ForeignKey)getValue("foreignKey"));
37 }
38
39 } /* end class CmdEditForeignKey */
40
This page was automatically generated by Maven