Class PreviewButtonControl

  • All Implemented Interfaces:
    VariableResolver, IControl

    public class PreviewButtonControl
    extends ButtonControl
    Responsible for opening the preview interface for the selected content if the service has some preview supported interface. Example use: <control:lum_previewButton id="buttonPreview"/> xml data available for xsl rendering: <control id="previewButton" text="STR_PREVIEW" type="lum_previewButton"> <onClick type="popupRunTimeInterface"> <interfaceId>lumis.service.content.preview.previewContent</interfaceId> <pageId>LumisBlankPage</pageId> <validators> <validator controlId="adminList.tabulardata" type="selectedOne"/> </validators> <addParameters> <parameter name="itemId"> <value controlId="adminList.tabulardata" type="firstSelected"/> </parameter> <parameter name="callerServiceInstanceId"> <value>8A488A0F14A741560114A74CDE8501E0</value> </parameter> <parameter name="callerSourceId"> <value>default</value> </parameter> </addParameters> </onClick> <image>lumis/portal/client/images/PreviewContent.gif</image> <rowAction listControlId="adminList.tabulardata"/> <data> <name>Visualizar</name> <onclick><!-- javascript for onClick event --></onclick> </data> </control>
    Since:
    4.1.0
    Version:
    $Revision: 20359 $ $Date: 2017-07-07 18:57:20 -0300 (Fri, 07 Jul 2017) $