com.izforge.izpack.panels.userinput
Class LoggingPrompt

java.lang.Object
  extended by com.izforge.izpack.api.handler.AbstractPrompt
      extended by com.izforge.izpack.panels.userinput.LoggingPrompt
All Implemented Interfaces:
Prompt

public class LoggingPrompt
extends AbstractPrompt

An Prompt that simply logs messages.

Author:
Tim Anderson

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.izforge.izpack.api.handler.Prompt
Prompt.Option, Prompt.Options, Prompt.Type
 
Field Summary
static Prompt INSTANCE
          Singleton instance.
 
Constructor Summary
LoggingPrompt()
           
 
Method Summary
 Prompt.Option confirm(Prompt.Type type, String title, String message, Prompt.Options options, Prompt.Option defaultOption)
          Displays a confirmation message.
 void message(Prompt.Type type, String title, String message)
           
 void message(Prompt.Type type, String title, String message, Throwable throwable)
           
 
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
 

Field Detail

INSTANCE

public static final Prompt INSTANCE
Singleton instance.

Constructor Detail

LoggingPrompt

public LoggingPrompt()
Method Detail

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 message
title - the message title. May be null
message - the message
options - the options which may be selected
defaultOption - the default option to select
Returns:
the selected option


Copyright © 2018. All rights reserved.