litesoft
Diff Revisions
954
vs
955
for /trunk/Java/GWT/Dev/src/org/litesoft/GWT/client/dev/ui/testplan/AbstractTestPlanActionInputForm.java
|
@@ -6,18 +6,15 @@ |
6 |
6 |
|
import org.litesoft.commonfoundation.base.*; |
7 |
7 |
|
import org.litesoft.testplan.*; |
8 |
8 |
|
|
9 |
|
- |
public abstract class AbstractTestPlanActionInputForm implements TestPlanAction |
10 |
|
- |
{ |
|
9 |
+ |
public abstract class AbstractTestPlanActionInputForm implements TestPlanAction { |
11 |
10 |
|
private /* final */ String mLabel, mTooltip, mInputText; |
12 |
11 |
|
private /* final */ Integer mNth; |
13 |
12 |
|
|
14 |
13 |
|
@SuppressWarnings("deprecation") @Deprecated /** for Serialization */ |
15 |
|
- |
protected AbstractTestPlanActionInputForm() |
16 |
|
- |
{ |
|
14 |
+ |
protected AbstractTestPlanActionInputForm() { |
17 |
15 |
|
} |
18 |
16 |
|
|
19 |
|
- |
public AbstractTestPlanActionInputForm( String pLabel, String pTooltip, Integer pNth, String pInputText ) |
20 |
|
- |
{ |
|
17 |
+ |
public AbstractTestPlanActionInputForm( String pLabel, String pTooltip, Integer pNth, String pInputText ) { |
21 |
18 |
|
mLabel = pLabel; |
22 |
19 |
|
mTooltip = pTooltip; |
23 |
20 |
|
mNth = pNth; |
|
@@ -25,53 +22,43 @@ |
25 |
22 |
|
} |
26 |
23 |
|
|
27 |
24 |
|
@Override |
28 |
|
- |
public String toString() |
29 |
|
- |
{ |
|
25 |
+ |
public String toString() { |
30 |
26 |
|
StringBuilder sb = new StringBuilder(); |
31 |
27 |
|
sb.append( form() ); |
32 |
|
- |
if ( mNth != null ) |
33 |
|
- |
{ |
|
28 |
+ |
if ( mNth != null ) { |
34 |
29 |
|
sb.append( '[' ).append( mNth ).append( ']' ); |
35 |
30 |
|
} |
36 |
31 |
|
sb.append( " /w " ); |
37 |
|
- |
if ( mLabel != null ) |
38 |
|
- |
{ |
|
32 |
+ |
if ( mLabel != null ) { |
39 |
33 |
|
sb.append( "Label: " ).append( mLabel ); |
40 |
|
- |
} |
41 |
|
- |
else if ( mTooltip != null ) |
42 |
|
- |
{ |
|
34 |
+ |
} else if ( mTooltip != null ) { |
43 |
35 |
|
sb.append( "Tooltip: " ).append( mTooltip ); |
44 |
36 |
|
} |
45 |
37 |
|
return sb.toString(); |
46 |
38 |
|
} |
47 |
39 |
|
|
48 |
|
- |
public String getLabel() |
49 |
|
- |
{ |
|
40 |
+ |
public String getLabel() { |
50 |
41 |
|
return mLabel; |
51 |
42 |
|
} |
52 |
43 |
|
|
53 |
|
- |
public String getTooltip() |
54 |
|
- |
{ |
|
44 |
+ |
public String getTooltip() { |
55 |
45 |
|
return mTooltip; |
56 |
46 |
|
} |
57 |
47 |
|
|
58 |
|
- |
public Integer getNth() |
59 |
|
- |
{ |
|
48 |
+ |
public Integer getNth() { |
60 |
49 |
|
return mNth; |
61 |
50 |
|
} |
62 |
51 |
|
|
63 |
|
- |
public String getInputText() |
64 |
|
- |
{ |
|
52 |
+ |
public String getInputText() { |
65 |
53 |
|
return mInputText; |
66 |
54 |
|
} |
67 |
55 |
|
|
68 |
56 |
|
abstract public String form(); |
69 |
57 |
|
|
70 |
|
- |
public final boolean execute( Object pClickHandlerSharedObject ) |
71 |
|
- |
{ |
|
58 |
+ |
@Override |
|
59 |
+ |
public final boolean execute() { |
72 |
60 |
|
AbstractFormElement zFormElement = WidgetFinder.findRequired( this, createWidgetSelector() ); |
73 |
|
- |
if ( zFormElement != null ) |
74 |
|
- |
{ |
|
61 |
+ |
if ( zFormElement != null ) { |
75 |
62 |
|
zFormElement.simulateUserTextEntry( ConstrainTo.notNull( getInputText() ) ); |
76 |
63 |
|
} |
77 |
64 |
|
return true; |