net.ponec.jworksheet.gui.models
Class ProjectTableModel

Package class diagram package ProjectTableModel
java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by org.ujoframework.swing.UjoTableModel<Project>
          extended by net.ponec.jworksheet.gui.models.ProjectTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class ProjectTableModel
extends UjoTableModel<Project>

Project Table Model

See Also:
Serialized Form

Field Summary
static Project PROPS
          Properties
 
Fields inherited from class org.ujoframework.swing.UjoTableModel
columns, EVENT_REPAINT_HEADER, rows
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
ProjectTableModel(ApplContext applContext)
          Creates a new instance of UjoTableModel
 
Method Summary
 void addRow(Project proj)
           
 java.lang.String getColumnName(UjoProperty property)
          Returns a localized Column Name
protected  java.lang.Integer nextProjectId()
          Get next Project id
 void setValueAt(java.lang.Object value, int rowIndex, UjoProperty column)
          Set value to cell.
 
Methods inherited from class org.ujoframework.swing.UjoTableModel
cloneRow, deleteRow, fireTableAllRowUpdated, fireTableColumnUpdated, fireTableHeaderRepainted, getColumn, getColumnClass, getColumnClass, getColumnCount, getColumnIndex, getColumnName, getRow, getRowCount, getRowIndex, getRowLast, getRowNullable, getUjoManager, getValueAt, getValueAt, initData, isCellEditable, isCellEditable, setColumns, setRows, setValueAt, sort, sort
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableDataChanged, fireTableChanged, 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

PROPS

public static final Project PROPS
Properties

Constructor Detail

ProjectTableModel

public ProjectTableModel(ApplContext applContext)
Creates a new instance of UjoTableModel

Method Detail

getColumnName

public java.lang.String getColumnName(UjoProperty property)
Returns a localized Column Name

Overrides:
getColumnName in class UjoTableModel<Project>

nextProjectId

protected java.lang.Integer nextProjectId()
Get next Project id


addRow

public void addRow(Project proj)
Overrides:
addRow in class UjoTableModel<Project>

setValueAt

public void setValueAt(java.lang.Object value,
                       int rowIndex,
                       UjoProperty column)
Set value to cell.

Overrides:
setValueAt in class UjoTableModel<Project>


Copyright © 2007-2009 PPonec