Package org.eclnt.ccaddons.pbc
Class CCAsynchronousJobProtocol
java.lang.Object
org.eclnt.jsfserver.pagebean.PageBean
org.eclnt.jsfserver.pagebean.component.PageBeanComponentBase
org.eclnt.jsfserver.pagebean.component.PageBeanComponent
org.eclnt.ccaddons.pbc.CCAsynchronousJobProtocol
- 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 CCAsynchronousJobProtocol
extends org.eclnt.jsfserver.pagebean.component.PageBeanComponent
implements Serializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
static interface
static class
static 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
void
Notifies end of long lasting operation - and closes the popup.void
Notifies end of long lasting operation.boolean
boolean
boolean
If set to true then the protocol popup is closed directly after the long operation has ended.long
If the popup is set to be closed after finishing then you may define a certain delay in addition.org.eclnt.jsfserver.elements.impl.FIXGRIDListBinding<CCAsynchronousJobProtocol.GridItem>
getGrid()
Image that is shown inside the info pane.int
boolean
boolean
Decision if to render the progress bar or not.getTitle()
Title that is shown.org.eclnt.jsfserver.elements.util.Trigger
Width of the title column.boolean
If set to true then some info area is shown on the left of the protocol area.void
onOKAction
(org.eclnt.jsfserver.base.faces.event.ActionEvent event) void
onPollingAction
(org.eclnt.jsfserver.base.faces.event.ActionEvent event) void
onTriggeredCloseAction
(org.eclnt.jsfserver.base.faces.event.ActionEvent event) openAsBlockingPopup
(String title, org.eclnt.jsfserver.pagebean.IPageBean caller) openAsBlockingPopup
(String title, org.eclnt.jsfserver.pagebean.IPageBean caller, CCAsynchronousJobProtocol.IListener listener) void
prepare
(org.eclnt.jsfserver.pagebean.IPageBean caller, CCAsynchronousJobProtocol.IListener listener) static void
processLongOperation
(CCAsynchronousJobProtocol asynchronousJobProtocol, Runnable longOpepration) static void
processLongOperation
(CCAsynchronousJobProtocol asynchronousJobProtocol, Runnable longOpepration, Runnable finishedOperation) void
setFinishedClosePopup
(boolean finishedClosePopup) void
setFinishedClosePopupDelay
(long finishedClosePopupDelay) void
setInfoPaneImage
(String value) void
setInfoPaneWidth
(String value) void
setProgressValue
(int value) void
setRenderProgressbar
(boolean value) void
void
setWidthTitleColumn
(String value) void
setWithInfoPane
(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
-
CCAsynchronousJobProtocol
public CCAsynchronousJobProtocol()
-
-
Method Details
-
getInfoPaneImage
-
setInfoPaneImage
-
getRootExpressionUsedInPage
- Specified by:
getRootExpressionUsedInPage
in interfaceorg.eclnt.jsfserver.pagebean.IPageBean
- Specified by:
getRootExpressionUsedInPage
in classorg.eclnt.jsfserver.pagebean.PageBean
-
openAsBlockingPopup
public static CCAsynchronousJobProtocol.OpenPopupResult openAsBlockingPopup(String title, org.eclnt.jsfserver.pagebean.IPageBean caller) -
openAsBlockingPopup
public static CCAsynchronousJobProtocol.OpenPopupResult openAsBlockingPopup(String title, org.eclnt.jsfserver.pagebean.IPageBean caller, CCAsynchronousJobProtocol.IListener listener) - Parameters:
title
-caller
-listener
- Listener that is called in the UI thread after the processing has finished.- Returns:
-
processLongOperation
public static void processLongOperation(CCAsynchronousJobProtocol asynchronousJobProtocol, Runnable longOpepration) -
processLongOperation
public static void processLongOperation(CCAsynchronousJobProtocol asynchronousJobProtocol, Runnable longOpepration, Runnable finishedOperation) - Parameters:
title
-longOpepration
- Long lasting operation that is output in parallel thread.finishedOperation
- Operation after finishing the long lasting operation. This opeartion is executed in the UI thread!caller
-
-
prepare
public void prepare(org.eclnt.jsfserver.pagebean.IPageBean caller, CCAsynchronousJobProtocol.IListener listener) -
getGrid
public org.eclnt.jsfserver.elements.impl.FIXGRIDListBinding<CCAsynchronousJobProtocol.GridItem> getGrid() -
getRenderProgressbar
public boolean getRenderProgressbar()Decision if to render the progress bar or not. Default: true. -
setRenderProgressbar
public void setRenderProgressbar(boolean value) -
getProgressValue
public int getProgressValue() -
setProgressValue
public void setProgressValue(int value) -
getTitle
Title that is shown. -
setTitle
-
getFinishedClosePopup
public boolean getFinishedClosePopup()If set to true then the protocol popup is closed directly after the long operation has ended. Otherwise the user has to close the popup him/herself. -
setFinishedClosePopup
public void setFinishedClosePopup(boolean finishedClosePopup) -
getFinishedClosePopupDelay
public long getFinishedClosePopupDelay()If the popup is set to be closed after finishing then you may define a certain delay in addition. Result: the popup does not immediately disappear but is shown to the user a certain while. The delay is passed as number of milliseconds. Default is -1 (no delay). -
setFinishedClosePopupDelay
public void setFinishedClosePopupDelay(long finishedClosePopupDelay) -
getWidthTitleColumn
Width of the title column. May be set to 0 if you do not want to show it. -
setWidthTitleColumn
-
getInfoPaneWidth
Image that is shown inside the info pane. RequiressetWithInfoPane(boolean)
to be called with "true". -
setInfoPaneWidth
-
getWithInfoPane
public boolean getWithInfoPane()If set to true then some info area is shown on the left of the protocol area. In the info area you can place an image byu singsetInfoPaneImage(String)
. -
setWithInfoPane
public void setWithInfoPane(boolean value) -
getTriggerClose
public org.eclnt.jsfserver.elements.util.Trigger getTriggerClose() -
onPollingAction
public void onPollingAction(org.eclnt.jsfserver.base.faces.event.ActionEvent event) -
onTriggeredCloseAction
public void onTriggeredCloseAction(org.eclnt.jsfserver.base.faces.event.ActionEvent event) -
getPollingURL
-
addProtocolItemFromAsynchronousProcessing
-
closeFromAsynchronousProcessing
public void closeFromAsynchronousProcessing()Notifies end of long lasting operation - and closes the popup. -
finishFromAsynchronousProcessing
public void finishFromAsynchronousProcessing()Notifies end of long lasting operation. The popup is continued to be shown so that the user can close by pressing ok. -
onOKAction
public void onOKAction(org.eclnt.jsfserver.base.faces.event.ActionEvent event) -
getEnabledExport
public boolean getEnabledExport() -
getEnabledOK
public boolean getEnabledOK()
-