com.izforge.izpack.panels.userinput
Class LoggingPrompt
java.lang.Object
com.izforge.izpack.api.handler.AbstractPrompt
com.izforge.izpack.panels.userinput.LoggingPrompt
- All Implemented Interfaces:
- Prompt
public class LoggingPrompt
- extends AbstractPrompt
An Prompt that simply logs messages.
- Author:
- Tim Anderson
| Methods inherited from class com.izforge.izpack.api.handler.AbstractPrompt |
confirm, confirm, confirm, error, error, error, error, error, getDetails, getThrowableMessage, getTitle, message, message, warn, warn, warn |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final Prompt INSTANCE
- Singleton instance.
LoggingPrompt
public LoggingPrompt()
message
public void message(Prompt.Type type,
String title,
String message,
Throwable throwable)
message
public void message(Prompt.Type type,
String title,
String message)
- Specified by:
message in interface Prompt- Overrides:
message in class AbstractPrompt
confirm
public Prompt.Option confirm(Prompt.Type type,
String title,
String message,
Prompt.Options options,
Prompt.Option defaultOption)
- Displays a confirmation message.
- Parameters:
type - the type of the messagetitle - the message title. May be nullmessage - the messageoptions - the options which may be selecteddefaultOption - the default option to select
- Returns:
- the selected option
Copyright © 2018. All rights reserved.