|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NavigationHistory
The interface provides information about browser navigation history and allows registering listeners to receive all browser navigation change events.
| Method Summary | |
|---|---|
void |
addHistoryChangeListener(HistoryChangeListener listener)
Registers a new listener that will receive all history change events. |
boolean |
canGoBack()
Returns true if the backward operation can be invoked. |
boolean |
canGoForward()
Returns true if the forward operation can be invoked. |
java.util.List<java.lang.String> |
getAllHistory()
Returns a history list that contains all visited locations. |
int |
getCurrentIndex()
Returns an index of the location of a currently loaded web page in Browser component. |
java.lang.String |
getCurrentLocation()
Returns the location of a currently loaded web page in Browser component. |
java.util.List<HistoryChangeListener> |
getHistoryChangeListeners()
Returns all registered listeners that receive navigation change events. |
void |
removeHistoryChangeListener(HistoryChangeListener listener)
Unregisters the specified listener so that it will no longer receive history change events. |
| Method Detail |
|---|
java.util.List<java.lang.String> getAllHistory()
java.lang.String getCurrentLocation()
getAllHistory(),
getCurrentIndex()int getCurrentIndex()
back or forward operation causes to change
the index value in history list. Using this method you can get an index of
a web page in navigation history list.
getAllHistory()boolean canGoBack()
true if the backward operation can be invoked.
true if the backward operation can be invoked.canGoForward()boolean canGoForward()
true if the forward operation can be invoked.
true if the forward operation can be invoked.canGoBack()void addHistoryChangeListener(HistoryChangeListener listener)
listener - a listener to register.removeHistoryChangeListener(com.teamdev.jxbrowser.events.HistoryChangeListener)void removeHistoryChangeListener(HistoryChangeListener listener)
listener - a listener to be removed.addHistoryChangeListener(com.teamdev.jxbrowser.events.HistoryChangeListener)java.util.List<HistoryChangeListener> getHistoryChangeListeners()
HistoryChangeListeners or an empty list if no ancestor
listeners are currently registered.addHistoryChangeListener(com.teamdev.jxbrowser.events.HistoryChangeListener),
removeHistoryChangeListener(com.teamdev.jxbrowser.events.HistoryChangeListener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||