| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
package org.apache.tapestry5.corelib.internal; |
| 16 | |
|
| 17 | |
import org.apache.tapestry5.ComponentAction; |
| 18 | |
import org.apache.tapestry5.Field; |
| 19 | |
import org.apache.tapestry5.services.FormSupport; |
| 20 | |
|
| 21 | |
|
| 22 | |
|
| 23 | |
|
| 24 | |
|
| 25 | |
public class FormSupportAdapter implements FormSupport |
| 26 | |
{ |
| 27 | |
private final FormSupport delegate; |
| 28 | |
|
| 29 | |
public FormSupportAdapter(FormSupport delegate) |
| 30 | 18 | { |
| 31 | 18 | this.delegate = delegate; |
| 32 | 18 | } |
| 33 | |
|
| 34 | |
public String allocateControlName(String id) |
| 35 | |
{ |
| 36 | 18 | return delegate.allocateControlName(id); |
| 37 | |
} |
| 38 | |
|
| 39 | |
public <T> void store(T component, ComponentAction<T> action) |
| 40 | |
{ |
| 41 | 0 | delegate.store(component, action); |
| 42 | 0 | } |
| 43 | |
|
| 44 | |
public <T> void storeAndExecute(T component, ComponentAction<T> action) |
| 45 | |
{ |
| 46 | 0 | delegate.storeAndExecute(component, action); |
| 47 | 0 | } |
| 48 | |
|
| 49 | |
public void defer(Runnable command) |
| 50 | |
{ |
| 51 | 0 | delegate.defer(command); |
| 52 | 0 | } |
| 53 | |
|
| 54 | |
public void setEncodingType(String encodingType) |
| 55 | |
{ |
| 56 | 0 | delegate.setEncodingType(encodingType); |
| 57 | 0 | } |
| 58 | |
|
| 59 | |
public void addValidation(Field field, String validationName, String message, Object constraint) |
| 60 | |
{ |
| 61 | 18 | delegate.addValidation(field, validationName, message, constraint); |
| 62 | 18 | } |
| 63 | |
|
| 64 | |
public String getClientId() |
| 65 | |
{ |
| 66 | 0 | return delegate.getClientId(); |
| 67 | |
} |
| 68 | |
|
| 69 | |
public boolean isClientValidationEnabled() |
| 70 | |
{ |
| 71 | 20 | return delegate.isClientValidationEnabled(); |
| 72 | |
} |
| 73 | |
|
| 74 | |
public String getFormComponentId() |
| 75 | |
{ |
| 76 | 0 | return delegate.getFormComponentId(); |
| 77 | |
} |
| 78 | |
|
| 79 | |
public String getFormValidationId() |
| 80 | |
{ |
| 81 | 8 | return delegate.getFormValidationId(); |
| 82 | |
} |
| 83 | |
} |