| |
|
| java.lang.Object org.apache.cocoon.forms.formmodel.AbstractWidget org.apache.cocoon.forms.formmodel.Upload
Upload | public class Upload extends AbstractWidget implements ValidationErrorAware,ValueChangedListenerEnabled(Code) | | A file-uploading Widget. This widget gives access via Cocoon Forms, to Cocoon's
file upload functionality.
This widget accepts value-changed listeners, but the event raised does not hold
the previous value, as uploads are heavyweight resources that must be released
as soon as possible.
version: $Id: Upload.java 462520 2006-10-10 19:39:14Z vgritsenko $ |
addValueChangedListener | public void addValueChangedListener(ValueChangedListener listener)(Code) | | Adds a ValueChangedListener to this widget instance. Listeners defined
on the widget instance will be executed in addtion to any listeners
that might have been defined in the widget definition.
|
getValidationError | public ValidationError getValidationError()(Code) | | Returns the validation error, if any. There will always be a validation error in case the
Upload.validate() method returned false.
|
getXMLElementAttributes | public AttributesImpl getXMLElementAttributes()(Code) | | Adds attributes @required, @mime-types
|
getXMLElementName | public String getXMLElementName()(Code) | | "upload" |
hasValueChangedListeners | public boolean hasValueChangedListeners()(Code) | | |
setValidationError | public void setValidationError(ValidationError error)(Code) | | Set a validation error on this field. This allows fields to be externally marked as invalid by
application logic.
Parameters: error - the validation error |
validate | public boolean validate()(Code) | | |
Fields inherited from org.apache.cocoon.forms.formmodel.AbstractWidget | protected boolean wasValid(Code)(Java Doc)
|
|
|
|