com.jidesoft.shortcut
Class MouseShortcut
java.lang.Object
com.jidesoft.shortcut.Shortcut
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
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)
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)