|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.help.DefaultHelpHistoryModel
DefaultHelpHistoryModel is default implementation of HelpHistoryModel interface
Constructor Summary | |
DefaultHelpHistoryModel(JHelp help)
Creates new DefaultHelpHistoryModel for given JHelp |
Method Summary | |
void |
addHelpHistoryModelListener(HelpHistoryModelListener l)
Adds a listener for the HelpHistoryModelEvent posted after the model has changed. |
void |
discard()
Discards a history |
java.util.Vector |
getBackwardHistory()
Returns a backward history vector |
java.util.Vector |
getForwardHistory()
Returns a forward history vector |
java.util.Vector |
getHistory()
Returns a history |
int |
getIndex()
Returns a current history position |
void |
goBack()
Sets the previous histroy entry |
void |
goForward()
Sets the next history entry |
void |
idChanged(HelpModelEvent e)
Tells the listener that the current ID in the HelpModel has changed. |
void |
removeHelpHistoryModelListener(HelpHistoryModelListener l)
Removes a listener previously added with addHelpHistoryModelListener |
void |
removeHelpSet(HelpSet hs)
Removes entries related to removed HelpSet from history |
void |
removeLastEntry()
Removes the last history entry |
void |
setHelpModel(HelpModel model)
Sets a new HelpModel |
void |
setHistoryEntry(int index)
Sets the current history entry |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultHelpHistoryModel(JHelp help)
help
- The JHelpMethod Detail |
public void setHelpModel(HelpModel model)
setHelpModel
in interface HelpHistoryModel
model
- The new HelpModelpublic void removeHelpHistoryModelListener(HelpHistoryModelListener l)
removeHelpHistoryModelListener
in interface HelpHistoryModel
l
- The listener to remove.HelpHistoryModel.addHelpHistoryModelListener(javax.help.event.HelpHistoryModelListener)
public void addHelpHistoryModelListener(HelpHistoryModelListener l)
addHelpHistoryModelListener
in interface HelpHistoryModel
l
- The listener to add.HelpHistoryModel.removeHelpHistoryModelListener(javax.help.event.HelpHistoryModelListener)
public void discard()
discard
in interface HelpHistoryModel
public java.util.Vector getHistory()
getHistory
in interface HelpHistoryModel
public void removeLastEntry()
public int getIndex()
getIndex
in interface HelpHistoryModel
public void goForward()
goForward
in interface HelpHistoryModel
public void goBack()
goBack
in interface HelpHistoryModel
public java.util.Vector getForwardHistory()
getForwardHistory
in interface HelpHistoryModel
public java.util.Vector getBackwardHistory()
getBackwardHistory
in interface HelpHistoryModel
public void setHistoryEntry(int index)
setHistoryEntry
in interface HelpHistoryModel
index
- The index of history entrypublic void idChanged(HelpModelEvent e)
idChanged
in interface HelpModelListener
e
- The eventpublic void removeHelpSet(HelpSet hs)
removeHelpSet
in interface HelpHistoryModel
hs
- The removed HelpSet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |