javax.help.event
Class HelpModelEvent
java.util.EventObject
javax.help.event.HelpModelEvent
public class HelpModelEvent
extends java.util.EventObject
Notifies interested parties that a change in a
Help Model source has occurred.
HelpModelEvent(Object source, int pos0, int pos1) - Creates a HelpModelEvent for highlighting.
|
HelpModelEvent(Object source, Map.ID id, URL url) - Represents a change in the JavaHelp in the current ID or URL.
|
HelpModelEvent(Object source, Map.ID id, URL url, String historyName, JHelpNavigator navigator) - Represents a change in the JavaHelp in the current ID or URL.
|
HelpModelEvent
public HelpModelEvent(Object source,
int pos0,
int pos1)
Creates a HelpModelEvent for highlighting.
source
- The source for this event.pos0
- Start position.pos1
- End position.
HelpModelEvent
public HelpModelEvent(Object source,
Map.ID id,
URL url)
Represents a change in the JavaHelp in the current ID or URL.
source
- The source for this event.id
- The ID that has changed. Should be null if URL is specified.url
- The URL that has changed. Should be null if ID is specified.
HelpModelEvent
public HelpModelEvent(Object source,
Map.ID id,
URL url,
String historyName,
JHelpNavigator navigator)
Represents a change in the JavaHelp in the current ID or URL.
source
- The source for this event.id
- The ID that has changed. Should be null if URL is specified.url
- The URL that has changed. Should be null if ID is specified.historyName
- The name of selected entrynavigator
- The JHelpNavigator
getHistoryName
public String getHistoryName()
Returns the name of this entry
getID
public Map.ID getID()
Returns the current ID in the HelpModel.
getNavigator
public JHelpNavigator getNavigator()
Returns the navigator of this entry
getPos0
public int getPos0()
- The start position of this (highlighting) event.
getPos1
public int getPos1()
- The end position of this (highlighting) event.
getURL
public URL getURL()
Returns the current URL in the HelpModel.