|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.table.AbstractTableModel | +--org.moyoman.client.reference.admin.MessageTableModel
Provides a table model to edit messages.
Field Summary | |
private List |
_data
The keys. |
private String |
_fromLanguage
From language. |
private boolean |
_isEditingDefault
Flag indicating if we're editing the default language. |
private String |
_toLanguage
To language. |
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
MessageTableModel(boolean isEditingDefault,
String fromLanguage,
String toLanguage)
Construct this object with the given parameter. |
Method Summary | |
void |
addKey(String key)
Add the given key to the table. |
int |
getColumnCount()
Return the column count. |
String |
getColumnName(int column)
Return the column name at the given index. |
String |
getEditLanguage()
Return the language being edited. |
(package private) String |
getFromLanguage()
Return the from language. |
int |
getRowCount()
Return the row count. |
(package private) String |
getToLanguage()
Return the to language. |
private String |
getValue(String languageName,
String key)
Return the value for the given language name and key. |
Object |
getValueAt(int row,
int column)
Return the value at the given coordinates. |
int |
indexOf(String key)
Return the index of the given key. |
boolean |
isCellEditable(int row,
int column)
Return true if the cell at the given coordinates is editable. |
boolean |
isEditingDefault()
Return the flag which indicates if we're editing the default language. |
void |
load()
Load the keys into the table model. |
void |
removeKey(String key)
Add the given key to the table. |
private void |
setValue(int row,
String languageName,
String value)
Set the value for the given language name and key. |
void |
setValueAt(Object value,
int row,
int column)
Return the value at the given coordinates. |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private List _data
private String _fromLanguage
private String _toLanguage
private boolean _isEditingDefault
Constructor Detail |
public MessageTableModel(boolean isEditingDefault, String fromLanguage, String toLanguage)
isEditingDefault
- Flag indicating if we're editing the default
language.fromLanguage
- From language.toLanguage
- To language.Method Detail |
public boolean isCellEditable(int row, int column)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
public int getColumnCount()
public String getColumnName(int column)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public String getEditLanguage()
public boolean isEditingDefault()
public int getRowCount()
public void setValueAt(Object value, int row, int column)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
public Object getValueAt(int row, int column)
public void addKey(String key)
public int indexOf(String key)
public void load()
public void removeKey(String key)
String getFromLanguage()
String getToLanguage()
private void setValue(int row, String languageName, String value)
private String getValue(String languageName, String key)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |