Package org.eclnt.ccaddons.pbc
Class CCGenericFileSelector
java.lang.Object
org.eclnt.jsfserver.pagebean.PageBean
org.eclnt.jsfserver.pagebean.component.PageBeanComponentBase
org.eclnt.jsfserver.pagebean.component.PageBeanComponent
org.eclnt.ccaddons.pbc.CCGenericFileSelector
- All Implemented Interfaces:
Serializable,org.eclnt.jsfserver.elements.IConfiguredByLayout,org.eclnt.jsfserver.pagebean.component.IPageBeanComponent,org.eclnt.jsfserver.pagebean.IPageBean,org.eclnt.jsfserver.util.valuemgmt.IDynamicContentBindingObject
public class CCGenericFileSelector
extends org.eclnt.jsfserver.pagebean.component.PageBeanComponent
implements Serializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclassstatic interfaceListener for file processing.static classclassNested classes/interfaces inherited from class org.eclnt.jsfserver.pagebean.component.PageBeanComponent
org.eclnt.jsfserver.pagebean.component.PageBeanComponent.ILiteralResolver, org.eclnt.jsfserver.pagebean.component.PageBeanComponent.LitMap -
Field Summary
Fields inherited from class org.eclnt.jsfserver.pagebean.PageBean
m_pageModifier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToBasket(IGenericFileInfo file) voidorg.eclnt.jsfserver.elements.impl.FIXGRIDListBinding<CCGenericFileSelector.BasketItem>booleanbooleanorg.eclnt.jsfserver.elements.impl.FIXGRIDListBinding<CCGenericFileSelector.FileGridItem>intIf defined with > 0 then: maximum number of files to be uploaded.longIf defined with > 0 then: maximum size that each single file that is selected for upload may have.longIf defined with > 0 then: maximum size of all files.booleanbooleanOnly one file can be selected for upload.org.eclnt.jsfserver.defaultscreens.StatusbargetTitle()org.eclnt.jsfserver.elements.impl.FIXGRIDTreeBinding<CCGenericFileSelector.TreeNode>getTree()booleanIf set to true then only the directory and the file list will be shown - there is no possibility to download.voidonClearBasketAction(org.eclnt.jsfserver.base.faces.event.ActionEvent event) voidonRenderBeginAction(org.eclnt.jsfserver.base.faces.event.ActionEvent event) voidonUploadAction(org.eclnt.jsfserver.base.faces.event.ActionEvent event) openAsPopup(String title, org.eclnt.jsfserver.pagebean.IPageBean caller, IGenericFileManager gfm, CCGenericFileSelector.IListener listener) voidprepare(IGenericFileManager gfm, CCGenericFileSelector.IListener listener) voidvoidsetMaxNumberOfFiles(int maxNumberOfFiles) voidsetMaxSingleSize(long maxSingleSize) voidsetMaxTotalSize(long maxTotalSize) voidsetSingleFileOnly(boolean singleFileOnly) voidsetViewModeOnly(boolean value) Methods inherited from class org.eclnt.jsfserver.pagebean.component.PageBeanComponent
getLit, initializePageBean, initializePageBeanConfigItemsMethods inherited from class org.eclnt.jsfserver.pagebean.component.PageBeanComponentBase
addConfiguredByLayoutListener, findLiteralResourceName, getClassDefiningPageBean, getLayoutPath, getLiteralResolver, getPageName, initializePageBeanFinished, initializePageBeanPassComponent, initializePageBeanStarted, isInitialized, readLiteral, readLiteralByOwnResourceBundle, removeConfiguredByLayoutListener, setLiteralResolverMethods inherited from class org.eclnt.jsfserver.pagebean.PageBean
buildContentReplaceString, closePopup, getActualRootExpression, getModalModelessPopupForPopupPageBean, getPageModifier, getPopups, getStamp, initializePageModifier, onBeforeRendering, openModalPopup, openModelessPopup, pbx, readPageLayoutXML, setActualRootExpressionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclnt.jsfserver.elements.IConfiguredByLayout
addConfiguredByLayoutListener, removeConfiguredByLayoutListenerMethods inherited from interface org.eclnt.jsfserver.pagebean.IPageBean
closePopup, getActualRootExpression, getPageModifier, getPageName, getStamp, onBeforeRendering, openModalPopup, openModelessPopup, setActualRootExpressionMethods inherited from interface org.eclnt.jsfserver.pagebean.component.IPageBeanComponent
initializePageBeanFinished, initializePageBeanPassComponent, initializePageBeanStarted, isInitialized
-
Constructor Details
-
CCGenericFileSelector
public CCGenericFileSelector()
-
-
Method Details
-
getRootExpressionUsedInPage
- Specified by:
getRootExpressionUsedInPagein interfaceorg.eclnt.jsfserver.pagebean.IPageBean- Specified by:
getRootExpressionUsedInPagein classorg.eclnt.jsfserver.pagebean.PageBean
-
openAsPopup
public static CCGenericFileSelector.OpenPopupResult openAsPopup(String title, org.eclnt.jsfserver.pagebean.IPageBean caller, IGenericFileManager gfm, CCGenericFileSelector.IListener listener) -
prepare
-
getTree
public org.eclnt.jsfserver.elements.impl.FIXGRIDTreeBinding<CCGenericFileSelector.TreeNode> getTree() -
getFileGrid
public org.eclnt.jsfserver.elements.impl.FIXGRIDListBinding<CCGenericFileSelector.FileGridItem> getFileGrid() -
getBasket
public org.eclnt.jsfserver.elements.impl.FIXGRIDListBinding<CCGenericFileSelector.BasketItem> getBasket() -
getStatusbar
public org.eclnt.jsfserver.defaultscreens.Statusbar getStatusbar() -
getRenderedStatusbar
public boolean getRenderedStatusbar() -
getSingleFileOnly
public boolean getSingleFileOnly()Only one file can be selected for upload. Default: multiple files. -
setSingleFileOnly
public void setSingleFileOnly(boolean singleFileOnly) -
getMaxTotalSize
public long getMaxTotalSize()If defined with > 0 then: maximum size of all files. -
setMaxTotalSize
public void setMaxTotalSize(long maxTotalSize) -
getMaxSingleSize
public long getMaxSingleSize()If defined with > 0 then: maximum size that each single file that is selected for upload may have. -
setMaxSingleSize
public void setMaxSingleSize(long maxSingleSize) -
getMaxNumberOfFiles
public int getMaxNumberOfFiles()If defined with > 0 then: maximum number of files to be uploaded. -
setMaxNumberOfFiles
public void setMaxNumberOfFiles(int maxNumberOfFiles) -
getTitle
-
getEnabledClearBasket
public boolean getEnabledClearBasket() -
getViewModeOnly
public boolean getViewModeOnly()If set to true then only the directory and the file list will be shown - there is no possibility to download. -
setViewModeOnly
public void setViewModeOnly(boolean value) -
onClearBasketAction
public void onClearBasketAction(org.eclnt.jsfserver.base.faces.event.ActionEvent event) -
onUploadAction
public void onUploadAction(org.eclnt.jsfserver.base.faces.event.ActionEvent event) -
onRenderBeginAction
public void onRenderBeginAction(org.eclnt.jsfserver.base.faces.event.ActionEvent event) -
getEnabledUpload
public boolean getEnabledUpload() -
removeFromBasket
-
clearBasket
public void clearBasket() -
addToBasket
-