public class QuickSetupDialog extends Object
Constructor and Description |
---|
QuickSetupDialog(GuiApplication app,
CurrentInstallStatus installStatus,
QuickSetup qs)
Constructor of QuickSetupDialog.
|
Modifier and Type | Method and Description |
---|---|
void |
addButtonActionListener(ButtonActionListener l)
Adds a button listener.
|
boolean |
displayConfirmation(LocalizableMessage msg,
LocalizableMessage title)
Displays a confirmation message dialog.
|
void |
displayError(LocalizableMessage msg,
LocalizableMessage title)
Displays an error message dialog.
|
void |
displayFieldInvalid(FieldName fieldName,
boolean invalid)
Marks as invalid (or valid depending on the value of the invalid parameter)
a field corresponding to FieldName.
|
void |
displayProgress(ProgressDescriptor descriptor)
Forwards to the displayed panel the ProgressDescriptor so that they
can update their contents accordingly.
|
void |
forceToDisplay()
This method is called when we detected that there is something installed
we inform of this to the user and the user wants to proceed with the
installation destroying the contents of the data and the configuration
in the current installation.
|
ButtonsPanel |
getButtonsPanel()
Returns the buttons panel.
|
CurrentStepPanel |
getCurrentStepPanel()
Returns the current step panel.
|
WizardStep |
getDisplayedStep()
Returns the currently displayed step.
|
Object |
getFieldValue(FieldName fieldName)
Returns the value corresponding to the provided FieldName.
|
JFrame |
getFrame()
Returns the frame containing the dialog.
|
QuickSetupErrorPanel |
getInstalledPanel()
Returns (and creates if it is not already created) the panel that
informs the user that the server is already installed when the
installation has been launched.
|
org.opends.quicksetup.ui.StepsPanel |
getStepsPanel()
Returns the steps panel.
|
void |
notifyButtonEvent(ButtonName buttonName)
Notifies the ButtonActionListener objects that an ButtonEvent has occurred
in the button associated with buttonName.
|
void |
packAndShow()
Packs and displays this dialog.
|
void |
setButtonEnabled(ButtonName buttonName,
boolean enable)
Enables a button associated with the given Button Name.
|
void |
setDefaultButton(ButtonName buttonName)
Sets the default button for the frame.
|
void |
setDisplayedStep(WizardStep step,
UserData userData)
Displays the panel corresponding to the provided step.
|
void |
setFocusOnButton(ButtonName buttonName)
Sets the focus in the button associated with the ButtonName.
|
void |
workerFinished()
This method is called to inform that a worker has finished.
|
void |
workerStarted()
This method is called to inform that a worker has started (the QuickSetup
is doing some data validation).
|
public QuickSetupDialog(GuiApplication app, CurrentInstallStatus installStatus, QuickSetup qs)
app
- Application to run in as a wizardinstallStatus
- of the current environmentqs
- QuickSetup acting as controllerpublic void packAndShow()
public void forceToDisplay()
public void setDisplayedStep(WizardStep step, UserData userData)
step
- the step that we want to display.userData
- the UserData object that must be used to populate
the panels.public WizardStep getDisplayedStep()
public void displayProgress(ProgressDescriptor descriptor)
descriptor
- the descriptor of the Installation progress.public void displayError(LocalizableMessage msg, LocalizableMessage title)
msg
- the error message.title
- the title for the dialog.public boolean displayConfirmation(LocalizableMessage msg, LocalizableMessage title)
msg
- the confirmation message.title
- the title of the dialog.true
if the user confirms the message, or
false
if not.public Object getFieldValue(FieldName fieldName)
fieldName
- the FieldName for which we want to obtain the value.public void displayFieldInvalid(FieldName fieldName, boolean invalid)
fieldName
- the FieldName to be marked as valid or invalid.invalid
- whether to mark the field as valid or invalid.public void addButtonActionListener(ButtonActionListener l)
l
- the ButtonActionListener to be added.public void workerStarted()
public void workerFinished()
public JFrame getFrame()
public void setButtonEnabled(ButtonName buttonName, boolean enable)
buttonName
- the button name of the button.enable
- boolean indicating to enable or to disable the button.public org.opends.quicksetup.ui.StepsPanel getStepsPanel()
public CurrentStepPanel getCurrentStepPanel()
public ButtonsPanel getButtonsPanel()
public void setFocusOnButton(ButtonName buttonName)
buttonName
- the ButtonName associated with the button.public void setDefaultButton(ButtonName buttonName)
buttonName
- the ButtonName associated with the button.public QuickSetupErrorPanel getInstalledPanel()
public void notifyButtonEvent(ButtonName buttonName)
buttonName
- the ButtonName associated with the button.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.