|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--javax.swing.table.AbstractTableModel
|
+--net.sourceforge.ganttproject.GanttResourcePanel.GanttTableModel
Class model of table to store person data
| 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 |
public java.util.ArrayList data
public java.util.ArrayList colums
| Method Detail |
public int getRowCount()
public int getColumnCount()
public java.lang.Object getValueAt(int row,
int col)
public java.lang.String getColumnName(int col)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelpublic void changeLanguage(GanttLanguage language)
public void addRow(HumanResource people)
public void updateRow(int row,
HumanResource people)
public void deleteRow(int row)
public boolean moveUp(int row)
public boolean moveDown(int row)
public void deleteRows(ProjectResource[] deleted)
public void changePeople(java.util.ArrayList list)
public boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelpublic void reset()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||