2 * interface to make easy prompt windows
5 public abstract class promptCmd {
6 public abstract String getTitle(); /* Return the title of the window */
7 public abstract String getPrompt(); /* Return the text for label */
8 public abstract int getType(); /* Get type of query */
14 public void one_field( String s ) {}
16 public void two_fields( String s1, String s2 ) {}
18 /* Override these as necessary */
20 /* type == ONE_FIELD || TWO_FIELD */
21 public String firstPrompt() { return ""; }
22 public boolean firstEcho() { return true; }
24 /* type == TWO_FIELD */
25 public String secondPrompt() { return ""; }
26 public boolean secondEcho() { return true; }
29 public String affirm() { return "Yes"; }
30 public String negate() { return "No"; }