|
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
|
|
From: Lieven D. (JIRA) <no...@sp...> - 2008-10-09 20:37:24
|
[ http://jira.springframework.org/browse/RCP-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lieven Doclo updated RCP-129:
-----------------------------
Fix Version/s: 1.0.2
> Modifier util methods in ActionCommand
> --------------------------------------
>
> Key: RCP-129
> URL: http://jira.springframework.org/browse/RCP-129
> Project: Spring Framework Rich Client Project
> Issue Type: Improvement
> Reporter: Peter De Bruycker
> Priority: Trivial
> Fix For: 1.0.2
>
>
> 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://jira.springframework.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
|
From: Lieven D. (JIRA) <no...@sp...> - 2009-01-16 08:14:22
|
[ http://jira.springframework.org/browse/RCP-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lieven Doclo updated RCP-129:
-----------------------------
Description:
These methods should be added for easier modifier key detection
{code}
/**
* 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;
}
{code}
was:
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;
}
> Modifier util methods in ActionCommand
> --------------------------------------
>
> Key: RCP-129
> URL: http://jira.springframework.org/browse/RCP-129
> Project: Spring Rich Client Project
> Issue Type: Improvement
> Reporter: Peter De Bruycker
> Priority: Trivial
> Fix For: 1.1.0
>
>
> These methods should be added for easier modifier key detection
> {code}
> /**
> * 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;
> }
> {code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.springframework.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|