Class Upload

Component for client file uploading.

Synopsis

Since

3.0

Inheritance Path.  java.lang.Object-> com.itmill.toolkit.ui.AbstractComponent -> com.itmill.toolkit.ui.Upload

Upload(String, Upload.Receiver)

Creates a new instance of Upload that redirects the uploaded data to given stream.

addListener(Upload.FailedListener)

Parameters

listener

Listener to be added.

Add upload interrupted event listener

addListener(Upload.FinishedListener)

Parameters

listener

Listener to be added.

Add upload received event listener

addListener(Upload.SucceededListener)

Parameters

listener

Listener to be added.

Add upload success event listener

changeVariables(Object, Map)

Invoked when the value of a variable has changed.

focus()

See Also
focus()
Description copied from interface: focus

Set focus to this component.

getFocusableId()

Parameters

return

Unique id of focusable.

Description copied from interface: getFocusableId

Get unique ID of focusable. This will be used to move input focus directly to this component.

getReceiver()

Parameters

return

Receiver

Returns the current receiver.

getTabIndex()

Parameters

return

Positive tab order of this focusable. Negative of zero means unspecified tab order.

See Also
getTabIndex()
Description copied from interface: getTabIndex

Get Tabulator index of this Focusable component.

getTag()

Parameters

return

Component type as string.

Get component type.

paintContent(PaintTarget)

Parameters

target

Target to paint the content on.

Exceptions

PaintException

The paint operation failed.

Paint the content of this component.

removeListener(Upload.FailedListener)

Parameters

listener

Listener to be removed.

Remove upload interrupted event listener

removeListener(Upload.FinishedListener)

Parameters

listener

Listener to be removed.

Remove upload received event listener

removeListener(Upload.SucceededListener)

Parameters

listener

Listener to be removed.

Remove upload success event listener

setReceiver(Upload.Receiver)

Parameters

receiver

The receiver to set

Sets the receiver.

setTabIndex(int)

Parameters

tabIndex

Positive tab order of this focusable. Negative of zero means unspecified tab order.

Description copied from interface: setTabIndex

Set Tabulator index of this Focusable component.