JIDE 3.5.15

com.jidesoft.shortcut
Class ShortcutEvent

java.lang.Object
  extended by java.util.EventObject
      extended by 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

Field Summary
protected  int _type
           
static int SHORTCUT_ADDED
           
static int SHORTCUT_EVENT_FIRST
          The first number in the range of ids used for shortcut events.
static int SHORTCUT_REMOVED
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ShortcutEvent(Object source, int type)
          Constructs a ShortcutEvent object.
ShortcutEvent(Object source, int type, String command, Shortcut shortcut)
           
 
Method Summary
 String getCommand()
           
 Shortcut getShortcut()
           
 int getType()
           
 String paramString()
          Returns a parameter string identifying this event.
 String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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)
Method Detail

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

JIDE 3.5.15