org.mozilla.webclient
Interface EventRegistration2

All Superinterfaces:
EventRegistration

public interface EventRegistration2
extends EventRegistration

Extended event registration features.


Method Summary
 void addKeyListener(java.awt.event.KeyListener listener)
          Add the argument listener as a KeyListener for the current BrowserControl.
 void addNewWindowListener(NewWindowListener listener)
          Deprecated. Use setNewWindowListener(org.mozilla.webclient.NewWindowListener) instead. Implementations must implement this method as a call to setNewWindowListener(org.mozilla.webclient.NewWindowListener) passing null, followed by a call to setNewWindowListener(org.mozilla.webclient.NewWindowListener) passing the argument listener.
 void removeKeyListener(java.awt.event.KeyListener listener)
          Remove the argument listener from the current BrowserControl.
 void removeNewWindowListener(NewWindowListener listener)
          Deprecated. Use setNewWindowListener(org.mozilla.webclient.NewWindowListener) passing null.
 void setNewWindowListener(NewWindowListener listener)
          Set the argument listener as the one and only NewWindowListener for the current BrowserControl.
 
Methods inherited from interface org.mozilla.webclient.EventRegistration
addDocumentLoadListener, addMouseListener, removeDocumentLoadListener, removeMouseListener
 

Method Detail

setNewWindowListener

void setNewWindowListener(NewWindowListener listener)

Set the argument listener as the one and only NewWindowListener for the current BrowserControl.

Parameters:
listener - the listener to install

addNewWindowListener

void addNewWindowListener(NewWindowListener listener)
Deprecated. Use setNewWindowListener(org.mozilla.webclient.NewWindowListener) instead. Implementations must implement this method as a call to setNewWindowListener(org.mozilla.webclient.NewWindowListener) passing null, followed by a call to setNewWindowListener(org.mozilla.webclient.NewWindowListener) passing the argument listener.

Add the argument listener as a NewWindowListener to the current BrowserControl.

Parameters:
listener - the listener to install

removeNewWindowListener

void removeNewWindowListener(NewWindowListener listener)
Deprecated. Use setNewWindowListener(org.mozilla.webclient.NewWindowListener) passing null.

Remove the argument listener from the current BrowserControl.

Parameters:
listener - the listener to remove

addKeyListener

void addKeyListener(java.awt.event.KeyListener listener)

Add the argument listener as a KeyListener for the current BrowserControl.

Parameters:
listener - the listener to install

removeKeyListener

void removeKeyListener(java.awt.event.KeyListener listener)

Remove the argument listener from the current BrowserControl.

Parameters:
listener - the listener to remove


Copyright 2002-2007 Mozilla.org All Rights Reserved.