public class HTMLBlobUploader extends Object implements JSFBlobUploader
<input>
field.Modifier and Type | Field and Description |
---|---|
protected static String |
UPLOAD_FACET_NAME |
Constructor and Description |
---|
HTMLBlobUploader(String id) |
Modifier and Type | Method and Description |
---|---|
void |
encodeBeginUpload(javax.faces.component.UIInput parent,
javax.faces.context.FacesContext context,
String onClick)
Generates the HTML for an upload choice.
|
String |
getChoice()
Gets the choice key associated to this uploader.
|
void |
hookSubComponent(javax.faces.component.UIInput parent)
Constructs the needed subcomponent.
|
boolean |
isEnabled()
Checks if the uploader is enabled.
|
void |
validateUpload(javax.faces.component.UIInput parent,
javax.faces.context.FacesContext context,
InputFileInfo submitted)
Transforms input into a blob.
|
protected static final String UPLOAD_FACET_NAME
public HTMLBlobUploader(String id)
public String getChoice()
JSFBlobUploader
getChoice
in interface JSFBlobUploader
public void hookSubComponent(javax.faces.component.UIInput parent)
JSFBlobUploader
hookSubComponent
in interface JSFBlobUploader
public void encodeBeginUpload(javax.faces.component.UIInput parent, javax.faces.context.FacesContext context, String onClick) throws IOException
JSFBlobUploader
encodeBeginUpload
in interface JSFBlobUploader
IOException
public void validateUpload(javax.faces.component.UIInput parent, javax.faces.context.FacesContext context, InputFileInfo submitted)
JSFBlobUploader
validateUpload
in interface JSFBlobUploader
submitted
- the value into which the input is storedpublic boolean isEnabled()
JSFBlobUploader
isEnabled
in interface JSFBlobUploader
Copyright © 2016 Nuxeo SA. All rights reserved.