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).
It also communicates with FirstLoginWizardPage to retrieve service key data.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The unique identifier for this wizard page.

    Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider

    ERROR, INFORMATION, NONE, WARNING
  • Constructor Summary

    Constructors
    Constructor
    Description
    SecondLoginWizardPage(ILoginClient loginClient, IMemoryObject<String> memoryResourceGroup, IMemoryObject<Deployment> memoryDeployment)
    Constructs a new SecondLoginWizardPage.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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 the ServiceKey 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

  • Constructor Details

  • Method Details

    • createControl

      public void createControl(org.eclipse.swt.widgets.Composite parent)
      Creates the UI controls for this wizard page.
      Parameters:
      parent - the parent Composite 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

      public List<Deployment> getDeploymentsForSelection()
      Retrieves the list of deployments available for selection.
      Returns:
      a List of Deployment objects.
    • getResourceGroupDropdown

      public org.eclipse.swt.widgets.Combo getResourceGroupDropdown()
      Retrieves the resource group dropdown widget.
      Returns:
      the Combo representing the resource group dropdown.
    • getServiceKey

      public ServiceKey getServiceKey()
      Retrieves the ServiceKey from the first wizard page.
      Returns:
      the ServiceKey provided on the first page.
    • setDeploymentsForSelection

      public void setDeploymentsForSelection(List<Deployment> deploymentsForSelection)
      Sets the list of deployments available for selection and updates the dropdown.
      Parameters:
      deploymentsForSelection - a List of Deployment objects.
    • setResourceGroupsForSelection

      public void setResourceGroupsForSelection(List<String> resourceGroupsForSelection)
      Sets the list of resource groups available for selection.
      Parameters:
      resourceGroupsForSelection - a List of resource group IDs as String.
    • 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 interface org.eclipse.jface.dialogs.IDialogPage
      Overrides:
      setVisible in class org.eclipse.jface.dialogs.DialogPage
      Parameters:
      visible - true if the page should be visible; false otherwise.