Class SpreadsheetTag

  • All Implemented Interfaces:
    java.io.Serializable, javax.servlet.jsp.tagext.DynamicAttributes, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag

    public class SpreadsheetTag
    extends javax.servlet.jsp.tagext.SimpleTagSupport
    implements javax.servlet.jsp.tagext.DynamicAttributes, java.io.Serializable
    Keikai Spreadsheet Tag implementation.
    Author:
    ashish
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      SpreadsheetTag()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void doAfterComposeComponent()
      Invokes composer for further processing after composing component
      void doTag()
      Reders Keikai Spreadsheet JSP tag
      static void evaluateDynaAttribute​(org.zkoss.zk.ui.Component target, java.lang.String attnm, java.lang.Object value)
      Test if the attribute are annotation or component attribute.
      If(is Component attribute)Invokes setter method to update all assigned attribute.
      protected void evaluateDynaAttributes​(org.zkoss.zk.ui.Component target, java.util.Map attrs)
      Evaluate all attributes.
      java.lang.Object getBookProvider()  
      protected java.lang.String getComponentName()
      The name of the component from the ZK Component Definition
      java.lang.String getUse()
      Returns the class name that is used to implement the component associated with this tag.
      protected void initComponent​(org.zkoss.zk.ui.Page page)
      Inits Spreadsheet component
      void setBookProvider​(java.lang.Object bookProvider)
      Sets the book provider, it could either a instance or a class name of BookProvider
      void setDynamicAttribute​(java.lang.String uri, java.lang.String localName, java.lang.Object value)
      Stores attribute name-value pairs for later processing
      void setUse​(java.lang.String use)
      Sets the class name that is used to implement the component associated with this tag.
      • Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport

        findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
      • Methods inherited from class java.lang.Object

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

      • SpreadsheetTag

        public SpreadsheetTag()
    • Method Detail

      • doTag

        public void doTag()
                   throws javax.servlet.jsp.JspException,
                          java.io.IOException
        Reders Keikai Spreadsheet JSP tag
        Specified by:
        doTag in interface javax.servlet.jsp.tagext.SimpleTag
        Overrides:
        doTag in class javax.servlet.jsp.tagext.SimpleTagSupport
        Throws:
        javax.servlet.jsp.JspException
        java.io.IOException
      • initComponent

        protected void initComponent​(org.zkoss.zk.ui.Page page)
                              throws java.lang.Exception
        Inits Spreadsheet component
        Parameters:
        page -
        Throws:
        java.lang.Exception
      • getComponentName

        protected java.lang.String getComponentName()
        The name of the component from the ZK Component Definition
        Returns:
        name of the component from the ZK Component Definition
      • doAfterComposeComponent

        protected void doAfterComposeComponent()
                                        throws javax.servlet.jsp.JspException
        Invokes composer for further processing after composing component
        Throws:
        javax.servlet.jsp.JspException
      • evaluateDynaAttributes

        protected void evaluateDynaAttributes​(org.zkoss.zk.ui.Component target,
                                              java.util.Map attrs)
                                       throws java.lang.NoSuchMethodException
        Evaluate all attributes.
        Parameters:
        target - the target component
        attrs -
        Throws:
        java.lang.NoSuchMethodException
      • evaluateDynaAttribute

        public static void evaluateDynaAttribute​(org.zkoss.zk.ui.Component target,
                                                 java.lang.String attnm,
                                                 java.lang.Object value)
                                          throws java.lang.NoSuchMethodException
        Test if the attribute are annotation or component attribute.
        If(is Component attribute)Invokes setter method to update all assigned attribute.
        Parameters:
        target -
        attnm -
        value -
        Throws:
        java.lang.NoSuchMethodException
      • setDynamicAttribute

        public void setDynamicAttribute​(java.lang.String uri,
                                        java.lang.String localName,
                                        java.lang.Object value)
                                 throws javax.servlet.jsp.JspException
        Stores attribute name-value pairs for later processing
        Specified by:
        setDynamicAttribute in interface javax.servlet.jsp.tagext.DynamicAttributes
        Throws:
        javax.servlet.jsp.JspException
      • getUse

        public java.lang.String getUse()
        Returns the class name that is used to implement the component associated with this tag.

        Default: null

        Returns:
        the class name used to implement the component, or null to use the default
      • setUse

        public void setUse​(java.lang.String use)
        Sets the class name that is used to implement the component associated with this tag.
        Parameters:
        use - the class name used to implement the component, or null to use the default
      • getBookProvider

        public java.lang.Object getBookProvider()
      • setBookProvider

        public void setBookProvider​(java.lang.Object bookProvider)
        Sets the book provider, it could either a instance or a class name of BookProvider
        Parameters:
        bookProvider -