Class LanguageSelectionPanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.inductiveautomation.ignition.designer.i18n.workspace.LanguageSelectionPanel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class LanguageSelectionPanel extends JPanel
Full-panel language picker. The list shows every system locale; the locales already present in the project are checked and floated to the top — the "landing" state. Clicking checkboxes updates the status bar but does not reorder the list; the landing order is only recomputed when the panel is (re)seeded or when the "Show Regional Variants" toggle changes.
See Also:
  • Constructor Details

    • LanguageSelectionPanel

      public LanguageSelectionPanel()
  • Method Details

    • getSelectedLocales

      public List<Locale> getSelectedLocales()
    • setSelectedLocales

      public void setSelectedLocales(List<Locale> locales)
      Seeds the panel's checked set (the project's locales) and resets to the landing state: checked locales are floated to the top, the rest follow in normal sort order. Selected locales not in the current system list (e.g. regional variants while variants are hidden) are still shown.
    • setOnApply

      public void setOnApply(@Nullable Runnable onApply)
      Sets the callback invoked when the user presses Apply.
    • isIncludeRegionalVariants

      public boolean isIncludeRegionalVariants()
    • setIncludeRegionalVariants

      public void setIncludeRegionalVariants(boolean include)
      Rebuilds the system locale universe with or without regional variants, then resets to the landing state — the locales checked at this moment float to the top.
    • getList

      public com.jidesoft.swing.CheckBoxList getList()
    • getFilterField

      public com.jidesoft.grid.QuickFilterField getFilterField()