|
@@ -1,60 +1,60 @@ |
1 |
|
- |
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
|
- |
package org.litesoft.GWT.forms.client.nonpublic; |
3 |
|
- |
|
4 |
|
- |
import org.litesoft.GWT.forms.client.components.*; |
5 |
|
- |
|
6 |
|
- |
public abstract class AbstractNonShowingFormComponent implements IFormComponent { |
7 |
|
- |
protected Object mCurrentValue = null; |
8 |
|
- |
|
9 |
|
- |
public Object getCurrentValue() { |
10 |
|
- |
return mCurrentValue; |
11 |
|
- |
} |
12 |
|
- |
|
13 |
|
- |
public void setCurrentValue( Object pCurrentValue ) { |
14 |
|
- |
mCurrentValue = pCurrentValue; |
15 |
|
- |
} |
16 |
|
- |
|
17 |
|
- |
public boolean setFocus() { |
18 |
|
- |
return false; |
19 |
|
- |
} |
20 |
|
- |
|
21 |
|
- |
public void setError( String pError ) { |
22 |
|
- |
// No Errors |
23 |
|
- |
} |
24 |
|
- |
|
25 |
|
- |
public void setFocused( boolean pFocused ) { |
26 |
|
- |
// No Focus |
27 |
|
- |
} |
28 |
|
- |
|
29 |
|
- |
public void setValueChanged( boolean pChanged ) { |
30 |
|
- |
// No ValueChanged |
31 |
|
- |
} |
32 |
|
- |
|
33 |
|
- |
public boolean isEnabled() { |
34 |
|
- |
return false; |
35 |
|
- |
} |
36 |
|
- |
|
37 |
|
- |
public void setEnabled( boolean pEnabled ) { |
38 |
|
- |
// Not Enableable |
39 |
|
- |
} |
40 |
|
- |
|
41 |
|
- |
public void publishAnyPendingChanges() { |
42 |
|
- |
// No Listeners |
43 |
|
- |
} |
44 |
|
- |
|
45 |
|
- |
public IFormComponent addFormComponentListener( Listener pFormComponentListener ) { |
46 |
|
- |
if ( pFormComponentListener != null ) { |
47 |
|
- |
pFormComponentListener.add( this ); |
48 |
|
- |
} |
49 |
|
- |
// Nothing to listen for... |
50 |
|
- |
return this; |
51 |
|
- |
} |
52 |
|
- |
|
53 |
|
- |
public IFormComponent removeFormComponentListener( Listener pFormComponentListener ) { |
54 |
|
- |
if ( pFormComponentListener != null ) { |
55 |
|
- |
pFormComponentListener.remove( this ); |
56 |
|
- |
} |
57 |
|
- |
// Nothing to listen for... |
58 |
|
- |
return this; |
59 |
|
- |
} |
60 |
|
- |
} |
|
1 |
+ |
// This Source Code is in the Public Domain per: http://unlicense.org |
|
2 |
+ |
package org.litesoft.GWT.forms.client.nonpublic; |
|
3 |
+ |
|
|
4 |
+ |
import org.litesoft.GWT.forms.client.components.*; |
|
5 |
+ |
|
|
6 |
+ |
public abstract class AbstractNonShowingFormComponent implements IFormComponent { |
|
7 |
+ |
protected Object mCurrentValue = null; |
|
8 |
+ |
|
|
9 |
+ |
public Object getCurrentValue() { |
|
10 |
+ |
return mCurrentValue; |
|
11 |
+ |
} |
|
12 |
+ |
|
|
13 |
+ |
public void setCurrentValue( Object pCurrentValue ) { |
|
14 |
+ |
mCurrentValue = pCurrentValue; |
|
15 |
+ |
} |
|
16 |
+ |
|
|
17 |
+ |
public boolean setFocus() { |
|
18 |
+ |
return false; |
|
19 |
+ |
} |
|
20 |
+ |
|
|
21 |
+ |
public void setError( String pError ) { |
|
22 |
+ |
// No Errors |
|
23 |
+ |
} |
|
24 |
+ |
|
|
25 |
+ |
public void setFocused( boolean pFocused ) { |
|
26 |
+ |
// No Focus |
|
27 |
+ |
} |
|
28 |
+ |
|
|
29 |
+ |
public void setValueChanged( boolean pChanged ) { |
|
30 |
+ |
// No ValueChanged |
|
31 |
+ |
} |
|
32 |
+ |
|
|
33 |
+ |
public boolean isEnabled() { |
|
34 |
+ |
return false; |
|
35 |
+ |
} |
|
36 |
+ |
|
|
37 |
+ |
public void setEnabled( boolean pEnabled ) { |
|
38 |
+ |
// Not Enableable |
|
39 |
+ |
} |
|
40 |
+ |
|
|
41 |
+ |
public void publishAnyPendingChanges() { |
|
42 |
+ |
// No Listeners |
|
43 |
+ |
} |
|
44 |
+ |
|
|
45 |
+ |
public IFormComponent addFormComponentListener( Listener pFormComponentListener ) { |
|
46 |
+ |
if ( pFormComponentListener != null ) { |
|
47 |
+ |
pFormComponentListener.add( this ); |
|
48 |
+ |
} |
|
49 |
+ |
// Nothing to listen for... |
|
50 |
+ |
return this; |
|
51 |
+ |
} |
|
52 |
+ |
|
|
53 |
+ |
public IFormComponent removeFormComponentListener( Listener pFormComponentListener ) { |
|
54 |
+ |
if ( pFormComponentListener != null ) { |
|
55 |
+ |
pFormComponentListener.remove( this ); |
|
56 |
+ |
} |
|
57 |
+ |
// Nothing to listen for... |
|
58 |
+ |
return this; |
|
59 |
+ |
} |
|
60 |
+ |
} |