Platform Explorer / Nuxeo Platform LTS 2017 9.10

Component org.nuxeo.ecm.platform.threed.layouts

Services

Extension points

Contributions

XML source

<?xml version="1.0" encoding="UTF-8"?>
<component name="org.nuxeo.ecm.platform.threed.layouts">

  <require>org.nuxeo.ecm.platform.forms.layouts.webapp.summary</require>

  <extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
             point="widgettypes">

    <widgetType name="threed_render_view">
      <configuration>
        <sinceVersion>8.4</sinceVersion>
        <title>3D render view</title>
        <description>
          <p>
            This widget displays the render view of
            a document having the facet
            'ThreeD'.
          </p>
        </description>
        <handlingLabels>true</handlingLabels>
        <categories>
          <category>summary</category>
        </categories>
        <supportedModes>
          <mode>view</mode>
        </supportedModes>
        <!-- no configurable properties -->
      </configuration>

      <handler-class>
        org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
      </handler-class>
      <property name="template">
        /widgets/threed_render_view_widget_template.xhtml
      </property>
    </widgetType>

    <widgetType name="threed_viewer">
      <configuration>
        <sinceVersion>8.4</sinceVersion>
        <title>3D viewer</title>
        <description>
          <p>
            This widget displays the viewer of
            a document having the facet
            'ThreeD'.
          </p>
        </description>
        <handlingLabels>true</handlingLabels>
        <categories>
          <category>summary</category>
        </categories>
        <supportedModes>
          <mode>view</mode>
        </supportedModes>
        <!-- no configurable properties -->
      </configuration>

      <handler-class>
        org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
      </handler-class>
      <property name="template">
        /widgets/threed_3d_viewer_template.xhtml
      </property>
    </widgetType>

    <widgetType name="threed_transmission_format">
      <configuration>
        <sinceVersion>8.4</sinceVersion>
        <title>3D transmission format</title>
        <description>
          <p>
            This widget displays the transmission format versions
            a document having the facet
            'ThreeD'.
          </p>
        </description>
        <handlingLabels>true</handlingLabels>
        <categories>
          <category>summary</category>
        </categories>
        <supportedModes>
          <mode>view</mode>
        </supportedModes>
        <!-- no configurable properties -->
      </configuration>

      <handler-class>
        org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
      </handler-class>
      <property name="template">
        /widgets/threed_transmisson_formats_template.xhtml
      </property>
    </widgetType>

  </extension>

  <extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
             point="widgets">

    <widget name="summary_threed_viewer" type="threed_viewer">
      <labels>
        <label mode="any">heading.threed_viewer</label>
      </labels>
      <translated>true</translated>
      <controls mode="any">
        <control name="handleLabels">true</control>
      </controls>
      <widgetModes>
        <mode value="any">#{not empty currentDocumentAsBlobHolder.blob ? 'view' : 'hidden'}</mode>
      </widgetModes>
    </widget>

    <widget name="summary_threed_render_view" type="threed_render_view">
      <labels>
        <label mode="any">label.widget.threed.heading.renderViews</label>
      </labels>
      <translated>true</translated>
      <controls mode="any">
        <control name="handleLabels">true</control>
      </controls>
      <widgetModes>
        <mode value="any">#{not empty currentDocumentAsBlobHolder.blob ? 'view' : 'hidden'}</mode>
      </widgetModes>
    </widget>

    <widget name="summary_threed_transmission_format" type="threed_transmission_format">
      <labels>
        <label mode="any">label.widget.threed.heading.threed_transmission_formats</label>
      </labels>
      <translated>true</translated>
      <controls mode="any">
        <control name="handleLabels">true</control>
      </controls>
      <widgetModes>
        <mode value="any">#{not empty currentDocumentAsBlobHolder.blob ? 'view' : 'hidden'}</mode>
      </widgetModes>
    </widget>

  </extension>

  <extension target="org.nuxeo.ecm.platform.actions.ActionService"
             point="actions">

    <action id="summary_threed_viewer" type="widget" order="50">
      <category>SUMMARY_PANEL_LEFT</category>
      <properties>
        <property name="widgetName">summary_threed_viewer</property>
      </properties>
      <filter-id>hasThreeDFacet</filter-id>
    </action>

    <action id="summary_threed_transmission_format" type="widget" order="60">
      <category>SUMMARY_PANEL_LEFT</category>
      <properties>
        <property name="widgetName">summary_threed_transmission_format</property>
      </properties>
      <filter-id>hasThreeDFacet</filter-id>
    </action>

    <action id="summary_threed_render_view" type="widget" order="340">
      <category>SUMMARY_PANEL_RIGHT</category>
      <properties>
        <property name="widgetName">summary_threed_render_view</property>
      </properties>
      <filter-id>hasThreeDFacet</filter-id>
    </action>

  </extension>

</component>

Documentation