com.pepper.guiutils.browser
Class BrowserEvent

java.lang.Object
  extended by com.pepper.guiutils.browser.BrowserEvent
Direct Known Subclasses:
PepperContextMenuEvent, PepperHistoryEvent, PepperProgressEvent, PepperURIContentEvent, StateChangeEvent, StatusEvent

public class BrowserEvent
extends Object

Base class for browser-related events.


Constructor Summary
BrowserEvent(String viewID, int eventType, Object eventParam)
          Constructor
 
Method Summary
 Object getEventParam()
          Returns the data associated with the event
 int getEventType()
          Returns the type of the event.
 String getViewID()
          Returns the viewID of the WebBrowserView that generated the event.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BrowserEvent

public BrowserEvent(String viewID,
                    int eventType,
                    Object eventParam)
Constructor

Parameters:
viewID - ID of the WebBrowserView that generated the event
eventType - type of the event
eventParam - data associated with the event
Method Detail

getViewID

public String getViewID()
Returns the viewID of the WebBrowserView that generated the event.

Returns:
viewID of a WebBrowserView

getEventType

public int getEventType()
Returns the type of the event. The specific meaning of the event type is up to the BrowserEvent subclass.

Returns:
type of the event

getEventParam

public Object getEventParam()
Returns the data associated with the event

Returns:
type-specific parameter for the event

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object


Copyright © 2006-2007 Pepper Computer, Inc. All Rights Reserved.