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 a <code>Domain</code>. The loaded
14 * editor is displayed in a tabbed dialog.
15 *
16 * @see CmdProperties */
17 public class CmdCreateDomain extends CmdProperties
18 {
19 ////////////////////////////////////////////////////////////////
20 // Constructors
21 public CmdCreateDomain(Schema schema)
22 {
23 this(schema, Globals.curEditor().findFrame());
24 }
25
26 public CmdCreateDomain(Schema schema, Window window)
27 {
28 super("Add Domain");
29 putValue("schema", schema);
30 putValue(EDITOR_NAME, "Add Domain");
31 putValue(PARENT_WINDOW, window);
32 setMode(0);
33 }
34
35 protected ModelEditor createModelEditor(Component cmp)
36 {
37 return new DomainEditor((JTabbedPane)cmp, (Schema) getValue("schema"), null);
38 }
39
40 } /* end class CmdCreateDomain */
This page was automatically generated by Maven