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 TypeClassDescriptionclass
class
static interface
Listener for file processing.static class
class
Nested 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 TypeMethodDescriptionvoid
addToBasket
(IGenericFileInfo file) void
org.eclnt.jsfserver.elements.impl.FIXGRIDListBinding<CCGenericFileSelector.BasketItem>
boolean
boolean
org.eclnt.jsfserver.elements.impl.FIXGRIDListBinding<CCGenericFileSelector.FileGridItem>
int
If defined with > 0 then: maximum number of files to be uploaded.long
If defined with > 0 then: maximum size that each single file that is selected for upload may have.long
If defined with > 0 then: maximum size of all files.boolean
boolean
Only one file can be selected for upload.org.eclnt.jsfserver.defaultscreens.Statusbar
getTitle()
org.eclnt.jsfserver.elements.impl.FIXGRIDTreeBinding<CCGenericFileSelector.TreeNode>
getTree()
boolean
If set to true then only the directory and the file list will be shown - there is no possibility to download.void
onClearBasketAction
(org.eclnt.jsfserver.base.faces.event.ActionEvent event) void
onRenderBeginAction
(org.eclnt.jsfserver.base.faces.event.ActionEvent event) void
onUploadAction
(org.eclnt.jsfserver.base.faces.event.ActionEvent event) openAsPopup
(String title, org.eclnt.jsfserver.pagebean.IPageBean caller, IGenericFileManager gfm, CCGenericFileSelector.IListener listener) void
prepare
(IGenericFileManager gfm, CCGenericFileSelector.IListener listener) void
void
setMaxNumberOfFiles
(int maxNumberOfFiles) void
setMaxSingleSize
(long maxSingleSize) void
setMaxTotalSize
(long maxTotalSize) void
setSingleFileOnly
(boolean singleFileOnly) void
setViewModeOnly
(boolean value) Methods inherited from class org.eclnt.jsfserver.pagebean.component.PageBeanComponent
getLit, initializePageBean, initializePageBeanConfigItems
Methods inherited from class org.eclnt.jsfserver.pagebean.component.PageBeanComponentBase
addConfiguredByLayoutListener, findLiteralResourceName, getClassDefiningPageBean, getLayoutPath, getLiteralResolver, getPageName, initializePageBeanFinished, initializePageBeanPassComponent, initializePageBeanStarted, isInitialized, readLiteral, readLiteralByOwnResourceBundle, removeConfiguredByLayoutListener, setLiteralResolver
Methods inherited from class org.eclnt.jsfserver.pagebean.PageBean
buildContentReplaceString, closePopup, getActualRootExpression, getModalModelessPopupForPopupPageBean, getPageModifier, getPopups, getStamp, initializePageModifier, onBeforeRendering, openModalPopup, openModelessPopup, pbx, readPageLayoutXML, setActualRootExpression
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclnt.jsfserver.elements.IConfiguredByLayout
addConfiguredByLayoutListener, removeConfiguredByLayoutListener
Methods inherited from interface org.eclnt.jsfserver.pagebean.IPageBean
closePopup, getActualRootExpression, getPageModifier, getPageName, getStamp, onBeforeRendering, openModalPopup, openModelessPopup, setActualRootExpression
Methods inherited from interface org.eclnt.jsfserver.pagebean.component.IPageBeanComponent
initializePageBeanFinished, initializePageBeanPassComponent, initializePageBeanStarted, isInitialized
-
Constructor Details
-
CCGenericFileSelector
public CCGenericFileSelector()
-
-
Method Details
-
getRootExpressionUsedInPage
- Specified by:
getRootExpressionUsedInPage
in interfaceorg.eclnt.jsfserver.pagebean.IPageBean
- Specified by:
getRootExpressionUsedInPage
in 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
-