Class CockpitTestIdUIListener

  • All Implemented Interfaces:
    org.zkoss.zk.ui.sys.PropertiesRenderer

    public class CockpitTestIdUIListener
    extends java.lang.Object
    implements org.zkoss.zk.ui.sys.PropertiesRenderer
    Life cycle listener to manage test IDs used to test the UI (ytestid attribute). The IDs should be set as custom attributes in zul files using ca namespace (xmlns:ca="client/attribute"). If no ytestid is provided or it's value is blank than by default component's id attribute's value is set as ytestid's value. Example:

    <widget xmlns="http://www.zkoss.org/2005/zul" xmlns:ca="client/attribute">
     <div ca:ytestid="someValue">
      <!-- content -->
     </div>
    </widget>
    See Also:
    PropertiesRenderer
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void renderProperties​(org.zkoss.zk.ui.Component component, org.zkoss.zk.ui.sys.ContentRenderer renderer)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CockpitTestIdUIListener

        public CockpitTestIdUIListener()
    • Method Detail

      • renderProperties

        public void renderProperties​(org.zkoss.zk.ui.Component component,
                                     org.zkoss.zk.ui.sys.ContentRenderer renderer)
                              throws java.io.IOException
        Specified by:
        renderProperties in interface org.zkoss.zk.ui.sys.PropertiesRenderer
        Throws:
        java.io.IOException