com.borland.primetime.ide
Class BrowserAdapter

java.lang.Object
  |
  +--com.borland.primetime.ide.BrowserAdapter
All Implemented Interfaces:
BrowserListener, java.util.EventListener
Direct Known Subclasses:
BookmarkManager

public class BrowserAdapter
extends java.lang.Object
implements BrowserListener

This is a stubbed implementation of BrowserListener to allow for easier inner-class event handling.

See Also:
BrowserListener, Browser, NodeViewer, Node

Constructor Summary
BrowserAdapter()
           
 
Method Summary
 void browserActivated(Browser browser)
          Invoked when a Browser window is activated.
 void browserClosed(Browser browser)
          Invoked when all listeners agree that close is okay.
 void browserClosing(Browser browser)
          Invoked in response to a close request.
 void browserDeactivated(Browser browser)
          Invoked when the Browser window loses activation to another Browser, or to another application.
 void browserNodeActivated(Browser browser, Node node)
          Invoked when the Browser's 'active' Node is changed, such as when the user switches from one file to another.
 void browserNodeClosed(Browser browser, Node node)
          Invoked when a Node is closed.
 void browserOpened(Browser browser)
          Invoked when a Browser is first opened.
 void browserProjectActivated(Browser browser, Project project)
          Invoked when the Browser's 'active' Project has just changed, such as when the user switches from one file belonging to ProjectA to another file that belongs to ProjectB.
 void browserProjectClosed(Browser browser, Project project)
          Invoked when a Project is closed.
 void browserViewerActivated(Browser browser, Node node, NodeViewer viewer)
          Invoked when the Browser's active viewer is changed, such as when the user switches from the source tab to the design tab.
 void browserViewerDeactivating(Browser browser, Node node, NodeViewer viewer)
          Invoked when the Browser's viewer is about to be changed, ie.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrowserAdapter

public BrowserAdapter()
Method Detail

browserOpened

public void browserOpened(Browser browser)
Description copied from interface: BrowserListener
Invoked when a Browser is first opened. This event is fired only once per Browser.
Specified by:
browserOpened in interface BrowserListener
See Also:
BrowserListener

browserActivated

public void browserActivated(Browser browser)
Description copied from interface: BrowserListener
Invoked when a Browser window is activated.
Specified by:
browserActivated in interface BrowserListener
See Also:
BrowserListener

browserDeactivated

public void browserDeactivated(Browser browser)
Description copied from interface: BrowserListener
Invoked when the Browser window loses activation to another Browser, or to another application.
Specified by:
browserDeactivated in interface BrowserListener
See Also:
BrowserListener

browserClosing

public void browserClosing(Browser browser)
                    throws VetoException
Description copied from interface: BrowserListener
Invoked in response to a close request. Listener may veto Browser shutdown by throwing a VetoException, and the Browser will not be closed.
Specified by:
browserClosing in interface BrowserListener
See Also:
BrowserListener

browserClosed

public void browserClosed(Browser browser)
Description copied from interface: BrowserListener
Invoked when all listeners agree that close is okay. This is a notification that the Browser has closed (is about to, and you can't stop it).
Specified by:
browserClosed in interface BrowserListener
See Also:
BrowserListener

browserProjectActivated

public void browserProjectActivated(Browser browser,
                                    Project project)
Description copied from interface: BrowserListener
Invoked when the Browser's 'active' Project has just changed, such as when the user switches from one file belonging to ProjectA to another file that belongs to ProjectB.
Specified by:
browserProjectActivated in interface BrowserListener
See Also:
BrowserListener

browserProjectClosed

public void browserProjectClosed(Browser browser,
                                 Project project)
Description copied from interface: BrowserListener
Invoked when a Project is closed.
Specified by:
browserProjectClosed in interface BrowserListener
See Also:
BrowserListener

browserNodeActivated

public void browserNodeActivated(Browser browser,
                                 Node node)
Description copied from interface: BrowserListener
Invoked when the Browser's 'active' Node is changed, such as when the user switches from one file to another.
Specified by:
browserNodeActivated in interface BrowserListener
See Also:
BrowserListener

browserNodeClosed

public void browserNodeClosed(Browser browser,
                              Node node)
Description copied from interface: BrowserListener
Invoked when a Node is closed.
Specified by:
browserNodeClosed in interface BrowserListener
See Also:
BrowserListener

browserViewerActivated

public void browserViewerActivated(Browser browser,
                                   Node node,
                                   NodeViewer viewer)
Description copied from interface: BrowserListener
Invoked when the Browser's active viewer is changed, such as when the user switches from the source tab to the design tab.
Specified by:
browserViewerActivated in interface BrowserListener
See Also:
BrowserListener

browserViewerDeactivating

public void browserViewerDeactivating(Browser browser,
                                      Node node,
                                      NodeViewer viewer)
                               throws VetoException
Description copied from interface: BrowserListener
Invoked when the Browser's viewer is about to be changed, ie. the user switches from the source tab to the design tab. A listener can veto the change by throwing a VetoException, and the viewer will not be changed.
Specified by:
browserViewerDeactivating in interface BrowserListener
See Also:
BrowserListener