litesoft
Diff Revisions
949
vs
950
for /trunk/Java/GWT/OldClient/src/org/litesoft/GWT/forms/client/nonpublic/FormActionAdapter.java
|
@@ -1,24 +1,24 @@ |
1 |
|
- |
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
|
- |
package org.litesoft.GWT.forms.client.nonpublic; |
3 |
|
- |
|
4 |
|
- |
public interface FormActionAdapter extends FormComponentAdapter { |
5 |
|
- |
public static final FormActionAdapter[] EMPTY_ARRAY = new FormActionAdapter[0]; |
6 |
|
- |
|
7 |
|
- |
String getActionID(); |
8 |
|
- |
|
9 |
|
- |
Boolean getInputChangeStateEnablement(); |
10 |
|
- |
|
11 |
|
- |
Boolean getInputErrorStateEnablement(); |
12 |
|
- |
|
13 |
|
- |
public class Helper { |
14 |
|
- |
public static FormActionAdapter[] append( FormActionAdapter[] pOrig, FormActionAdapter pNew ) { |
15 |
|
- |
FormActionAdapter[] newArray = new FormActionAdapter[pOrig.length + 1]; |
16 |
|
- |
int i = 0; |
17 |
|
- |
for (; i < pOrig.length; i++ ) { |
18 |
|
- |
newArray[i] = pOrig[i]; |
19 |
|
- |
} |
20 |
|
- |
newArray[i] = pNew; |
21 |
|
- |
return newArray; |
22 |
|
- |
} |
23 |
|
- |
} |
24 |
|
- |
} |
|
1 |
+ |
// This Source Code is in the Public Domain per: http://unlicense.org |
|
2 |
+ |
package org.litesoft.GWT.forms.client.nonpublic; |
|
3 |
+ |
|
|
4 |
+ |
public interface FormActionAdapter extends FormComponentAdapter { |
|
5 |
+ |
public static final FormActionAdapter[] EMPTY_ARRAY = new FormActionAdapter[0]; |
|
6 |
+ |
|
|
7 |
+ |
String getActionID(); |
|
8 |
+ |
|
|
9 |
+ |
Boolean getInputChangeStateEnablement(); |
|
10 |
+ |
|
|
11 |
+ |
Boolean getInputErrorStateEnablement(); |
|
12 |
+ |
|
|
13 |
+ |
public class Helper { |
|
14 |
+ |
public static FormActionAdapter[] append( FormActionAdapter[] pOrig, FormActionAdapter pNew ) { |
|
15 |
+ |
FormActionAdapter[] newArray = new FormActionAdapter[pOrig.length + 1]; |
|
16 |
+ |
int i = 0; |
|
17 |
+ |
for (; i < pOrig.length; i++ ) { |
|
18 |
+ |
newArray[i] = pOrig[i]; |
|
19 |
+ |
} |
|
20 |
+ |
newArray[i] = pNew; |
|
21 |
+ |
return newArray; |
|
22 |
+ |
} |
|
23 |
+ |
} |
|
24 |
+ |
} |