Package org.eclnt.ccaddons.pbc
Class CCAttachments
java.lang.Object
org.eclnt.jsfserver.pagebean.PageBean
org.eclnt.jsfserver.pagebean.component.PageBeanComponentBase
org.eclnt.jsfserver.pagebean.component.PageBeanComponent
org.eclnt.ccaddons.pbc.CCAttachments
- 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 CCAttachments
extends org.eclnt.jsfserver.pagebean.component.PageBeanComponent
implements Serializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassstatic interfaceclassclassNested 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 TypeMethodDescriptionvoidaddAttachment(String fileName, byte[] content) voidclose()Deregisters the instance from listening to upload servlet processing.org.eclnt.jsfserver.elements.util.Triggerbooleanorg.eclnt.jsfserver.elements.impl.FIXGRIDListBinding<CCAttachments.GridItem>getGrid()voidinitializePageBean(Map<String, String> initData) voidonUploadAction(org.eclnt.jsfserver.base.faces.event.ActionEvent event) voidprepare(String dirName, CCAttachments.IListener listener) voidsetEnabled(boolean value) Methods inherited from class org.eclnt.jsfserver.pagebean.component.PageBeanComponent
getLit, 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
-
CCAttachments
public CCAttachments()
-
-
Method Details
-
getRootExpressionUsedInPage
- Specified by:
getRootExpressionUsedInPagein interfaceorg.eclnt.jsfserver.pagebean.IPageBean- Specified by:
getRootExpressionUsedInPagein classorg.eclnt.jsfserver.pagebean.PageBean
-
prepare
- Parameters:
dirName- Name of server side directory in which the files are stored. All the files of this directory are shown to the user.
-
initializePageBean
- Specified by:
initializePageBeanin interfaceorg.eclnt.jsfserver.pagebean.component.IPageBeanComponent- Overrides:
initializePageBeanin classorg.eclnt.jsfserver.pagebean.component.PageBeanComponent
-
getEnabled
public boolean getEnabled() -
setEnabled
public void setEnabled(boolean value) -
getGrid
-
getDownloadTrigger
public org.eclnt.jsfserver.elements.util.Trigger getDownloadTrigger() -
getUploadURL
-
getDownloadURL
-
getDownloadFileName
-
getAttachments
-
addAttachment
-
onUploadAction
public void onUploadAction(org.eclnt.jsfserver.base.faces.event.ActionEvent event) -
close
public void close()Deregisters the instance from listening to upload servlet processing. The one creating a CCAttachments-instance is also the one to call the close-method when the instance is no longer needed.
-