de.kosi.util
Interface AbstractDistributedListTableModel.ListEntry

All Known Implementing Classes:
TableDistributedTableModel.TableListEntry, TournamentDistributedTableModel.TournamentListEntry
Enclosing class:
AbstractDistributedListTableModel

protected static interface AbstractDistributedListTableModel.ListEntry

Interface for an entry in the list.

Author:
Jan-Ole Janssen, Niklas Mehner, Tina Sticher

Method Summary
 void cacheValues()
          Fetch the values it needs from the remote object.
 void clearCachedValues()
          Remove the cached values from the entry.
 boolean equals(java.lang.Object obj)
          The equals method has to be overriden in that wqay, that the entry euqlas the object, it was created for.
 java.lang.Object getValue(int column)
          Returns the value that should be displayed for this entry at a column.
 boolean isCached()
          Returns wether the entry has already cached values.
 

Method Detail

cacheValues

public void cacheValues()
                 throws java.rmi.RemoteException
Fetch the values it needs from the remote object.
Throws:
java.rmi.RemoteException - If caching does not work, because of an RemoteException.

clearCachedValues

public void clearCachedValues()
Remove the cached values from the entry.

isCached

public boolean isCached()
Returns wether the entry has already cached values.
Returns:
wether this entry is cached.

getValue

public java.lang.Object getValue(int column)
Returns the value that should be displayed for this entry at a column.
Parameters:
column - COlumn the value is returned for.
Returns:
value for column column.

equals

public boolean equals(java.lang.Object obj)
The equals method has to be overriden in that wqay, that the entry euqlas the object, it was created for. This makes looking int up in a list easier.
Overrides:
equals in class java.lang.Object
Parameters:
obj - Object to compare to.
Returns:
wether equal to obj.