javax.help
Class DefaultHelpHistoryModel
java.lang.Object
javax.help.DefaultHelpHistoryModel
- java.util.EventListener, HelpHistoryModel, HelpModelListener, Serializable
public class DefaultHelpHistoryModel
extends java.lang.Object
DefaultHelpHistoryModel is default implementation of HelpHistoryModel interface
history
protected Vector history
historyIndex
protected int historyIndex
DefaultHelpHistoryModel
public DefaultHelpHistoryModel(JHelp help)
Creates new DefaultHelpHistoryModel for given JHelp
fireHistoryChanged
protected void fireHistoryChanged(Object source,
boolean previous,
boolean next)
Fires the history change
getBackwardHistory
public Vector getBackwardHistory()
Returns a backward history vector
- getBackwardHistory in interface HelpHistoryModel
- The vector of backward history entries
getForwardHistory
public Vector getForwardHistory()
Returns a forward history vector
- getForwardHistory in interface HelpHistoryModel
- The vector of forward history entries
getModel
protected HelpModel getModel()
Returns HelpModel
idChanged
public void idChanged(HelpModelEvent e)
Tells the listener that the current ID in the HelpModel has
changed.
All highlights from the previous location change at this point.
- idChanged in interface HelpModelListener
removeLastEntry
public void removeLastEntry()
Removes the last history entry
setHistoryEntry
public void setHistoryEntry(int index)
Sets the current history entry
- setHistoryEntry in interface HelpHistoryModel
index
- The index of history entry