Package org.opencms.gwt.client.ui
Class CmsVirusReport
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.opencms.gwt.client.ui.CmsVirusReport
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers
,com.google.gwt.event.shared.HasHandlers
,com.google.gwt.user.client.EventListener
,com.google.gwt.user.client.ui.HasVisibility
,com.google.gwt.user.client.ui.IsRenderable
,com.google.gwt.user.client.ui.IsWidget
Shows which viruses were found in files the user tried to upload.
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static interface
The UiBinder interface for this widget.Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
-
Field Summary
Modifier and TypeFieldDescriptionprotected CmsFieldSet
Contains the resource boxes with the virus information.protected CmsMessageWidget
Displays the warning message to the user.Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
-
Constructor Summary
ConstructorDescriptionCmsVirusReport
(Map<String, List<String>> viruses) Creates a new virus report widget. -
Method Summary
Modifier and TypeMethodDescriptionstatic CmsPopup
Creates a popup containing a virus report.getVirusWarnings
(com.google.gwt.json.client.JSONObject jsonObject) Extracts virus warnings from a JSON object.Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
-
Field Details
-
m_message
Displays the warning message to the user. -
m_fieldset
Contains the resource boxes with the virus information.
-
-
Constructor Details
-
CmsVirusReport
Creates a new virus report widget.- Parameters:
viruses
- a map from file names to lists of virus names found in the corresponding files
-
-
Method Details
-
createPopup
Creates a popup containing a virus report.- Parameters:
viruses
- a map from file names to lists of viruses found in the corresponding filescallback
- the callback to executing after closing the dialog- Returns:
-
getVirusWarnings
public static Map<String,List<String>> getVirusWarnings(com.google.gwt.json.client.JSONObject jsonObject) Extracts virus warnings from a JSON object.- Parameters:
jsonObject
- the JSON object- Returns:
- the map of virus warnings, which maps file names to lists of viruses found in the corresponding file
-