|
Venice 0.751beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap
java.util.HashMap
nz.org.venice.ui.FrameRegister
FrameRegister is a collection of ModuleFrames. It is an implementation of a simple monitor and it's purpose is to serialise the creation of new ModuleFrames. FrameRegister was written initially for the purpose of restoring saved windows as a way of accessing the new ModuleFrame objects but also as a way of serialising their creation. The use of some non thread safe objects were discovered when trying to create multiple ChartModules and the decision was made to serialise their creation under restoration rather than attempt to modify code that otherwise works perfectly well. This class is deprecated.
| Constructor Summary | |
FrameRegister()
|
|
| Method Summary | |
void |
add(ModuleFrame frame)
Add new ModuleFrame to register, using size as key |
void |
delete(ModuleFrame frame)
Remove all references to the ModuleFrame |
boolean |
find(java.lang.String key)
Return true if there is a mapping to |
boolean |
findChild(java.lang.String childKey)
Return true if there is a moduleframe which has a module of key childkey |
ModuleFrame |
get(java.lang.String key)
Return the ModuleFrame identified by key The method will block if there is no ModuleFrame associated with the key. |
ModuleFrame |
getFrameOfType(java.lang.String type)
Return true if there is a frame of a certain type in the register. |
void |
put(java.lang.String key,
ModuleFrame frame)
Register a new ModuleFrame identified by key |
| 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 |
public FrameRegister()
| Method Detail |
public void add(ModuleFrame frame)
frame - A new ModuleFrame
public void put(java.lang.String key,
ModuleFrame frame)
key - The Identifier for a ModuleFrameframe - The ModuleFrame to associate with keypublic ModuleFrame get(java.lang.String key)
key - The identifier for the ModuleFramepublic boolean find(java.lang.String key)
public boolean findChild(java.lang.String childKey)
childKey - The identifier of a modulepublic void delete(ModuleFrame frame)
frame - The ModuleFrame to deletepublic ModuleFrame getFrameOfType(java.lang.String type)
|
Venice 0.751beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||