com.teamdev.jxbrowser.events
Class HistoryChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.teamdev.jxbrowser.events.BrowserEvent
          extended by com.teamdev.jxbrowser.events.HistoryChangeEvent
All Implemented Interfaces:
java.io.Serializable

public class HistoryChangeEvent
extends BrowserEvent

An event which indicates that a browser navigation history was changed.

See Also:
Serialized Form

Constructor Summary
HistoryChangeEvent(Browser source, int index, java.lang.String currentLocation, HistoryChangeType type)
          Constructs a new HistoryChangeEvent instance.
 
Method Summary
 java.lang.String getCurrentLocation()
          Returns current history location.
 int getIndex()
          Returns index of the current location in history
 HistoryChangeType getType()
          Returns type of history change.
 
Methods inherited from class com.teamdev.jxbrowser.events.BrowserEvent
getBrowser
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HistoryChangeEvent

public HistoryChangeEvent(Browser source,
                          int index,
                          java.lang.String currentLocation,
                          HistoryChangeType type)
Constructs a new HistoryChangeEvent instance.

Parameters:
source - the browser were history is changed
index - the history index
currentLocation - the history location address
type - the history change event type
Method Detail

getIndex

public int getIndex()
Returns index of the current location in history

Returns:
index of current location in history

getCurrentLocation

public java.lang.String getCurrentLocation()
Returns current history location.

Returns:
current history location

getType

public HistoryChangeType getType()
Returns type of history change.

Returns:
history change type