net.hivecell.hive.shadow.cell
Class ComponentManagerShadowImpl
java.lang.Object
|
+--net.hivecell.hive.shadow.ShadowImpl
|
+--net.hivecell.hive.shadow.cell.ComponentManagerShadowImpl
- public class ComponentManagerShadowImpl
- extends ShadowImpl
- implements java.io.Serializable, ComponentManagerShadow
- See Also:
- Serialized Form
Method Summary |
java.awt.Frame |
acceptComponentFrom(java.lang.Object o,
java.awt.Component c,
java.lang.String s)
ask the agennt component manager shadow to render a component
for a specific object |
void |
init()
just make ourselves ready for action |
void |
removeComponentFrom(java.lang.Object o,
java.awt.Component c)
remove a component that an object has given us. |
void |
removeComponentsFrom(java.lang.Object o)
remove all the components for an object |
Methods inherited from class net.hivecell.hive.shadow.ShadowImpl |
blockUntilReady,
getAllInterfaces,
getAllShadowMethods,
getDefaultAgent,
getDescription,
getShadowInterfaces,
getStub,
isReady,
loadDescription,
loadDescription,
setCell,
setDescription,
setReady |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
objectComponents
protected java.util.Hashtable objectComponents
frameOwners
protected java.util.Hashtable frameOwners
componentFrames
protected java.util.Hashtable componentFrames
ComponentManagerShadowImpl
public ComponentManagerShadowImpl()
init
public void init()
throws ShadowInitializationException
- just make ourselves ready for action
- Overrides:
- init in class ShadowImpl
acceptComponentFrom
public java.awt.Frame acceptComponentFrom(java.lang.Object o,
java.awt.Component c,
java.lang.String s)
- ask the agennt component manager shadow to render a component
for a specific object
- Specified by:
- acceptComponentFrom in interface ComponentManagerShadow
- Parameters:
o
- the objectc
- the components
- the title of the frame that it is going to be stuck in
removeComponentFrom
public void removeComponentFrom(java.lang.Object o,
java.awt.Component c)
- remove a component that an object has given us. only an object
can destroy it's own component. in this case, there is only one
component per object, but this might change in the future.
- Specified by:
- removeComponentFrom in interface ComponentManagerShadow
- Parameters:
o
- the object requesting the component be removedc
- the component to remove
removeComponentsFrom
public void removeComponentsFrom(java.lang.Object o)
- remove all the components for an object
- Specified by:
- removeComponentsFrom in interface ComponentManagerShadow
- Parameters:
o
- the object