com.rubecula.spreadsheet
Class CellTable

java.lang.Object
  |
  +--java.util.AbstractMap
        |
        +--java.util.HashMap
              |
              +--com.rubecula.spreadsheet.CellTable
All Implemented Interfaces:
java.lang.Cloneable, Lookupable, java.util.Map, java.io.Serializable

public class CellTable
extends java.util.HashMap
implements Lookupable

An instance of this class represents a table of QuantityCell objects.

Split off from TableModel

Since:
V_0_1
Version:
$Revision: 1.4 $
Author:
Robin Hillyard
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.HashMap
 
Nested classes inherited from class java.util.AbstractMap
 
Nested classes inherited from class java.util.Map
java.util.Map.Entry
 
Field Summary
 
Fields inherited from class java.util.HashMap
 
Fields inherited from class java.util.AbstractMap
 
Constructor Summary
CellTable()
           
 
Method Summary
 QuantityCell getCell(java.lang.String key)
           
 java.util.Iterator getKeys()
           
 Presentable getValue(java.lang.String name)
          Method to lookup a cell by name and return it's presentable value.
 void put(java.lang.String key, java.lang.Object object)
           
 void put(java.lang.String key, QuantityCell cell)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

CellTable

public CellTable()
Method Detail

put

public void put(java.lang.String key,
                QuantityCell cell)

put

public void put(java.lang.String key,
                java.lang.Object object)

getCell

public QuantityCell getCell(java.lang.String key)

getKeys

public java.util.Iterator getKeys()

getValue

public Presentable getValue(java.lang.String name)
                     throws PresentableException
Method to lookup a cell by name and return it's presentable value.

Specified by:
getValue in interface Lookupable
Parameters:
name - the name or key to be looked up.
Returns:
a Presentable value corresponding to the current value of name.
Throws:
PresentableException - when name is not recognized