Ontimize 5.2072EN

com.ontimize.report.columns
Class WidthTableModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byjavax.swing.table.DefaultTableModel
          extended bycom.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

Field Summary
protected  java.util.Vector columnFixed
           
protected  java.util.Vector columnName
           
protected  java.lang.String NAME_COLUMN
           
protected  java.util.ResourceBundle resources
           
protected  java.lang.String SET_COLUMN
           
protected  java.lang.String WIDTH_COLUMN
           
protected  java.util.Hashtable widths
           
 
Fields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers, dataVector
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Fields inherited from interface com.ontimize.gui.i18n.Internationalization
DEBUG_LANGUAGE
 
Constructor Summary
WidthTableModel(java.util.ResourceBundle res)
           
 
Method Summary
 java.lang.Class getColumnClass(int column)
           
 int getColumnCount()
           
 java.lang.String getColumnName(int column)
           
 int getRowCount()
           
 java.util.Vector getTextsToTranslate()
          Returns all the texts in the element suitable for being translated.
 java.lang.Object getValueAt(int row, int col)
           
 java.util.Hashtable getWidthColumn()
           
 boolean isCellEditable(int row, int col)
           
 void setColumnWidth(java.util.Hashtable h, java.util.Hashtable hF)
           
 void setComponentLocale(java.util.Locale l)
           
 void setResourceBundle(java.util.ResourceBundle resources)
          Sets the language resource bundle.
 void setValueAt(java.lang.Object value, int row, int col)
           
 
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
 

Field Detail

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
Constructor Detail

WidthTableModel

public WidthTableModel(java.util.ResourceBundle res)
Method Detail

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.

Ontimize