public class DefaultSetupInstruction extends SetupInstruction
Use this setup instruction directly or subclass it if you want to give the user the opportunity to keep the same value that already exists by providing that value as the prompt default.
| Constructor and Description |
|---|
DefaultSetupInstruction(String preference_name,
String default_value,
SetupValidityChecker validity_checker,
String prompt_message,
String help_message) |
DefaultSetupInstruction(String preference_name,
String default_value,
SetupValidityChecker validity_checker,
String prompt_message,
String help_message,
boolean no_echo_prompt) |
| Modifier and Type | Method and Description |
|---|---|
void |
preProcess()
This sets the default value to the current value found in the preferences.
|
getDefaultValue, getHelpMessage, getPreferenceName, getPreferences, getPromptMessage, getValidityChecker, isUsingNoEchoPrompt, postProcess, setDefaultValue, setHelpMessage, setPreferences, setPromptMessage, setUsingNoEchoPrompt, setValidityChecker, toStringpublic DefaultSetupInstruction(String preference_name, String default_value, SetupValidityChecker validity_checker, String prompt_message, String help_message) throws IllegalArgumentException
public DefaultSetupInstruction(String preference_name, String default_value, SetupValidityChecker validity_checker, String prompt_message, String help_message, boolean no_echo_prompt) throws IllegalArgumentException
public void preProcess()
SetupInstruction.getDefaultValue() remains in effect.preProcess in class SetupInstructionSetupInstruction.preProcess()Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.