Class SecondLoginWizardPage
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
com.developer.nefarious.zjoule.plugin.login.pages.SecondLoginWizardPage
- All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage
,org.eclipse.jface.dialogs.IMessageProvider
,org.eclipse.jface.wizard.IWizardPage
public class SecondLoginWizardPage
extends org.eclipse.jface.wizard.WizardPage
Represents the second page of the login wizard, where the user selects a
resource group and deployment ID based on the credentials provided on the
first page.
This page includes:
- A dropdown for selecting a resource group.
- A dropdown for selecting a deployment ID (enabled after selecting a resource group).
FirstLoginWizardPage
to retrieve service key data.-
Field Summary
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
-
Constructor Summary
ConstructorDescriptionSecondLoginWizardPage
(ILoginClient loginClient, IMemoryObject<String> memoryResourceGroup, IMemoryObject<Deployment> memoryDeployment) Constructs a newSecondLoginWizardPage
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
createControl
(org.eclipse.swt.widgets.Composite parent) Creates the UI controls for this wizard page.org.eclipse.swt.widgets.Combo
Retrieves the deployment dropdown widget.Retrieves the list of deployments available for selection.org.eclipse.swt.widgets.Combo
Retrieves the resource group dropdown widget.Retrieves theServiceKey
from the first wizard page.void
setDeploymentsForSelection
(List<Deployment> deploymentsForSelection) Sets the list of deployments available for selection and updates the dropdown.void
setResourceGroupsForSelection
(List<String> resourceGroupsForSelection) Sets the list of resource groups available for selection.void
setVisible
(boolean visible) Sets the visibility of this page.Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp
Methods inherited from interface org.eclipse.jface.wizard.IWizardPage
getMinimumPageSize
-
Field Details
-
PAGE_ID
The unique identifier for this wizard page.- See Also:
-
-
Constructor Details
-
SecondLoginWizardPage
public SecondLoginWizardPage(ILoginClient loginClient, IMemoryObject<String> memoryResourceGroup, IMemoryObject<Deployment> memoryDeployment) Constructs a newSecondLoginWizardPage
.- Parameters:
loginClient
- theILoginClient
used for API interactions during the login process.memoryResourceGroup
- theIMemoryObject<String>
for resource group memory management.memoryDeployment
- theIMemoryObject<Deployment>
for deployment memory management.
-
-
Method Details
-
createControl
public void createControl(org.eclipse.swt.widgets.Composite parent) Creates the UI controls for this wizard page.- Parameters:
parent
- the parentComposite
for the wizard page controls.
-
getDeploymentDropdown
public org.eclipse.swt.widgets.Combo getDeploymentDropdown()Retrieves the deployment dropdown widget.- Returns:
- the
Combo
representing the deployment dropdown.
-
getDeploymentsForSelection
Retrieves the list of deployments available for selection.- Returns:
- a
List
ofDeployment
objects.
-
getResourceGroupDropdown
public org.eclipse.swt.widgets.Combo getResourceGroupDropdown()Retrieves the resource group dropdown widget.- Returns:
- the
Combo
representing the resource group dropdown.
-
getServiceKey
Retrieves theServiceKey
from the first wizard page.- Returns:
- the
ServiceKey
provided on the first page.
-
setDeploymentsForSelection
Sets the list of deployments available for selection and updates the dropdown.- Parameters:
deploymentsForSelection
- aList
ofDeployment
objects.
-
setResourceGroupsForSelection
Sets the list of resource groups available for selection. -
setVisible
public void setVisible(boolean visible) Sets the visibility of this page. When visible, it populates the resource group dropdown using data from the first page. When hidden, it clears dropdown selections.- Specified by:
setVisible
in interfaceorg.eclipse.jface.dialogs.IDialogPage
- Overrides:
setVisible
in classorg.eclipse.jface.dialogs.DialogPage
- Parameters:
visible
-true
if the page should be visible;false
otherwise.
-