|
From: Keith D. (JIRA) <no...@at...> - 2007-08-10 14:21:27
|
[ http://opensource.atlassian.com/projects/spring/browse/RCP-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Keith Donald updated RCP-129:
-----------------------------
Assignee: (was: Keith Donald)
> Modifier util methods in ActionCommand
> --------------------------------------
>
> Key: RCP-129
> URL: http://opensource.atlassian.com/projects/spring/browse/RCP-129
> Project: Spring Framework Rich Client Project
> Issue Type: Improvement
> Reporter: Peter De Bruycker
> Priority: Trivial
>
> These methods should be added for easier modifier key detection
> /**
> * Returns <code>true</code> if the shift key was down when invoking this
> * <code>ActionCommand</code>.
> * @return <code>true</code> if the shift key was down, <code>false</code>
> * otherwise
> */
> protected boolean isShiftDown() {
> return (getModifiers() & ActionEvent.SHIFT_MASK) != 0;
> }
>
> /**
> * Returns <code>true</code> if the control key was down when invoking this
> * <code>ActionCommand</code>.
> * @return <code>true</code> if the control key was down, <code>false</code>
> * otherwise
> */
> protected boolean isControlDown() {
> return (getModifiers() & ActionEvent.CTRL_MASK) != 0;
> }
>
> /**
> * Returns <code>true</code> if the meta key was down when invoking this
> * <code>ActionCommand</code>.
> * @return <code>true</code> if the meta key was down, <code>false</code>
> * otherwise
> */
> protected boolean isMetaDown() {
> return (getModifiers() & ActionEvent.META_MASK) != 0;
> }
>
> /**
> * Returns <code>true</code> if the alt key was down when invoking this
> * <code>ActionCommand</code>.
> * @return <code>true</code> if the alt key was down, <code>false</code>
> * otherwise
> */
> protected boolean isAltDown() {
> return (getModifiers() & ActionEvent.ALT_MASK) != 0;
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/spring/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|