|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectestamp.EstampManager
Title:
Description:
Copyright: Copyright (c) 2003
Company: segy
| Constructor Summary | |
EstampManager()
Default constructor. |
|
| Method Summary | |
void |
addEstamp(Estamp estamp)
Adds a new estamp into the hashtable |
void |
addEstamp(java.lang.Object key,
Estamp estamp)
Adds a new estamp into the hashtable |
void |
clear()
Clears this hashtable so that it contains no keys and no estamps. |
(package private) static java.lang.String |
getDemoString()
|
java.util.Vector |
getEstamps(java.lang.Object key)
Gets the estamps to which the specified key is mapped in this hashtable |
(package private) static java.lang.String |
getHostEmail()
Gets the host's email address |
java.lang.Object[] |
getKeys()
Gets the keys of the estamps contained in this hashtable. |
Estamp |
getSelectedEstamp(java.lang.Object key,
int index)
Gets the selected estamp in the EstampPanel |
(package private) static Vendor |
getVendor(int index)
Gets the vendor id specified by index |
(package private) static Vendor |
getVendor(java.lang.String vendorID)
Gets the vendor id specified by index |
static java.util.Vector |
getVendors()
Gets all vendor ids |
void |
loadEstamp()
Loads estamps from data file, which is saved in XML format |
java.util.Vector |
remove(java.lang.String key)
Removes the key (and its corresponding estamps) from this hashtable. |
void |
saveEstamps()
Saves estamps to a data file, which is in XML format |
void |
setEstamp(java.lang.Object key,
java.util.Vector newEstamps)
Maps the specified key to the specified value in this hashtable. |
int |
size()
Gets the number of key-estamp mappings in this hashtable. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EstampManager()
| Method Detail |
public void addEstamp(Estamp estamp)
estamp - the estamp to be added
public void addEstamp(java.lang.Object key,
Estamp estamp)
key - the key of the estampestamp - the estamp to be addedpublic void clear()
static java.lang.String getDemoString()
public java.util.Vector getEstamps(java.lang.Object key)
key - the key whose associated estamps are to be returned.
static java.lang.String getHostEmail()
public java.lang.Object[] getKeys()
public Estamp getSelectedEstamp(java.lang.Object key,
int index)
key - the key of the hashtableindex - the selected estamp
static Vendor getVendor(int index)
index - the index of vendor
static Vendor getVendor(java.lang.String vendorID)
vendorID - the vendor's id
public static java.util.Vector getVendors()
public void loadEstamp()
public java.util.Vector remove(java.lang.String key)
key - the key that need to be removed
public void saveEstamps()
public void setEstamp(java.lang.Object key,
java.util.Vector newEstamps)
key - the hashtable key.newEstamps - the vector of estampspublic int size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||