/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: ConfirmInteraction.java,v 1.2 2008/06/25 05:51:17 qcheng Exp $
*
*/
public ConfirmInteraction() {
super();
}
return null;
}
}
return promptMessage;
}
throws InstallException {
return options;
}
throws InstallException {
do {
// Now display available options
// Display the prompt
// Now read user input
// Choose default if present
}
// At this point if the selectedOption is still null, print an
// invalid option message
if (selectedOption == null) {
}
} while (selectedOption == null);
return getResultStatus(selectedOption);
}
}
return status;
}
return invalidOptionMessage;
}
private void setPromptMessage() {
}
private void setUserOptions() {
options = new SingleLineOptions();
options.setIgnoreCaseFlag(true);
}
// All the available Run time options. Can never be null OR empty
// The prompt message that will be displayed for the user to input data
"IN_MSG_CONFIRM_EXIT";
"IN_MSG_CONFIRM_CONTINUE";
"IN_MSG_CONFIRM_PROMPT";
"IN_ERR_INVALID_OPTION";
}