Package org.exoplatform.webui.form.input
Class UIUploadInput
- All Implemented Interfaces:
UIFormInput<String>
- Author:
- Nguyen Thanh Hai This is instead of UIFormUploadInput.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
UIContainer.SelectTabActionListener -
Field Summary
Fields inherited from class org.exoplatform.webui.form.UIFormInputBase
bindingField, defaultValue_, DISABLE, disabled, ENABLE, enable_, name, readonly_, typeValue_, validators, value_Fields inherited from class org.exoplatform.webui.core.UIComponent
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent, USE_WEBUI_RESOURCES -
Constructor Summary
ConstructorsConstructorDescriptionUIUploadInput(String name, String bindingExpression) UIUploadInput(String name, String bindingExpression, int limitFile) UIUploadInput(String name, String bindingExpression, int limitFile, int limitSize) UIUploadInput(String name, String bindingExpression, int limitFile, int limitSize, org.exoplatform.upload.UploadService.UploadUnit unit) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddecode(Object input, WebuiRequestContext context) getUploadDataAsStream(String uploadId) String[]org.exoplatform.upload.UploadResourcegetUploadResource(String uploadId) org.exoplatform.upload.UploadResource[]booleanvoidremoveUploadId(String uploadId) Methods inherited from class org.exoplatform.webui.form.UIFormInputBase
addValidator, getBindingField, getDefaultValue, getHTMLAttribute, getLabel, getName, getTypeValue, getValidators, getValue, isDisabled, isEditable, isEnable, isMandatory, isReadOnly, isValid, processDecode, renderHTMLAttributes, reset, setBindingField, setDefaultValue, setDisabled, setEditable, setEnable, setHTMLAttribute, setLabel, setName, setReadOnly, setValueMethods inherited from class org.exoplatform.webui.core.UIContainer
addChild, addChild, findComponentById, findComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChild, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypesMethods inherited from class org.exoplatform.webui.core.UIComponent
broadcast, buildModelObject, createEvent, createUIComponent, createUIComponent, createUIComponent, doAsync, event, event, event, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getParent, getTemplate, getTemplateResourceResolver, getUIComponentName, isRendered, loadConfirmMesssage, processAction, processRender, renderEventURL, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibling, url, url, url
-
Constructor Details
-
UIUploadInput
-
UIUploadInput
- Parameters:
limitFile- the amount of field(s) input upload. If limitFile less than one , the dynamic mode will enable
-
UIUploadInput
- Parameters:
limitFile- the amount of field(s) input upload. If limitFile less than one , the dynamic mode will enablelimitSize- the limitation file size (MB) for each upload
-
UIUploadInput
public UIUploadInput(String name, String bindingExpression, int limitFile, int limitSize, org.exoplatform.upload.UploadService.UploadUnit unit) - Parameters:
limitFile- the amount of field(s) input upload. If limitFile less than one , the dynamic mode will enablelimitSize- the limitation file size for each uploadunit- the unit value of file size (UploadUnit.KB, UploadUnit.MB, UploadUnit.GB)
-
-
Method Details
-
getUploadIds
-
isDynamicMode
public boolean isDynamicMode() -
addNewUploadId
public void addNewUploadId() -
removeUploadId
-
getUploadResources
public org.exoplatform.upload.UploadResource[] getUploadResources() -
getUploadResource
-
getUploadDataAsStreams
- Throws:
FileNotFoundException
-
getUploadDataAsStream
- Throws:
FileNotFoundException
-
decode
- Specified by:
decodein classUIFormInputBase<String>
-