View Javadoc
1 package com.bonevich.erj.ui; 2 3 import com.bonevich.erj.model.*; 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 an <code>Attribute</code>. The loaded 14 * editor is displayed in a tabbed dialog. 15 * 16 * @see CmdProperties */ 17 public class CmdCreateKey extends CmdProperties 18 { 19 //////////////////////////////////////////////////////////////// 20 // Constructors 21 public CmdCreateKey(Relation relation) 22 { 23 this(relation, Globals.curEditor().findFrame()); 24 } 25 26 public CmdCreateKey(Relation relation, Window window) 27 { 28 super("Add Key"); 29 putValue("relation", relation); 30 putValue(EDITOR_NAME, "Add Key"); 31 putValue(PARENT_WINDOW, window); 32 setMode(0); 33 } 34 35 protected ModelEditor createModelEditor(Component cmp) 36 { 37 return new KeyEditor((JTabbedPane)cmp, (Relation) getValue("relation"), null); 38 } 39 40 } /* end class CmdCreateKey */

This page was automatically generated by Maven