public class LocaleTableModel extends 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 |
listenerList| Constructor and Description |
|---|
LocaleTableModel(I18nManager manager)
Creates a LocaleTableModel with a I18nManager to handle locales.
|
| Modifier and Type | Method and Description |
|---|---|
Class |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
String |
getColumnName(int columnIndex) |
Locale |
getLocale(int rowIndex)
Returns the
Locale shown in a table row. |
int |
getRowCount() |
Locale |
getSelectedLocale()
Returns the current selected locale.
|
Object |
getValueAt(int rowIndex,
int columnIndex) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
boolean |
isValueChanged() |
void |
reloadLocales()
Reloads the list of installed locales.
|
void |
removeLocale(Locale locale)
Removes and uninstalls a locale.
|
void |
saveSelectedLocale() |
void |
selectDefaultLocale() |
void |
selectPreviousLocale() |
void |
setChangesApplied() |
void |
setSelectedLocale(Locale locale)
Sets the current selected locale.
|
void |
setValueAt(Object value,
int rowIndex,
int columnIndex) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerpublic 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 Object getValueAt(int rowIndex, int columnIndex)
public String getColumnName(int columnIndex)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic Class getColumnClass(int columnIndex)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelpublic boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelpublic void setValueAt(Object value, int rowIndex, int columnIndex)
setValueAt in interface TableModelsetValueAt in class AbstractTableModelpublic Locale getLocale(int rowIndex)
Locale shown in a table row.rowIndex - the table row indexLocalepublic void removeLocale(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(Locale locale)
public Locale getSelectedLocale()