Implements interfaces:
A Java upload widget for our framework.
This widget allows easy bulk uploading from the desktop to the web server.
To use, simply add a WFPostletUpload to your web page using
. Note that WFPostletUpload is a WFForm subclass itself, so be sure that your WFPostletUpload instance is not nested inside of another form.All you need to do to receive the uploaded files is create a single function to handle the uploaded file. When someone uploads file(s) through the bulk uploader, your module's hasUploadCallback will be called, once for each file uploaded. From this function you can do as you please with each uploaded file.
This widget uses the Postlet open-source Java applet. The code is GPL licensed and is distributed with PHOCOA for convenience. Full source is available from the above link. The version included with PHOCOA includes a patch to the release version of Postlet, explained here: http://sourceforge.net/forum/message.php?msg_id=4841853 The current bundled version is 0.14-alan (which is a customized version to support our needs -- we will upgraded to the latest version once our patches are accepted). The current bundled is self-signed by me (Alan Pinstein).
Located in /framework/widgets/WFPostletUpload.php (line 28)
WFObject | --WFView | --WFWidget | --WFForm | --WFPostletUpload
Inherited from WFForm
WFForm::$action
WFForm::$defaultSubmitID
WFForm::$isAjax
WFForm::$method
WFForm::$phocoaFormParameters
Inherited from WFWidget
WFWidget::$bindings
WFWidget::$class
WFWidget::$errors
WFWidget::$formatter
WFWidget::$hasRestoredState
WFWidget::$hidden
WFWidget::$name
WFWidget::$value
WFWidget::$widgetLabel
Inherited from WFView
WFView::$children
WFView::$cssImports
WFView::$enabled
WFView::$id
WFView::$importInHead
WFView::$jsActions
WFView::$jsEvents
WFView::$jsImports
WFView::$originalOnEvent
WFView::$page
WFView::$parent
Constructor.
Turn the widget into a fire-n-forget drop zone for file uploading.
Enabling this mode hides all buttons, enables the drop images, turns on autoupload, and requires an endpage to be set.
Set the callback function to be used to process the uploaded file.
Inherited From WFForm
WFForm::__construct()
WFForm::addChild()
WFForm::allConfigFinishedLoading()
WFForm::calculateCSRFParams()
WFForm::canPushValueBinding()
WFForm::defaultSubmitID()
WFForm::exposedProperties()
WFForm::isAjax()
WFForm::phocoaFormParameters()
WFForm::render()
WFForm::setAction()
WFForm::setIsAjax()
WFForm::setMethod()
Inherited From WFWidget
WFWidget::__construct()
WFWidget::addError()
WFWidget::addErrors()
WFWidget::bind()
WFWidget::bindingByName()
WFWidget::bindings()
WFWidget::canPushValueBinding()
WFWidget::errors()
WFWidget::exposedBindings()
WFWidget::exposedProperties()
WFWidget::formattedValue()
WFWidget::formatter()
WFWidget::hasRestoredState()
WFWidget::hidden()
WFWidget::name()
WFWidget::processBindingOptions()
WFWidget::propagateValueToBinding()
WFWidget::pullBindings()
WFWidget::pushBindings()
WFWidget::restoreState()
WFWidget::setFormatter()
WFWidget::setHidden()
WFWidget::setName()
WFWidget::setupExposedBindings()
WFWidget::setValue()
WFWidget::setWidgetLabel()
WFWidget::unbind()
WFWidget::value()
WFWidget::valueForBinding()
WFWidget::widgetLabel()
Inherited From WFView
WFView::__construct()
WFView::addChild()
WFView::allConfigFinishedLoading()
WFView::children()
WFView::cloneWithID()
WFView::enabled()
WFView::exposedProperties()
WFView::getForm()
WFView::getJSActions()
WFView::getListenerJS()
WFView::getListenerJSInScriptTag()
WFView::getOnEvent()
WFView::getWidgetDir()
WFView::getWidgetWWWDir()
WFView::id()
WFView::importCSS()
WFView::importJS()
WFView::jsEndHTML()
WFView::jsStartHTML()
WFView::page()
WFView::parent()
WFView::removeChild()
WFView::render()
WFView::setEnabled()
WFView::setId()
WFView::setJSonBlur()
WFView::setJSonClick()
WFView::setListener()
WFView::setOnEvent()
WFView::setParent()
WFView::yuiPath()
Inherited From WFObject
WFObject::__construct()
WFObject::exposedProperties()
WFObject::getClass()
WFObject::keyPathToTargetAndKey()
WFObject::setValueForKey()
WFObject::setValueForKeyPath()
WFObject::setValuesForKeys()
WFObject::validatedSetValueForKey()
WFObject::validatedSetValueForKeyPath()
WFObject::validateObject()
WFObject::validateValueForKey()
WFObject::validateValueForKeyPath()
WFObject::valueForKey()
WFObject::valueForKeyPath()
WFObject::valueForStaticKey()
WFObject::valueForStaticKeyPath()
WFObject::valueForTargetAndKeyPath()
WFObject::valueForUndefinedKey()
WFObject::valueForUndefinedStaticKey()
WFObject::valuesForKeyPaths()
WFObject::valuesForKeys()
WFObject::_valueForStaticKey()
WFObject::__toString()
Inherited from WFForm
WFForm::CALCULATED_DEFAULT_SUBMIT_ID_CANNOT_DETERMINE
WFForm::CALCULATED_DEFAULT_SUBMIT_ID_NONE
WFForm::METHOD_GET
WFForm::METHOD_POST
Documentation generated on Thu, 14 May 2009 16:20:20 -0400 by phpDocumentor 1.4.2