Class TranslationTableModel

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.table.TableModel

    public class TranslationTableModel
    extends javax.swing.table.AbstractTableModel
    See Also:
    Serialized Form
    • Constructor Detail

      • TranslationTableModel

        public TranslationTableModel()
    • Method Detail

      • 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 java.util.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​(java.util.List<java.util.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​(java.util.Locale locale,
                                       boolean displayed)
      • getDisplayedLocales

        public java.util.List<java.util.Locale> getDisplayedLocales()
      • getRowCount

        public int getRowCount()
      • getColumnCount

        public int getColumnCount()
      • getValueAt

        public java.lang.Object getValueAt​(int row,
                                           int col)
      • getColumnName

        public java.lang.String getColumnName​(int column)
        Specified by:
        getColumnName in interface javax.swing.table.TableModel
        Overrides:
        getColumnName in class javax.swing.table.AbstractTableModel