JIDE 3.5.15

com.jidesoft.shortcut
Class MouseShortcut

java.lang.Object
  extended by com.jidesoft.shortcut.Shortcut
      extended by com.jidesoft.shortcut.MouseShortcut
All Implemented Interfaces:
Serializable, Cloneable

public class MouseShortcut
extends Shortcut

MouseShortcut represents a kind of shortcuts that triggered by mouse. It can be single click of one of the mouse buttons, or double clicks, or even triple clicks if you want. It can also have modifiers which is status of keyboard's ctrl (or command on Mac OS X), shift or alt (or option key on Mac OS X).

See Also:
Serialized Form

Constructor Summary
MouseShortcut()
           
MouseShortcut(int button, int clickCount, int modifiers)
           
MouseShortcut(int button, int clickCount, int modifiers, String context)
           
MouseShortcut(MouseEvent e)
           
 
Method Summary
 boolean equals(Object o)
           
 int getButton()
           
 int getClickCount()
           
 int getModifiers()
           
static String getModifiersExText(int modifiers)
           
static String getMouseShortcutString(MouseShortcut shortcut)
           
 int hashCode()
           
static MouseShortcut parse(String s)
           
 void setButton(int button)
           
 void setClickCount(int clickCount)
           
 void setModifiers(int modifiers)
           
 String toString()
           
 
Methods inherited from class com.jidesoft.shortcut.Shortcut
clone, getContext, getIcon, getName, setContext, setIcon, setName
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MouseShortcut

public MouseShortcut()

MouseShortcut

public MouseShortcut(int button,
                     int clickCount,
                     int modifiers)

MouseShortcut

public MouseShortcut(MouseEvent e)

MouseShortcut

public MouseShortcut(int button,
                     int clickCount,
                     int modifiers,
                     String context)
Method Detail

getClickCount

public int getClickCount()

setClickCount

public void setClickCount(int clickCount)

getButton

public int getButton()

setButton

public void setButton(int button)

getModifiers

public int getModifiers()

setModifiers

public void setModifiers(int modifiers)

toString

public String toString()
Overrides:
toString in class Object

parse

public static MouseShortcut parse(String s)

getMouseShortcutString

public static String getMouseShortcutString(MouseShortcut shortcut)

equals

public boolean equals(Object o)
Overrides:
equals in class Shortcut

hashCode

public int hashCode()
Overrides:
hashCode in class Shortcut

getModifiersExText

public static String getModifiersExText(int modifiers)

JIDE 3.5.15