public class CmsReportWidget extends com.vaadin.ui.AbstractComponent implements I_CmsReportServerRpc
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listenercom.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener| Constructor and Description |
|---|
CmsReportWidget()
Creates a new instance.
|
CmsReportWidget(A_CmsReportThread thread)
Creates a new instance.
|
CmsReportWidget(CmsWorkplaceReport report)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addReportFinishedHandler(java.lang.Runnable handler)
Adds an action that should be executed if the report is finished.
|
protected CmsReportWidgetState |
getState() |
void |
requestReportUpdate()
Requests a report update from the server.
|
protected void |
runReportFinishedHandlers()
Runs the 'report finished' handlers.
|
void |
setReportThread(A_CmsReportThread thread)
Sets the report thread.
|
addContextClickListener, addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getState, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isReadOnly, isRequiredIndicatorVisible, isResponsive, isVisible, readDesign, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeight, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidth, setWidthUndefined, writeDesignaddAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstateclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddStyleNames, getUI, removeStyleNames, setStyleNameaddAttachListener, addDetachListener, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerpublic CmsReportWidget()
Use in declarative layouts, remember to call .
This does not start the report thread.
public CmsReportWidget(A_CmsReportThread thread)
This does not start the report thread.
thread - the report threadpublic CmsReportWidget(CmsWorkplaceReport report)
Use this constructor in case no report thread is available.
report - the report to displaypublic com.google.gwt.event.shared.HandlerRegistration addReportFinishedHandler(java.lang.Runnable handler)
Note that this action will only be called if the report is finished while the report widget is actually displayed. For example, if the user closes the browser window before the report is finished, this will not be executed.
handler - the handlerpublic void requestReportUpdate()
I_CmsReportServerRpcrequestReportUpdate in interface I_CmsReportServerRpcI_CmsReportServerRpc.requestReportUpdate()public void setReportThread(A_CmsReportThread thread)
thread - the report threadprotected CmsReportWidgetState getState()
getState in class com.vaadin.ui.AbstractComponentAbstractComponent.getState()protected void runReportFinishedHandlers()