candy.util
Class CandyTable
java.lang.Object
|
+--candy.core.candyObject
|
+--candy.util.CandyTable
- All Implemented Interfaces:
- net.jini.core.entry.Entry, java.io.Serializable
- public class CandyTable
- extends candyObject
A CandyTable is used to keep record of various things in the candySpace
and the whole distributed application as a whole.
In so many words, a CandyTable is a Vector of data that we have
slightly more control over and can be placed into our space.
- Author:
- Jason Corso (jcorso@cs.jhu.edu)
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EXTERNALFILE
public static final int EXTERNALFILE
TRANSCRIPT
public static final int TRANSCRIPT
MEETING
public static final int MEETING
type
public java.lang.Integer type
table
public java.util.Vector table
CandyTable
public CandyTable()
CandyTable
public CandyTable(int t)
CandyTable
public CandyTable(CandyTable ct)
toArray
public java.lang.Object[] toArray()
addElement
public void addElement(CandyTableMeta m)
elementAt
public CandyTableMeta elementAt(int row)
getValueAt
public java.lang.Object getValueAt(int row,
int column)
- getValueAt treats the CandyTable as an actual table
Objects in the CandyTable must expose the CandyTableMeta
interface. (would innerclassing be better?)
to aid in the JTable rendering!
getByHandle
public CandyTableMeta getByHandle(java.lang.String h)
iterator
public java.util.Iterator iterator()
makeMeTemplate
public void makeMeTemplate()
- makeMeTemplate to match any type of CandyTable
This is a dangerous match because it will pull anything
makeMeTemplate
public void makeMeTemplate(int t)
removeElement
public boolean removeElement(CandyTableMeta m)
- removeElement from the Table.
If this is the server object -- we know the server listener will also take
the data itself from the space.
removeElementAt
public void removeElementAt(int row)
removeByHandle
public void removeByHandle(java.lang.String h)
size
public int size()