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, removeTableModelListenerpublic static final int COLUMN_ACTIVE
public static final int COLUMN_COUNTRY
public static final int COLUMN_LANGUAGE
public static final int COLUMN_LOCALE
public static final int COLUMN_VARIANT
public LocaleTableModel(I18nManager manager)
public java.lang.Class getColumnClass(int columnIndex)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModelpublic int getColumnCount()
public java.lang.String getColumnName(int columnIndex)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelpublic java.util.Locale getLocale(int rowIndex)
Locale shown in a table row.rowIndex - the table row indexLocalepublic int getRowCount()
public java.util.Locale getSelectedLocale()
public java.lang.Object getValueAt(int rowIndex,
int columnIndex)
public boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelpublic boolean isValueChanged()
public void reloadLocales()
public void removeLocale(java.util.Locale locale)
throws I18nException
locale - to removeI18nException - if there is an error removing a Localepublic void saveSelectedLocale()
public void selectDefaultLocale()
public void selectPreviousLocale()
public void setChangesApplied()
public void setSelectedLocale(java.util.Locale locale)
public void setValueAt(java.lang.Object value,
int rowIndex,
int columnIndex)
setValueAt in interface javax.swing.table.TableModelsetValueAt in class javax.swing.table.AbstractTableModelCopyright © 2024 gvSIG Association. All rights reserved.