Class TranslationExportPanel

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

public class TranslationExportPanel extends JPanel
Dialog content for exporting the project's translations to a single archive file. This panel is pure framing around TranslationExporter: it collects a locale subset and an output format, then on export prompts for a destination via a conventional save dialog, builds a filtered TranslationPackage from the supplied source, and hands it to the exporter on a background Task.

Show it with showDialog(Component).

See Also:
  • Constructor Details

    • TranslationExportPanel

      public TranslationExportPanel(TranslationPackage source, Supplier<Collection<String>> allKeys, Supplier<Collection<String>> filteredKeys, boolean filterActive)
      Parameters:
      source - the committed translation package to export from; its available locales populate the language checklist, every entry initially checked
      allKeys - supplies every defined key; used when "Only Export Filtered Results?" is unchecked
      filteredKeys - supplies the keys currently visible under the key filter; used when checked
      filterActive - whether a key filter is currently applied; when false the "Only Export Filtered Results?" checkbox is disabled (filtered and all are identical)
  • Method Details

    • onCloseAction

      public void onCloseAction(Runnable action)
    • showDialog

      public void showDialog(Component owner)
      Wraps this panel in an application-modal dialog anchored to owner and shows it.