litesoft
Diff Revisions
949
vs
950
for /trunk/Java/GWT/Server/src/org/litesoft/testplan/ActionParserClick.java
|
@@ -1,26 +1,26 @@ |
1 |
|
- |
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
|
- |
package org.litesoft.testplan; |
3 |
|
- |
|
4 |
|
- |
import org.litesoft.GWT.client.dev.ui.actions.*; |
5 |
|
- |
import org.litesoft.xml.*; |
6 |
|
- |
|
7 |
|
- |
public class ActionParserClick extends ActionParserBase { |
8 |
|
- |
private static final String TAG_NAME = "Click"; |
9 |
|
- |
private static final String ATTR_CTRL = "ctrl"; |
10 |
|
- |
private static final String ATTR_ALT = "alt"; |
11 |
|
- |
private static final String ATTR_SHIFT = "shift"; |
12 |
|
- |
|
13 |
|
- |
public ActionParserClick() { |
14 |
|
- |
super( TAG_NAME ); |
15 |
|
- |
} |
16 |
|
- |
|
17 |
|
- |
@Override |
18 |
|
- |
public ClickActionSpec parse( PullParserProxy pParser ) { |
19 |
|
- |
pParser.validateIsStartTag( TAG_NAME ); |
20 |
|
- |
boolean ctrl = Boolean.valueOf( pParser.getAttributeValue( ATTR_CTRL ) ); |
21 |
|
- |
boolean alt = Boolean.valueOf( pParser.getAttributeValue( ATTR_ALT ) ); |
22 |
|
- |
boolean shift = Boolean.valueOf( pParser.getAttributeValue( ATTR_SHIFT ) ); |
23 |
|
- |
pParser.validateNextIsEndTag( TAG_NAME ); |
24 |
|
- |
return new ClickActionSpec( ctrl, alt, shift ); |
25 |
|
- |
} |
26 |
|
- |
} |
|
1 |
+ |
// This Source Code is in the Public Domain per: http://unlicense.org |
|
2 |
+ |
package org.litesoft.testplan; |
|
3 |
+ |
|
|
4 |
+ |
import org.litesoft.GWT.client.dev.ui.actions.*; |
|
5 |
+ |
import org.litesoft.xml.*; |
|
6 |
+ |
|
|
7 |
+ |
public class ActionParserClick extends ActionParserBase { |
|
8 |
+ |
private static final String TAG_NAME = "Click"; |
|
9 |
+ |
private static final String ATTR_CTRL = "ctrl"; |
|
10 |
+ |
private static final String ATTR_ALT = "alt"; |
|
11 |
+ |
private static final String ATTR_SHIFT = "shift"; |
|
12 |
+ |
|
|
13 |
+ |
public ActionParserClick() { |
|
14 |
+ |
super( TAG_NAME ); |
|
15 |
+ |
} |
|
16 |
+ |
|
|
17 |
+ |
@Override |
|
18 |
+ |
public ClickActionSpec parse( PullParserProxy pParser ) { |
|
19 |
+ |
pParser.validateIsStartTag( TAG_NAME ); |
|
20 |
+ |
boolean ctrl = Boolean.valueOf( pParser.getAttributeValue( ATTR_CTRL ) ); |
|
21 |
+ |
boolean alt = Boolean.valueOf( pParser.getAttributeValue( ATTR_ALT ) ); |
|
22 |
+ |
boolean shift = Boolean.valueOf( pParser.getAttributeValue( ATTR_SHIFT ) ); |
|
23 |
+ |
pParser.validateNextIsEndTag( TAG_NAME ); |
|
24 |
+ |
return new ClickActionSpec( ctrl, alt, shift ); |
|
25 |
+ |
} |
|
26 |
+ |
} |