Class AbstractProfileOptionDropdown

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.inductiveautomation.ignition.client.util.gui.AbstractProfileOptionDropdown
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
AuditProfileComboBox, DatasourceComboBox, IdentityProviderDropdown, SQLTagsProviderComboBox, UserSourceProfileDropdown

public abstract class AbstractProfileOptionDropdown extends JPanel
See Also:
  • Field Details

    • noSelectionText

      protected String noSelectionText
    • noneOptionText

      protected String noneOptionText
    • allowNone

      protected boolean allowNone
    • loadInBackground

      protected boolean loadInBackground
    • reloadIconButton

      protected ReloadIconButton reloadIconButton
  • Constructor Details

    • AbstractProfileOptionDropdown

      public AbstractProfileOptionDropdown(boolean initialize)
  • Method Details

    • setEnabled

      public void setEnabled(boolean enabled)
      Overrides:
      setEnabled in class JComponent
    • getSelectedItem

      public String getSelectedItem()
    • setSelectedItem

      public void setSelectedItem(@Nullable String item)
    • initComponents

      protected void initComponents()
    • addActions

      protected void addActions()
    • addAction

      protected void addAction(Action action)
    • setToolTipText

      public void setToolTipText(String str)
      Overrides:
      setToolTipText in class JComponent
    • setReloadToolTipText

      public void setReloadToolTipText(String str)
      Updates the tooltiptext for the reload icon. Used when the locale changes
      Parameters:
      str - New tool text
    • refresh

      public void refresh()
    • refresh

      public void refresh(boolean selectFirst)
    • handleLoadError

      protected void handleLoadError(Exception ex)
    • getOptions

      protected abstract List<String> getOptions() throws Exception
      Throws:
      Exception
    • isCaseInsensitive

      protected boolean isCaseInsensitive()
    • toString

      protected String toString(String option)
      Provides a simple hook to render the option differently. By default replaces "" with "<Default>"
    • addItemListener

      public void addItemListener(ItemListener listener)
    • removeItemListener

      public void removeItemListener(ItemListener listener)
    • getNoSelectionText

      public String getNoSelectionText()
    • setNoSelectionText

      public void setNoSelectionText(String noSelectionText)
    • isAllowNone

      public boolean isAllowNone()
    • setAllowNone

      public void setAllowNone(boolean allowNone)
    • getNoneOptionText

      public String getNoneOptionText()
    • setNoneOptionText

      public void setNoneOptionText(String noneOptionText)
    • isLoadInBackground

      public boolean isLoadInBackground()
    • setLoadInBackground

      public void setLoadInBackground(boolean loadInBackground)
    • isEditable

      public boolean isEditable()
    • setEditable

      public void setEditable(boolean b)
    • getDropdown

      public JComboBox getDropdown()
    • setFont

      public void setFont(Font font)
      Overrides:
      setFont in class JComponent