de.kosi.gui.util
Class TournamentDistributedTableModel.TournamentListEntry

java.lang.Object
  |
  +--de.kosi.gui.util.TournamentDistributedTableModel.TournamentListEntry
All Implemented Interfaces:
AbstractDistributedListTableModel.ListEntry
Enclosing class:
TournamentDistributedTableModel

protected class TournamentDistributedTableModel.TournamentListEntry
extends java.lang.Object
implements AbstractDistributedListTableModel.ListEntry

Implements the ListEntry interface for a Table.

Author:
Jan-Ole Janssen, Timo Sticher, Niklas Mehner
See Also:
Table

Constructor Summary
TournamentDistributedTableModel.TournamentListEntry(Tournament tournament)
          Creates a new ListEntry.
 
Method Summary
 void cacheValues()
          Gets data from the table.
 void clearCachedValues()
          Deletes the cached values.
 boolean equals(java.lang.Object obj)
          A TableListEntry equals the Table it was created for.
 Tournament getTournament()
          Returns the table this entry was created for.
 java.lang.Object getValue(int column)
          Returns the Object to be returned by the TableModel.
 boolean isCached()
          Returns wether this entry has cached values.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TournamentDistributedTableModel.TournamentListEntry

public TournamentDistributedTableModel.TournamentListEntry(Tournament tournament)
Creates a new ListEntry.
Parameters:
table - table this Entry is created for.
Method Detail

cacheValues

public void cacheValues()
                 throws java.rmi.RemoteException
Gets data from the table.
Specified by:
cacheValues in interface AbstractDistributedListTableModel.ListEntry
Throws:
java.rmi.RemoteException - If caching does not work, because of an RemoteException.

clearCachedValues

public void clearCachedValues()
Deletes the cached values.
Specified by:
clearCachedValues in interface AbstractDistributedListTableModel.ListEntry

isCached

public boolean isCached()
Returns wether this entry has cached values.
Specified by:
isCached in interface AbstractDistributedListTableModel.ListEntry
Returns:
wether values are cached.

getValue

public java.lang.Object getValue(int column)
Returns the Object to be returned by the TableModel.
Specified by:
getValue in interface AbstractDistributedListTableModel.ListEntry
Parameters:
column - column the object is returned for.
Returns:
Object to be returned by the TableModel.

equals

public boolean equals(java.lang.Object obj)
A TableListEntry equals the Table it was created for.
Specified by:
equals in interface AbstractDistributedListTableModel.ListEntry
Overrides:
equals in class java.lang.Object
Parameters:
obj - Object to compare.
Returns:
wether obj equals this.

getTournament

public Tournament getTournament()
Returns the table this entry was created for.
Returns:
a table.