|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.help.DefaultHelpHistoryModel
DefaultHelpHistoryModel is default implementation of HelpHistoryModel interface
Field Summary | |
protected JHelp |
help
|
protected HelpModel |
helpModel
|
protected java.util.Vector |
history
|
protected int |
historyIndex
|
protected EventListenerList |
listenerList
|
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 |
protected void |
fireHistoryChanged(java.lang.Object source,
boolean previous,
boolean next)
Fires the history change |
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 |
protected HelpModel |
getModel()
Returns HelpModel |
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Vector history
protected int historyIndex
protected HelpModel helpModel
protected EventListenerList listenerList
protected JHelp help
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 entryprotected void fireHistoryChanged(java.lang.Object source, boolean previous, boolean next)
public void idChanged(HelpModelEvent e)
idChanged
in interface HelpModelListener
e
- The eventpublic void removeHelpSet(HelpSet hs)
removeHelpSet
in interface HelpHistoryModel
hs
- The removed HelpSetprotected HelpModel getModel()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |