com.jidesoft.shortcut
Class ShortcutEvent
java.lang.Object
java.util.EventObject
com.jidesoft.shortcut.ShortcutEvent
- All Implemented Interfaces:
- Serializable
public class ShortcutEvent
- extends EventObject
ShortcutEvent
is used to notify interested parties that shortcuts in shortcut editor has changed in the
event source.
- See Also:
- Serialized Form
SHORTCUT_EVENT_FIRST
public static final int SHORTCUT_EVENT_FIRST
- The first number in the range of ids used for shortcut events.
- See Also:
- Constant Field Values
SHORTCUT_ADDED
public static final int SHORTCUT_ADDED
- See Also:
- Constant Field Values
SHORTCUT_REMOVED
public static final int SHORTCUT_REMOVED
- See Also:
- Constant Field Values
_type
protected int _type
ShortcutEvent
public ShortcutEvent(Object source,
int type)
- Constructs a ShortcutEvent object.
- Parameters:
source
- the Object that is the source of the event (typically this
)
ShortcutEvent
public ShortcutEvent(Object source,
int type,
String command,
Shortcut shortcut)
getType
public int getType()
getShortcut
public Shortcut getShortcut()
getCommand
public String getCommand()
paramString
public String paramString()
- Returns a parameter string identifying this event. This method is useful for event logging and for debugging.
- Returns:
- a string identifying the event and its attributes
toString
public String toString()
- Overrides:
toString
in class EventObject