com.jurismarches.vradi.ui.admin.models
Class XmlStreamFieldTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by com.jurismarches.vradi.ui.admin.models.XmlStreamFieldTableModel
All Implemented Interfaces:
Serializable, TableModel

public class XmlStreamFieldTableModel
extends AbstractTableModel

Le modèle du tableau pour afficher et éditer les bindings d'un flux XML. User: chemit Date: 15 nov. 2009 Time: 16:56:08

See Also:
Serialized Form

Field Summary
protected  List<XmlFieldBinding> data
          Liste des bindings à afficher
protected  boolean valueIsAdjusting
          Un drapeau pour bloquer le déclanchement des fireXXX)
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
XmlStreamFieldTableModel()
           
 
Method Summary
 void clear()
          Pour vider le modèle.
protected  boolean ensureColumnIndex(int columnIndex)
           
protected  boolean ensureRowIndex(int rowIndex)
           
 List<XmlFieldBinding> getBindings()
           
 int getColumnCount()
           
 int getRowCount()
           
 Object getValueAt(int rowIndex, int columnIndex)
           
 boolean isCellEditable(int rowIndex, int columnIndex)
           
 boolean isValueIsAdjusting()
           
 void setBindings(Collection<XmlFieldBinding> bindings)
           
 void setValueAt(Object value, int rowIndex, int columnIndex)
           
 void setValueIsAdjusting(boolean valueIsAdjusting)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

protected final List<XmlFieldBinding> data
Liste des bindings à afficher


valueIsAdjusting

protected boolean valueIsAdjusting
Un drapeau pour bloquer le déclanchement des fireXXX)

Constructor Detail

XmlStreamFieldTableModel

public XmlStreamFieldTableModel()
Method Detail

getRowCount

public int getRowCount()

getColumnCount

public int getColumnCount()

isCellEditable

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

clear

public void clear()
Pour vider le modèle.


isValueIsAdjusting

public boolean isValueIsAdjusting()

setValueIsAdjusting

public void setValueIsAdjusting(boolean valueIsAdjusting)

getBindings

public List<XmlFieldBinding> getBindings()
Returns:
une copie de la liste des bindings

setBindings

public void setBindings(Collection<XmlFieldBinding> bindings)

getValueAt

public Object getValueAt(int rowIndex,
                         int columnIndex)

setValueAt

public void setValueAt(Object value,
                       int rowIndex,
                       int columnIndex)
Specified by:
setValueAt in interface TableModel
Overrides:
setValueAt in class AbstractTableModel

ensureRowIndex

protected boolean ensureRowIndex(int rowIndex)

ensureColumnIndex

protected boolean ensureColumnIndex(int columnIndex)


Copyright © 2009-2011 JurisMarches. All Rights Reserved.