Class TranslationTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
com.inductiveautomation.ignition.designer.i18n.workspace.TranslationTableModel
- All Implemented Interfaces:
- Serializable,- TableModel
- See Also:
- 
Field SummaryFields inherited from class javax.swing.table.AbstractTableModellistenerList
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.AbstractTableModeladdTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
- 
Constructor Details- 
TranslationTableModelpublic TranslationTableModel()
- 
TranslationTableModel
 
- 
- 
Method Details- 
getTranslationPackage
- 
setTranslationPackage
- 
refreshpublic void refresh()
- 
buildKeyIndexprotected void buildKeyIndex()We currently build a separate list of keys, mostly in order to sort them.
- 
edtFireDataChangedprotected void edtFireDataChanged()
- 
getLocaleForColumnReturns the locale for the specified column. Column 0 is the key, so the base locale will be returned in that case.
- 
setDisplayedLocalesSets the locales that will be used to build columns. Should not include the key locale, unless an "alternate" column is desired.
- 
setLocaleDisplayed
- 
getDisplayedLocales
- 
getRowCountpublic int getRowCount()
- 
getColumnCountpublic int getColumnCount()
- 
getValueAt
- 
getColumnName- Specified by:
- getColumnNamein interface- TableModel
- Overrides:
- getColumnNamein class- AbstractTableModel
 
 
-