public class LocaleTableModel
extends javax.swing.table.AbstractTableModel
Modifier and Type | Field and Description |
---|---|
static int |
COLUMN_ACTIVE |
static int |
COLUMN_COUNTRY |
static int |
COLUMN_LANGUAGE |
static int |
COLUMN_LOCALE |
static int |
COLUMN_VARIANT |
Constructor and Description |
---|
LocaleTableModel(I18nManager manager)
Creates a LocaleTableModel with a I18nManager to handle locales.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
java.lang.String |
getColumnName(int columnIndex) |
java.util.Locale |
getLocale(int rowIndex)
Returns the
Locale shown in a table row. |
int |
getRowCount() |
java.util.Locale |
getSelectedLocale()
Returns the current selected locale.
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
boolean |
isValueChanged() |
void |
reloadLocales()
Reloads the list of installed locales.
|
void |
removeLocale(java.util.Locale locale)
Removes and uninstalls a locale.
|
void |
saveSelectedLocale() |
void |
selectDefaultLocale() |
void |
selectPreviousLocale() |
void |
setChangesApplied() |
void |
setSelectedLocale(java.util.Locale locale)
Sets the current selected locale.
|
void |
setValueAt(java.lang.Object value,
int rowIndex,
int columnIndex) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
public static final int COLUMN_LOCALE
public static final int COLUMN_LANGUAGE
public static final int COLUMN_COUNTRY
public static final int COLUMN_VARIANT
public static final int COLUMN_ACTIVE
public LocaleTableModel(I18nManager manager)
public int getColumnCount()
public int getRowCount()
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
public java.lang.String getColumnName(int columnIndex)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
public java.lang.Class getColumnClass(int columnIndex)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
public void setValueAt(java.lang.Object value, int rowIndex, int columnIndex)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
public java.util.Locale getLocale(int rowIndex)
Locale
shown in a table row.rowIndex
- the table row indexLocale
public void removeLocale(java.util.Locale locale) throws I18nException
locale
- to removeI18nException
- if there is an error removing a Localepublic void reloadLocales()
public void saveSelectedLocale()
public void selectPreviousLocale()
public void selectDefaultLocale()
public boolean isValueChanged()
public void setChangesApplied()
public void setSelectedLocale(java.util.Locale locale)
public java.util.Locale getSelectedLocale()