Classes in Package javax.help.event
EventListenerList
This
class is similar in effect and purpose
to the EventListenerList
found in the Swing
package. It serves as a type-safe means of storing several listeners
in a single list. You can attach a listener to this list using the
add( )
method. Notice that you specify the class
type of the listener in addition to the listener itself. This class
type can be used later to filter out a subset of listeners that fit a
particular description.
public classEventListenerList
implements Serializable {// Instance Fields
protected transient Object[]listenerList
;// Constructors
publicEventListenerList
( )// Instance Methods
public synchronized voidadd
(Classt
, EventListenerl
) public intgetListenerCount
(Classt
) public intgetListenerCount
( ) public Object;getListenerList
( ) public synchronized voidremove
(Classt
, EventListenerl
) public StringtoString
( )// Overrides java.lang.Object
}
HelpModelEvent
This event describes a change in the current
HelpModel
. This could be a change in a specific ID
or a change in the highlighting (represented by
pos0
and pos1
).
public classHelpModelEvent
extends EventObject {// Constructors
publicHelpModelEvent
(Objectsource
, intpos0
, intpos1
) publicHelpModelEvent
(Objectsource
, Map.IDid
, URLurl
)// Instance Methods
public Map.IDgetID
( ) public intgetPos0
( ) public intgetPos1
( ) public URLgetURL
( ) }
HelpModelListener
This listener receives notification when the current ID in a
HelpModel
changes. ...
Get Creating Effective JavaHelp now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.