com.izforge.izpack.panels.userinput.console.button
Class ConsoleButtonField

java.lang.Object
  extended by com.izforge.izpack.panels.userinput.field.AbstractFieldView
      extended by com.izforge.izpack.panels.userinput.console.ConsoleField
          extended by com.izforge.izpack.panels.userinput.console.button.ConsoleButtonField
All Implemented Interfaces:
FieldView

public class ConsoleButtonField
extends ConsoleField

Console implementation of a button


Constructor Summary
ConsoleButtonField(ButtonField field, Console console, Prompt prompt)
          Constructs a ConsoleField.
 
Method Summary
 boolean display()
          Show button information.
 
Methods inherited from class com.izforge.izpack.panels.userinput.console.ConsoleField
error, getConsole, getMessage, print, printDescription, printLabel, println
 
Methods inherited from class com.izforge.izpack.panels.userinput.field.AbstractFieldView
getField, getSummaryKey, getVariable, isDisplayed, isReadonly, setDisplayed, setReadonly, setVariable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleButtonField

public ConsoleButtonField(ButtonField field,
                          Console console,
                          Prompt prompt)
Constructs a ConsoleField.

Parameters:
field - the field
console - the console
prompt - the prompt
Method Detail

display

public boolean display()
Show button information. If the user selects to press the button execute all its actions, unless one of the actions 'fail'. Otherwise continue program as usual.

Specified by:
display in class ConsoleField
Returns:


Copyright © 2018. All rights reserved.