org.browsecode.helpers.installer.applications
Interface InstallApplication.InstallationConfirmationHandler

All Superinterfaces:
ControlComputerInterface.ConfirmationHandler
All Known Implementing Classes:
InstallApplicationCard
Enclosing class:
InstallApplication

public static interface InstallApplication.InstallationConfirmationHandler
extends ControlComputerInterface.ConfirmationHandler


Field Summary
static int CANCEL
           
static int NO
           
static int YES
           
 
Method Summary
 int askYesNoQuestion(java.lang.String question, java.lang.String yesButton, java.lang.String noButton)
          Return 'YES', 'NO', or 'CANCEL' depending upon what the user selected.
 int askYesNoQuestion(java.lang.String question, java.lang.String yesButton, java.lang.String noButton, boolean noButtonIsDefault)
           
 void doneInstalling(boolean worked, java.lang.String message)
          This may pass in HTML.
 void hideABrowseButton(boolean foundIt)
          Pass in foundIt=true if we're stopping because it was found, and pass in foundIt=fales if we're stopping because there's no possible installations.
 java.lang.String promptForDirectory(java.lang.String directoryDescription)
          this is not ideal, but we can't install applications yet when it's not local as a hack, this should return null when it's not a local install.
 void setStatusText(java.lang.String statusText)
           
 void showABrowseButton(java.lang.String browseFor, InstallApplication.NotifyAfterUserBrowses thingToNotifyWhenUserPrompts)
           
 
Methods inherited from interface org.browsecode.helpers.controlcomputer.ControlComputerInterface.ConfirmationHandler
isFoundLocationOk
 

Field Detail

YES

static final int YES
See Also:
Constant Field Values

NO

static final int NO
See Also:
Constant Field Values

CANCEL

static final int CANCEL
See Also:
Constant Field Values
Method Detail

askYesNoQuestion

int askYesNoQuestion(java.lang.String question,
                     java.lang.String yesButton,
                     java.lang.String noButton)
Return 'YES', 'NO', or 'CANCEL' depending upon what the user selected.

Parameters:
question -
Returns:

askYesNoQuestion

int askYesNoQuestion(java.lang.String question,
                     java.lang.String yesButton,
                     java.lang.String noButton,
                     boolean noButtonIsDefault)

promptForDirectory

java.lang.String promptForDirectory(java.lang.String directoryDescription)
this is not ideal, but we can't install applications yet when it's not local as a hack, this should return null when it's not a local install. TODO should have a default based on OS when it's installing a program...

Parameters:
directoryDescription -
Returns:

showABrowseButton

void showABrowseButton(java.lang.String browseFor,
                       InstallApplication.NotifyAfterUserBrowses thingToNotifyWhenUserPrompts)

hideABrowseButton

void hideABrowseButton(boolean foundIt)
Pass in foundIt=true if we're stopping because it was found, and pass in foundIt=fales if we're stopping because there's no possible installations.

Parameters:
foundIt -

setStatusText

void setStatusText(java.lang.String statusText)

doneInstalling

void doneInstalling(boolean worked,
                    java.lang.String message)
This may pass in HTML.

Parameters:
worked -
message -