jap
Class TermsAndConditionsOperatorTable.OperatorTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by jap.TermsAndConditionsOperatorTable.OperatorTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel
Enclosing class:
TermsAndConditionsOperatorTable

private class TermsAndConditionsOperatorTable.OperatorTableModel
extends javax.swing.table.AbstractTableModel


Field Summary
private  java.util.BitSet accepted
           
private  java.lang.Class[] columnClasses
          The column classes
private  java.lang.String[] columnNames
          The column names
private  java.util.Vector m_vecOperators
          Vector containing all the operators in the list
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
TermsAndConditionsOperatorTable.OperatorTableModel()
           
TermsAndConditionsOperatorTable.OperatorTableModel(java.util.Vector operators)
           
 
Method Summary
 boolean areTermsRejected()
           
 java.lang.Class getColumnClass(int columnIndex)
           
 int getColumnCount()
           
 java.lang.String getColumnName(int columnIndex)
           
 ServiceOperator getOperator(int row)
           
 java.util.Vector getOperators()
           
 int getRowCount()
           
 java.util.Vector getTermsAccepted()
           
 java.util.Vector getTermsRejected()
           
private  java.util.Vector getTermsWithAcceptStatus(boolean acceptStatus)
           
 java.lang.Object getValueAt(int rowIndex, int columnIndex)
           
 boolean isCellEditable(int rowIndex, int columnIndex)
           
 void setAccepted(int index, boolean value)
           
 void setOperators(java.util.Vector operators)
           
 void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
           
 
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

m_vecOperators

private java.util.Vector m_vecOperators
Vector containing all the operators in the list


columnNames

private java.lang.String[] columnNames
The column names


columnClasses

private java.lang.Class[] columnClasses
The column classes


accepted

private java.util.BitSet accepted
Constructor Detail

TermsAndConditionsOperatorTable.OperatorTableModel

public TermsAndConditionsOperatorTable.OperatorTableModel(java.util.Vector operators)

TermsAndConditionsOperatorTable.OperatorTableModel

public TermsAndConditionsOperatorTable.OperatorTableModel()
Method Detail

getRowCount

public int getRowCount()

getColumnCount

public int getColumnCount()

isCellEditable

public boolean isCellEditable(int rowIndex,
                              int columnIndex)
Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class javax.swing.table.AbstractTableModel

getColumnClass

public java.lang.Class getColumnClass(int columnIndex)
Specified by:
getColumnClass in interface javax.swing.table.TableModel
Overrides:
getColumnClass in class javax.swing.table.AbstractTableModel

getColumnName

public java.lang.String getColumnName(int columnIndex)
Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel

getValueAt

public java.lang.Object getValueAt(int rowIndex,
                                   int columnIndex)

setValueAt

public void setValueAt(java.lang.Object aValue,
                       int rowIndex,
                       int columnIndex)
Specified by:
setValueAt in interface javax.swing.table.TableModel
Overrides:
setValueAt in class javax.swing.table.AbstractTableModel

setOperators

public void setOperators(java.util.Vector operators)

getOperators

public java.util.Vector getOperators()

getOperator

public ServiceOperator getOperator(int row)

getTermsAccepted

public java.util.Vector getTermsAccepted()

getTermsRejected

public java.util.Vector getTermsRejected()

areTermsRejected

public boolean areTermsRejected()

setAccepted

public void setAccepted(int index,
                        boolean value)

getTermsWithAcceptStatus

private java.util.Vector getTermsWithAcceptStatus(boolean acceptStatus)