javax.help.event

Class HelpSetEvent


public class HelpSetEvent
extends java.util.EventObject

Conveys information when a HelpSet is added/removed.

Field Summary

static int
HELPSET_ADDED
A HelpSet was added
static int
HELPSET_REMOVED
A HelpSet was removed

Constructor Summary

HelpSetEvent(Object source, HelpSet helpset, int action)
Creates a HelpSetEvent.

Method Summary

int
getAction()
HelpSet
getHelpSet()
String
toString()
Returns textual about the instance.

Field Details

HELPSET_ADDED

public static final int HELPSET_ADDED
A HelpSet was added
Field Value:
0

HELPSET_REMOVED

public static final int HELPSET_REMOVED
A HelpSet was removed
Field Value:
1

Constructor Details

HelpSetEvent

public HelpSetEvent(Object source,
                    HelpSet helpset,
                    int action)
Creates a HelpSetEvent.
Parameters:
source - Source of this Event.
helpset - The HelpSet being added/removed.
action - HELPSET_ADDED or HELPSET_REMOVED.

Method Details

getAction

public int getAction()
Returns:
The action

getHelpSet

public HelpSet getHelpSet()
Returns:
The HelpSet.

toString

public String toString()
Returns textual about the instance.