|
juife v0.1a |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.juife.DefaultNavigationHistoryModel
public class DefaultNavigationHistoryModel
Provides default implementation of the NavigationHistoryModel
interface.
Note that this implementation of NavigationHistoryModel
is not synchronized.
Constructor Summary | |
---|---|
DefaultNavigationHistoryModel()
Creates a new instance of DefaultNavigationHistoryModel . |
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. |
protected void |
fireActionPerformed()
Notifies registered listeners that the history list has changed. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultNavigationHistoryModel()
DefaultNavigationHistoryModel
.
Method Detail |
---|
public void addActionListener(java.awt.event.ActionListener l)
ActionListener
to be
notified about changes of the history list.
addActionListener
in interface NavigationHistoryModel
l
- The ActionListener
to register.public void removeActionListener(java.awt.event.ActionListener l)
removeActionListener
in interface NavigationHistoryModel
l
- The ActionListener
to remove.protected void fireActionPerformed()
public void addPage(NavigationPage page)
null
or is equal to the page to be added.
addPage
in interface NavigationHistoryModel
page
- The page to be added to the history list.public NavigationPage goBack()
goBack
in interface NavigationHistoryModel
null
if
there is no previous page in the history list.hasBack()
public boolean hasBack()
hasBack
in interface NavigationHistoryModel
true
if there is at least one page before
the current page in the history list, false
otherwise.public NavigationPage goForward()
goForward
in interface NavigationHistoryModel
null
if
there is no next page in the history list.hasForward()
public boolean hasForward()
hasForward
in interface NavigationHistoryModel
true
if there is at least one page after
the current page in the history list, false
otherwise.public void goFirst()
goFirst
in interface NavigationHistoryModel
public void goLast()
goLast
in interface NavigationHistoryModel
public NavigationPage getCurrentPage()
getCurrentPage
in interface NavigationHistoryModel
null
if the history list is empty.public int getPageCount()
getPageCount
in interface NavigationHistoryModel
public void clearHistory()
clearHistory
in interface NavigationHistoryModel
|
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. |