net.sourceforge.ganttproject
Class GanttResourcePanel.GanttTableModel

java.lang.Object
  |
  +--javax.swing.table.AbstractTableModel
        |
        +--net.sourceforge.ganttproject.GanttResourcePanel.GanttTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel
Enclosing class:
GanttResourcePanel

public class GanttResourcePanel.GanttTableModel
extends javax.swing.table.AbstractTableModel

Class model of table to store person data

See Also:
Serialized Form

Field Summary
 java.util.ArrayList colums
          The colums title
 java.util.ArrayList data
          The data
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Method Summary
 void addRow(HumanResource people)
          Add a new human
 void changeLanguage(GanttLanguage language)
          Change the name of colums in function of the language
 void changePeople(java.util.ArrayList list)
           
 void deleteRow(int row)
          Delete the row specidied
 void deleteRows(ProjectResource[] deleted)
           
 int getColumnCount()
          Number of colums on the table
 java.lang.String getColumnName(int col)
          Return the name of the specified colums
 int getRowCount()
          Number of row on the table
 java.lang.Object getValueAt(int row, int col)
          Return the value at the specificed case
 boolean isCellEditable(int rowIndex, int columnIndex)
          Are the cell editable
 boolean moveDown(int row)
          Move Down the selected resource
 boolean moveUp(int row)
          Move Up the selected resource
 void reset()
          Reset all human...
 void updateRow(int row, HumanResource people)
          Update the specified row
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

public java.util.ArrayList data
The data


colums

public java.util.ArrayList colums
The colums title

Method Detail

getRowCount

public int getRowCount()
Number of row on the table


getColumnCount

public int getColumnCount()
Number of colums on the table


getValueAt

public java.lang.Object getValueAt(int row,
                                   int col)
Return the value at the specificed case


getColumnName

public java.lang.String getColumnName(int col)
Return the name of the specified colums

Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel

changeLanguage

public void changeLanguage(GanttLanguage language)
Change the name of colums in function of the language


addRow

public void addRow(HumanResource people)
Add a new human


updateRow

public void updateRow(int row,
                      HumanResource people)
Update the specified row


deleteRow

public void deleteRow(int row)
Delete the row specidied


moveUp

public boolean moveUp(int row)
Move Up the selected resource


moveDown

public boolean moveDown(int row)
Move Down the selected resource


deleteRows

public void deleteRows(ProjectResource[] deleted)

changePeople

public void changePeople(java.util.ArrayList list)

isCellEditable

public boolean isCellEditable(int rowIndex,
                              int columnIndex)
Are the cell editable

Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class javax.swing.table.AbstractTableModel

reset

public void reset()
Reset all human...



${copyright}