org.devaki.nextobjects.ui.workspace.models
Class ContributorEdit.ObjectContributorTableModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byorg.devaki.nextobjects.ui.workspace.models.ContributorEdit.ObjectContributorTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel
Enclosing class:
ContributorEdit

public final class ContributorEdit.ObjectContributorTableModel
extends javax.swing.table.AbstractTableModel

This class define a model to edit the object columns

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
ContributorEdit.ObjectContributorTableModel()
           
 
Method Summary
 void addContributor(org.apache.maven.project.Contributor pContributor)
          Add a field
 java.lang.Class getColumnClass(int i)
          Return the class of the column at the specified index
 int getColumnCount()
          Return the number of columns
 java.lang.String getColumnName(int i)
          Return the name of the column at the specified index
 int getColumnSize(int i)
          Return the size of the column at the specified index
 java.util.Vector getContributors()
          Return the data contained in the JTable
 int getRowCount()
          Return the number of lines
 java.lang.Object getValueAt(int row, int col)
          Return the value at the specified row and column
 void insertContributor(org.apache.maven.project.Contributor pContributor, int i)
          Add a field at a particular index
 boolean isCellEditable(int row, int col)
          Return that every cell is editable
 void removeField(int i)
          Remove a field at a particular index
 void resetContributors()
          Reset the TableModel to its old values
 void setContributors(java.util.Vector pData)
          Set data in the JTable
 void setValueAt(java.lang.Object value, int row, int col)
          Set the specified value at the specified row and column
 
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
 

Constructor Detail

ContributorEdit.ObjectContributorTableModel

public ContributorEdit.ObjectContributorTableModel()
Method Detail

getContributors

public final java.util.Vector getContributors()
Return the data contained in the JTable

Returns:
colums

resetContributors

public final void resetContributors()
Reset the TableModel to its old values


setContributors

public final void setContributors(java.util.Vector pData)
Set data in the JTable

Parameters:
pData - the columns

addContributor

public final void addContributor(org.apache.maven.project.Contributor pContributor)
Add a field

Parameters:
pContributor - the column

insertContributor

public final void insertContributor(org.apache.maven.project.Contributor pContributor,
                                    int i)
Add a field at a particular index

Parameters:
pContributor - the column
i - index

removeField

public final void removeField(int i)
Remove a field at a particular index

Parameters:
i - index

getColumnCount

public final int getColumnCount()
Return the number of columns

Returns:
count

getRowCount

public final int getRowCount()
Return the number of lines

Returns:
the count of row, number of columns.

getColumnName

public final java.lang.String getColumnName(int i)
Return the name of the column at the specified index

Parameters:
i - index
Returns:
column

getColumnClass

public final java.lang.Class getColumnClass(int i)
Return the class of the column at the specified index

Parameters:
i - index
Returns:
class

getColumnSize

public final int getColumnSize(int i)
Return the size of the column at the specified index

Parameters:
i - index
Returns:
the size

getValueAt

public final java.lang.Object getValueAt(int row,
                                         int col)
Return the value at the specified row and column

Parameters:
row - row index
col - column index
Returns:
the value

setValueAt

public final void setValueAt(java.lang.Object value,
                             int row,
                             int col)
Set the specified value at the specified row and column

Parameters:
value - value
row - row index
col - column index

isCellEditable

public final boolean isCellEditable(int row,
                                    int col)
Return that every cell is editable

Parameters:
row - row index
col - column index
Returns:
is editable


Copyright © 2002-2004 devaki.org. All Rights Reserved.