com.ontimize.report.columns
Class WidthTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
javax.swing.table.DefaultTableModel
com.ontimize.report.columns.WidthTableModel
- All Implemented Interfaces:
- Internationalization, java.io.Serializable, javax.swing.table.TableModel
- public class WidthTableModel
- extends javax.swing.table.DefaultTableModel
- implements Internationalization
- See Also:
- Serialized Form
| Fields inherited from class javax.swing.table.DefaultTableModel |
columnIdentifiers, dataVector |
| Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
| Methods inherited from class javax.swing.table.DefaultTableModel |
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getDataVector, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount |
| Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME_COLUMN
protected java.lang.String NAME_COLUMN
WIDTH_COLUMN
protected java.lang.String WIDTH_COLUMN
SET_COLUMN
protected java.lang.String SET_COLUMN
widths
protected java.util.Hashtable widths
columnName
protected java.util.Vector columnName
resources
protected java.util.ResourceBundle resources
columnFixed
protected java.util.Vector columnFixed
WidthTableModel
public WidthTableModel(java.util.ResourceBundle res)
getWidthColumn
public java.util.Hashtable getWidthColumn()
setColumnWidth
public void setColumnWidth(java.util.Hashtable h,
java.util.Hashtable hF)
getColumnName
public java.lang.String getColumnName(int column)
- Specified by:
getColumnName in interface javax.swing.table.TableModel
getColumnClass
public java.lang.Class getColumnClass(int column)
- Specified by:
getColumnClass in interface javax.swing.table.TableModel
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount in interface javax.swing.table.TableModel
getRowCount
public int getRowCount()
- Specified by:
getRowCount in interface javax.swing.table.TableModel
getValueAt
public java.lang.Object getValueAt(int row,
int col)
- Specified by:
getValueAt in interface javax.swing.table.TableModel
setValueAt
public void setValueAt(java.lang.Object value,
int row,
int col)
- Specified by:
setValueAt in interface javax.swing.table.TableModel
isCellEditable
public boolean isCellEditable(int row,
int col)
- Specified by:
isCellEditable in interface javax.swing.table.TableModel
setComponentLocale
public void setComponentLocale(java.util.Locale l)
- Specified by:
setComponentLocale in interface Internationalization
setResourceBundle
public void setResourceBundle(java.util.ResourceBundle resources)
- Description copied from interface:
Internationalization
- Sets the language resource bundle. When the application changes the
configured language, for all the objects that implement this interface
this method must be called with the new file.
The method must translate all the elements that have texts in the GUI
- Specified by:
setResourceBundle in interface Internationalization
- Parameters:
resources - the new language bundle.
getTextsToTranslate
public java.util.Vector getTextsToTranslate()
- Description copied from interface:
Internationalization
- Returns all the texts in the element suitable for being translated.
- Specified by:
getTextsToTranslate in interface Internationalization
- Returns:
- all the texts in the element suitable for being translated.