|
juife v0.1a |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NavigationHistoryModel
This interface defines the data model for the
navigation history list in NavigationPane.
The change of the current page can be handled by registering
an ActionListener using the addActionListener(java.awt.event.ActionListener) method.
| Method Summary | |
|---|---|
void |
addActionListener(java.awt.event.ActionListener l)
Registers the specified ActionListener to be
notified about changes of the history list. |
void |
addPage(NavigationPage page)
Adds the specified page to the history list after the current page. |
void |
clearHistory()
Removes all pages from history list except the current page. |
NavigationPage |
getCurrentPage()
Gets the current page in the history list. |
int |
getPageCount()
Gets the current number of pages in the history list. |
NavigationPage |
goBack()
Goes to the previous page in the history list. |
void |
goFirst()
Goes to the first page in the history list. |
NavigationPage |
goForward()
Goes to the next page in the history list. |
void |
goLast()
Goes to the last page in the history list. |
boolean |
hasBack()
Determines whether there is at least one page before the current page in the history list. |
boolean |
hasForward()
Determines whether there is at least one page after the current page in the history list. |
void |
removeActionListener(java.awt.event.ActionListener l)
Removes the specified listener. |
| Method Detail |
|---|
void addActionListener(java.awt.event.ActionListener l)
ActionListener to be
notified about changes of the history list.
l - The ActionListener to register.void removeActionListener(java.awt.event.ActionListener l)
l - The ActionListener to remove.void addPage(NavigationPage page)
page - The page to be added to the history list.NavigationPage goBack()
null if
there is no previous page in the history list.hasBack()boolean hasBack()
true if there is at least one page before
the current page in the history list, false otherwise.NavigationPage goForward()
null if
there is no next page in the history list.hasForward()boolean hasForward()
true if there is at least one page after
the current page in the history list, false otherwise.void goFirst()
void goLast()
NavigationPage getCurrentPage()
null if the history list is empty.int getPageCount()
void clearHistory()
|
juife v0.1a |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Copyright © 2005 Grigor Iliev. All rights reserved. |