Package javaforce.ansi.server
Class InputDialog
java.lang.Object
javaforce.ansi.server.InputDialog
- All Implemented Interfaces:
Dialog
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInputDialog ansi = ANSI object title = window title (todo) msg[] = messages for each input field initValue[] = init values for each input field (optional) (if not null length must equal msg length) opts = buttons (ie: see ENTER_ESC) -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw()getText(int idx) booleanbooleanisChecked(int idx) booleanisClosed()voidkeyPressed(int keyCode, int keyMods) voidkeyTyped(char key) voidvoidvoidsetClosed(boolean closed) voidsetOptions(String ops)
-
Field Details
-
ENTER_ESC
- See Also:
-
-
Constructor Details
-
InputDialog
InputDialog ansi = ANSI object title = window title (todo) msg[] = messages for each input field initValue[] = init values for each input field (optional) (if not null length must equal msg length) opts = buttons (ie: see ENTER_ESC)
-
-
Method Details
-
draw
public void draw() -
keyPressed
public void keyPressed(int keyCode, int keyMods) - Specified by:
keyPressedin interfaceDialog
-
keyTyped
public void keyTyped(char key) -
isClosed
public boolean isClosed() -
setClosed
public void setClosed(boolean closed) -
isCancelled
public boolean isCancelled() -
nextField
public void nextField() -
getAction
-
setAction
-
getText
-
isChecked
public boolean isChecked(int idx) -
setOptions
-