Skip to Main Content
Creating Effective JavaHelp
book

Creating Effective JavaHelp

by Kevin Lewis
June 2000
Intermediate to advanced content levelIntermediate to advanced
192 pages
4h 53m
English
O'Reilly Media, Inc.
Content preview from Creating Effective JavaHelp

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 class EventListenerList implements Serializable {
 // Instance Fields
   protected transient Object[] listenerList;
 // Constructors
   public EventListenerList(  )
 // Instance Methods
   public synchronized void add(Class t, EventListener l)
   public int getListenerCount(Class t)
   public int getListenerCount(  )
   public Object; getListenerList(  )
   public synchronized void remove(Class t, EventListener l)
   public String toString(  )  // 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 class HelpModelEvent extends EventObject {
 // Constructors
   public HelpModelEvent(Object source, int pos0, int pos1)
   public HelpModelEvent(Object source, Map.ID id, URL url)
 // Instance Methods
   public Map.ID getID(  )
   public int getPos0(  )
   public int getPos1(  )
   public URL getURL(  )
}

HelpModelListener

This listener receives notification when the current ID in a HelpModel changes. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Expert One-on-One™ J2EE™ Development without EJB™

Expert One-on-One™ J2EE™ Development without EJB™

Rod Johnson, Juergen Hoeller
Pro JavaFX 9: A Definitive Guide to Building Desktop, Mobile, and Embedded Java Clients

Pro JavaFX 9: A Definitive Guide to Building Desktop, Mobile, and Embedded Java Clients

Johan Vos, Stephen Chin, Weiqi Gao, James Weaver, Dean Iverson

Publisher Resources

ISBN: 1565927192Supplemental ContentCatalog PageErrata