com.citytechinc.cq.component.touchuidialog.widget.fileupload.FileUploadWidgetParameters Maven / Gradle / Ivy
package com.citytechinc.cq.component.touchuidialog.widget.fileupload;
import com.citytechinc.cq.component.touchuidialog.widget.DefaultTouchUIWidgetParameters;
import java.util.List;
public class FileUploadWidgetParameters extends DefaultTouchUIWidgetParameters {
private String title;
private String text;
private String icon;
private boolean multiple;
private boolean allowUpload;
private String uploadUrl;
private String uploadUrlBuilder;
private Long sizeLimit;
private boolean autoStart;
private boolean useHTML5;
private String dropZone;
// TODO: Event handling
private List mimeTypes;
@Override
public String getTitle() {
return title;
}
@Override
public void setTitle(String title) {
this.title = title;
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
public String getIcon() {
return icon;
}
public void setIcon(String icon) {
this.icon = icon;
}
public boolean isMultiple() {
return multiple;
}
public void setMultiple(boolean multiple) {
this.multiple = multiple;
}
public boolean isAllowUpload() {
return allowUpload;
}
public void setAllowUpload(boolean allowUpload) {
this.allowUpload = allowUpload;
}
public String getUploadUrl() {
return uploadUrl;
}
public void setUploadUrl(String uploadUrl) {
this.uploadUrl = uploadUrl;
}
public String getUploadUrlBuilder() {
return uploadUrlBuilder;
}
public void setUploadUrlBuilder(String uploadUrlBuilder) {
this.uploadUrlBuilder = uploadUrlBuilder;
}
public Long getSizeLimit() {
return sizeLimit;
}
public void setSizeLimit(Long sizeLimit) {
this.sizeLimit = sizeLimit;
}
public boolean isAutoStart() {
return autoStart;
}
public void setAutoStart(boolean autoStart) {
this.autoStart = autoStart;
}
public boolean isUseHTML5() {
return useHTML5;
}
public void setUseHTML5(boolean useHTML5) {
this.useHTML5 = useHTML5;
}
public String getDropZone() {
return dropZone;
}
public void setDropZone(String dropZone) {
this.dropZone = dropZone;
}
public List getMimeTypes() {
return mimeTypes;
}
public void setMimeTypes(List mimeTypes) {
this.mimeTypes = mimeTypes;
}
@Override
public String getResourceType() {
return FileUploadWidget.RESOURCE_TYPE;
}
@Override
public void setResourceType(String resourceType) {
throw new UnsupportedOperationException("resourceType is Static for FileUploadWidget");
}
}