|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.woody.formmodel.AbstractWidget org.apache.cocoon.woody.formmodel.Upload
public class Upload
A file-uploading Widget. This widget gives access via Woody, to Cocoon's file upload functionality.
Field Summary |
---|
Fields inherited from class org.apache.cocoon.woody.formmodel.AbstractWidget |
---|
definition |
Constructor Summary | |
---|---|
Upload(UploadDefinition uploadDefinition)
|
Method Summary | |
---|---|
void |
generateLabel(ContentHandler contentHandler)
Generates SAX events for the label of this widget. |
void |
generateSaxFragment(ContentHandler contentHandler,
Locale locale)
Generates an XML representation of this widget. |
String |
getId()
Gets the id of this widget. |
UploadDefinition |
getUploadDefinition()
|
ValidationError |
getValidationError()
Returns the validation error, if any. |
Object |
getValue()
Returns the value of the widget. |
void |
readFromRequest(FormContext formContext)
Lets this widget read its data from a request. |
void |
setValidationError(ValidationError error)
Set a validation error on this field. |
void |
setValue(Object object)
Sets the value of this widget to the given object. |
boolean |
validate(FormContext formContext)
Validates this widget and returns the outcome. |
Methods inherited from class org.apache.cocoon.woody.formmodel.AbstractWidget |
---|
addValidator, broadcastEvent, generateItemSaxFragment, generateSaxFragment, getForm, getFullyQualifiedId, getLocation, getNamespace, getParent, getWidget, isRequired, removeValidator, setDefinition, setLocation, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Upload(UploadDefinition uploadDefinition)
Method Detail |
---|
public UploadDefinition getUploadDefinition()
public String getId()
AbstractWidget
getId
in interface Widget
getId
in class AbstractWidget
public Object getValue()
Widget
getValue
in interface Widget
getValue
in class AbstractWidget
public void setValue(Object object)
Widget
setValue
in interface Widget
setValue
in class AbstractWidget
public void readFromRequest(FormContext formContext)
Widget
readFromRequest
in interface Widget
public boolean validate(FormContext formContext)
Widget
Widget.generateSaxFragment(ContentHandler, Locale)
method.
validate
in interface Widget
validate
in class AbstractWidget
public ValidationError getValidationError()
validate(FormContext)
method returned false.
getValidationError
in interface ValidationErrorAware
public void setValidationError(ValidationError error)
setValidationError
in interface ValidationErrorAware
error
- the validation errorpublic void generateSaxFragment(ContentHandler contentHandler, Locale locale) throws SAXException
Widget
generateSaxFragment
in interface Widget
SAXException
public void generateLabel(ContentHandler contentHandler) throws SAXException
Widget
generateLabel
in interface Widget
generateLabel
in class AbstractWidget
SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |