Class IdentityProviderSelectPopup

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
com.jidesoft.popup.JidePopup
com.inductiveautomation.ignition.designer.gui.idp.IdentityProviderSelectPopup
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, WindowConstants

@NullMarked public abstract class IdentityProviderSelectPopup extends com.jidesoft.popup.JidePopup
Picker that lets the user choose one or more Identity Providers (by name) to add to an IdentityProviderList. Backs the + affordance on the Project Properties page.

Subclass it to say where the selectable names come from and what to do with the chosen ones, then set its owner and showPopup(). Showing it queries for the names afresh, so one instance can be reopened.

Dismissal is JIDE's: the popup is transient, so clicking outside it hides it, and it registers its own Escape action while visible. Neither path reaches onConfirmed(List).

See Also:
  • Constructor Details

    • IdentityProviderSelectPopup

      protected IdentityProviderSelectPopup()
  • Method Details

    • fetchSelectable

      protected abstract List<String> fetchSelectable()
      Returns:
      the IdP names on offer, which the caller is expected to have filtered of any already in the list. Invoked off the EDT, so it may reach the gateway
    • onConfirmed

      protected abstract void onConfirmed(List<String> names)
      Handed the chosen names, in the order they appear in the picker, once the user confirms. Not invoked if the picker is dismissed, or if there was nothing to pick.
    • showPopup

      public void showPopup()
      Loads here rather than in the constructor: an anonymous subclass's captured locals are assigned after the superclass constructor returns, so fetchSelectable() isn't callable until it has. Reopening an instance therefore gets a fresh list.
      Overrides:
      showPopup in class com.jidesoft.popup.JidePopup