All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.habanero.MirrorFrame

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----ncsa.habanero.MirrorFrame

public class MirrorFrame
extends Frame
implements HabaneroFrame
This is a window which knows how to send events over the Internet. The idea is that events travel up the component hierarchy until they arrive here, and are then checked to see if they should be sent. You can specify the type of Event to be sent - the default is that only ACTION_EVENTS are sent. It is Habanero's default implementation of HabaneroFrame, and delegates the event-sending methods to a HabaneroFrameImpl object. Habanero creates these internally - as a rule, someone writing a collaborative application does not have to make any.


Variable Index

 o delegate
 o disposed
 o UiCo

Constructor Index

 o MirrorFrame(Collobject)
Initialize the object with the Collobject it represents.
 o MirrorFrame(String, Collobject)
Initialize the object with the window name and the Collobject this object represents.

Method Index

 o action(Event, Object)
Delegate this method to the HabaneroFrameImpl.
 o addEventCode(int)
Add an event type which should be sent over the net.
 o dispose()
 o getCollobject()
Get the Collobject which this Frame visually represents.
 o handleEvent(Event)
Delegate this method to the HabaneroFrameImpl.
 o hide()
 o performedAction(Action)
 o processWindowEvent(WindowEvent)
 o querySplitterInputStream(InputStream, String)
 o querySplitterMarshallInputStream(MarshallInput, String)
 o querySplitterMarshallOutputStream(MarshallOutput, String)
 o querySplitterOutputStream(OutputStream, String)
 o removeEventCode(int)
Remove an event type which should be sent over the net.
 o removeNotify()
 o setCollobject(Collobject)
Set the Collobject which this Frame visually represents.
 o setFlag(String)
 o setVisible(boolean)
 o shouldSend(int)
Return true if the event type should be sent over the net.
 o show()
 o show(boolean)

Variables

 o delegate
 protected HabaneroFrameImpl delegate
 o UiCo
 protected Object UiCo
 o disposed
 protected boolean disposed

Constructors

 o MirrorFrame
 public MirrorFrame(String title,
                    Collobject rep)
Initialize the object with the window name and the Collobject this object represents.

 o MirrorFrame
 public MirrorFrame(Collobject rep)
Initialize the object with the Collobject it represents.

Methods

 o processWindowEvent
 protected void processWindowEvent(WindowEvent e)
Overrides:
processWindowEvent in class Window
 o action
 public boolean action(Event evt,
                       Object arg)
Delegate this method to the HabaneroFrameImpl.

Overrides:
action in class Component
 o addEventCode
 public void addEventCode(int code)
Add an event type which should be sent over the net. Delegate this method to the HabaneroFrameImpl.

 o removeNotify
 public void removeNotify()
Returns:
component has been told to remove itself from existance. This causes a crash.
Overrides:
removeNotify in class Container
 o removeEventCode
 public void removeEventCode(int code)
Remove an event type which should be sent over the net. Delegate this method to the HabaneroFrameImpl.

 o shouldSend
 public boolean shouldSend(int code)
Return true if the event type should be sent over the net. Delegate this method to the HabaneroFrameImpl.

 o handleEvent
 public boolean handleEvent(Event e)
Delegate this method to the HabaneroFrameImpl.

Overrides:
handleEvent in class Component
 o setCollobject
 public void setCollobject(Collobject c)
Set the Collobject which this Frame visually represents. Delegate this method to the HabaneroFrameImpl.

 o getCollobject
 public Collobject getCollobject()
Get the Collobject which this Frame visually represents. Delegate this method to the HabaneroFrameImpl.

 o setVisible
 public synchronized void setVisible(boolean bWay)
Overrides:
setVisible in class Component
 o show
 public void show()
Overrides:
show in class Window
 o show
 public void show(boolean bWay)
Overrides:
show in class Component
 o hide
 public void hide()
Overrides:
hide in class Component
 o setFlag
 public void setFlag(String flag)
 o dispose
 public synchronized void dispose()
Overrides:
dispose in class Frame
 o performedAction
 public void performedAction(Action action)
 o querySplitterMarshallOutputStream
 public SplitterMOStr querySplitterMarshallOutputStream(MarshallOutput out,
                                                        String strTag)
Parameters:
out - the initial output stream
strTag - the tag for the object
Returns:
a new splitter stream
 o querySplitterMarshallInputStream
 public SplitterMIStr querySplitterMarshallInputStream(MarshallInput in,
                                                       String strTag)
Parameters:
in - the initial input stream
strTag - the tag for the object
Returns:
a new splitter stream
 o querySplitterOutputStream
 public SplitterOutStr querySplitterOutputStream(OutputStream out,
                                                 String strTag)
Parameters:
out - the initial output stream
strTag - the tag for the object
Returns:
a new splitter stream
 o querySplitterInputStream
 public SplitterInStr querySplitterInputStream(InputStream in,
                                               String strTag)
Parameters:
in - the initial input stream
strTag - the tag for the object
Returns:
a new splitter stream

All Packages  Class Hierarchy  This Package  Previous  Next  Index