View Javadoc

1   package net.sf.mmapps.applications.developer.dialog;
2   
3   /***
4    * dialog containing a name + a context url
5    * @author Kees Jongenburger
6    * @version $Id: AddContextDialog.java,v 1.1.1.1 2004/02/06 08:44:07 keesj Exp $
7    **/
8   public class AddContextDialog extends DefaultDialog {
9       public AddContextDialog(java.awt.Frame parent, boolean modal){
10          super(parent,modal,"add a context");
11          addInput("name");
12          setInput("name","remote");
13          addInput("context");
14          setInput("context","rmi://127.0.0.1:1111/remotecontext");
15      }
16      
17      public String getContextName(){
18          return getInput("name");
19      }
20      public String getContextURL(){
21          return getInput("context");
22      }
23  }