Class VisualizationComponent
java.lang.Object
com.ptc.core.components.rendering.AbstractGuiComponent
com.ptc.core.components.rendering.guicomponents.VisualizationComponent
- All Implemented Interfaces:
GuiComponent,com.ptc.core.components.rendering.Renderer,com.ptc.netmarkets.util.misc.NmFormatable,Serializable
public class VisualizationComponent
extends AbstractGuiComponent
implements com.ptc.core.components.rendering.Renderer
The VisualizationComponent is shown on the info page (maybe other places in the future).
Any string of HTML can be set on the component, and the HTML can include javascript. It could be a WVS component, or
it could just be an image.
A GuiComponent and Renderer for the Visualization Component that doesn't escape the HTML. This element is returned by
the VizualizationDataUtility instead of just a String. If the HTML was returned as a String, the default renderer
converts it into an NmString which gets escaped if there is any script in the HTML. The VisualizationComponent is
both the GuiComponent and the Renderer.
Note that it is expected that the component returned should be the correct size and aspect ratio as specified in
two properties set in wvs.properties.xconf: thumbnail.generator.width and thumbnail.generator.height
Supported API: true
Extendable: false
Supported API: true
Extendable: false
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionVisualizationComponent(String html) Create VisualizationComponent with html to be rendered in visualization
Supported API: true -
Method Summary
Methods inherited from class com.ptc.core.components.rendering.AbstractGuiComponent
setColumnName, setEnabled, setId, setLabel, setMultiValued, setName
-
Constructor Details
-
VisualizationComponent
Create VisualizationComponent with html to be rendered in visualization
Supported API: true- Parameters:
html-
-