Class TranslationTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
com.inductiveautomation.ignition.designer.i18n.workspace.TranslationTableModel
- All Implemented Interfaces:
Serializable,TableModel
- See Also:
-
Field Summary
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidWe currently build a separate list of keys, mostly in order to sort them.protected voidintgetColumnName(int column) getLocaleForColumn(int columnIndex) Returns the locale for the specified column.intgetValueAt(int row, int col) voidrefresh()voidsetDisplayedLocales(List<Locale> locales) Sets the locales that will be used to build columns.voidsetLocaleDisplayed(Locale locale, boolean displayed) voidMethods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
-
Constructor Details
-
TranslationTableModel
public TranslationTableModel() -
TranslationTableModel
-
-
Method Details
-
getTranslationPackage
-
setTranslationPackage
-
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
Returns the locale for the specified column. Column 0 is the key, so the base locale will be returned in that case. -
setDisplayedLocales
Sets the locales that will be used to build columns. Should not include the key locale, unless an "alternate" column is desired. -
setLocaleDisplayed
-
getDisplayedLocales
-
getRowCount
public int getRowCount() -
getColumnCount
public int getColumnCount() -
getValueAt
-
getColumnName
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-