com.izforge.izpack.panels.userinput.console.search
Class ConsoleSearchField
java.lang.Object
com.izforge.izpack.panels.userinput.field.AbstractFieldView
com.izforge.izpack.panels.userinput.console.ConsoleField
com.izforge.izpack.panels.userinput.console.search.ConsoleSearchField
- All Implemented Interfaces:
- FieldView
public class ConsoleSearchField
- extends ConsoleField
Based on ConsoleChoiceField
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConsoleSearchField
public ConsoleSearchField(SearchField field,
Console console,
Prompt prompt)
- Constructs a
ConsoleSearchField.
- Parameters:
field - the fieldconsole - the consoleprompt - the prompt
display
public boolean display()
- Description copied from class:
ConsoleField
- Displays the field.
For fields that update variables, this collects input and validates it.
- Specified by:
display in class ConsoleField
- Returns:
true if the field was displayed and validated successfully
listChoices
protected void listChoices(List<String> choices,
int selected)
- Displays the choices.
- Parameters:
choices - the choicesselected - the selected choice, or -1 if no choice is selected
Copyright © 2018. All rights reserved.