sjrd.tricktakinggame.gui.tableinfo
Class TableInfoListModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by sjrd.tricktakinggame.gui.tableinfo.TableInfoListModel
All Implemented Interfaces:
Serializable, ListModel

public class TableInfoListModel
extends AbstractListModel

Modèle de liste des infos sur une table

Author:
sjrd
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
          ID de sérialisation
private  TableInfo tableInfo
          Informations sur la table à afficher
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
TableInfoListModel()
           
 
Method Summary
protected  void fireAllChanged(int oldSize, int newSize)
          Indique que toute la liste a changé
 String getElementAt(int index)
          
 int getSize()
          
 TableInfo getTableInfo()
          Informations affichées
 void setTableInfo(TableInfo value)
          Modifie les informations à afficher
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
ID de sérialisation

See Also:
Constant Field Values

tableInfo

private TableInfo tableInfo
Informations sur la table à afficher

Constructor Detail

TableInfoListModel

public TableInfoListModel()
Method Detail

getTableInfo

public TableInfo getTableInfo()
Informations affichées

Returns:
Informations affichées

fireAllChanged

protected void fireAllChanged(int oldSize,
                              int newSize)
Indique que toute la liste a changé

Parameters:
oldSize - Ancienne taille de la liste
newSize - Nouvelle taille de la liste

setTableInfo

public void setTableInfo(TableInfo value)
Modifie les informations à afficher

Parameters:
value - Nouvelles informations

getSize

public int getSize()


getElementAt

public String getElementAt(int index)