Class TranslationTableModel

java.lang.Object
javax.swing.table.AbstractTableModel
com.inductiveautomation.ignition.designer.i18n.workspace.TranslationTableModel
All Implemented Interfaces:
Serializable, TableModel

public class TranslationTableModel extends AbstractTableModel
See Also:
  • Constructor Details

    • TranslationTableModel

      public TranslationTableModel()
    • TranslationTableModel

      public TranslationTableModel(TranslationPackage pkg)
  • Method Details

    • getTranslationPackage

      public TranslationPackage getTranslationPackage()
    • setTranslationPackage

      public void setTranslationPackage(TranslationPackage pkg)
    • refresh

      public void refresh()
    • buildKeyIndex

      protected void buildKeyIndex()
      We currently build a separate list of keys, mostly in order to sort them.
    • edtFireDataChanged

      protected void edtFireDataChanged()
    • getLocaleForColumn

      public Locale getLocaleForColumn(int columnIndex)
      Returns the locale for the specified column. Column 0 is the key, so the base locale will be returned in that case.
    • setDisplayedLocales

      public void setDisplayedLocales(List<Locale> locales)
      Sets the locales that will be used to build columns. Should not include the key locale, unless an "alternate" column is desired.
    • setLocaleDisplayed

      public void setLocaleDisplayed(Locale locale, boolean displayed)
    • getDisplayedLocales

      public List<Locale> getDisplayedLocales()
    • getRowCount

      public int getRowCount()
    • getColumnCount

      public int getColumnCount()
    • getValueAt

      public Object getValueAt(int row, int col)
    • getColumnName

      public String getColumnName(int column)
      Specified by:
      getColumnName in interface TableModel
      Overrides:
      getColumnName in class AbstractTableModel