|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 WidgetgetId in class AbstractWidgetpublic Object getValue()
Widget
getValue in interface WidgetgetValue in class AbstractWidgetpublic void setValue(Object object)
Widget
setValue in interface WidgetsetValue in class AbstractWidgetpublic void readFromRequest(FormContext formContext)
Widget
readFromRequest in interface Widgetpublic boolean validate(FormContext formContext)
WidgetWidget.generateSaxFragment(ContentHandler, Locale) method.
validate in interface Widgetvalidate in class AbstractWidgetpublic ValidationError getValidationError()
validate(FormContext) method returned false.
getValidationError in interface ValidationErrorAwarepublic void setValidationError(ValidationError error)
setValidationError in interface ValidationErrorAwareerror - the validation error
public void generateSaxFragment(ContentHandler contentHandler,
Locale locale)
throws SAXException
Widget
generateSaxFragment in interface WidgetSAXException
public void generateLabel(ContentHandler contentHandler)
throws SAXException
Widget
generateLabel in interface WidgetgenerateLabel in class AbstractWidgetSAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||