|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.izforge.izpack.panels.userinput.field.AbstractFieldView
com.izforge.izpack.panels.userinput.console.ConsoleField
public abstract class ConsoleField
Console presentation of an Field.
| Constructor Summary | |
|---|---|
ConsoleField(Field field,
Console console,
Prompt prompt)
Constructs a ConsoleField. |
|
| Method Summary | |
|---|---|
abstract boolean |
display()
Displays the field. |
protected void |
error(String message)
Displays an error message. |
protected Console |
getConsole()
Returns the console. |
protected String |
getMessage(String id)
Returns a localised message for the supplied message identifier. |
protected void |
print(String message)
Prints a message to the console without a new line. |
protected void |
printDescription()
Prints the field description, if one is available. |
protected void |
printLabel()
Prints the field label, if one is available. |
protected void |
println(String message)
Prints a message to the console with a new line. |
| 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 |
|---|
public ConsoleField(Field field,
Console console,
Prompt prompt)
ConsoleField.
field - the fieldconsole - the consoleprompt - the prompt| Method Detail |
|---|
public abstract boolean display()
true if the field was displayed and validated successfullyprotected void printDescription()
protected void printLabel()
protected void println(String message)
message - the message to printprotected void print(String message)
message - the message to printprotected void error(String message)
message - the messageprotected Console getConsole()
protected String getMessage(String id)
id - the message identifier
id if the message does not exist
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||