Package io.keikai.jsp.ui
Class SpreadsheetTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.SimpleTagSupport
-
- io.keikai.jsp.ui.SpreadsheetTag
-
- All Implemented Interfaces:
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, 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 voiddoAfterComposeComponent()Invokes composer for further processing after composing componentvoiddoTag()Reders Keikai Spreadsheet JSP tagstatic voidevaluateDynaAttribute(org.zkoss.zk.ui.Component target, String attnm, Object value)Test if the attribute are annotation or component attribute.
If(is Component attribute)Invokes setter method to update all assigned attribute.protected voidevaluateDynaAttributes(org.zkoss.zk.ui.Component target, Map attrs)Evaluate all attributes.ObjectgetBookProvider()protected StringgetComponentName()The name of the component from the ZK Component DefinitionStringgetUse()Returns the class name that is used to implement the component associated with this tag.protected voidinitComponent(org.zkoss.zk.ui.Page page)Inits Spreadsheet componentvoidsetBookProvider(Object bookProvider)Sets the book provider, it could either a instance or a class name ofBookProvidervoidsetDynamicAttribute(String uri, String localName, Object value)Stores attribute name-value pairs for later processingvoidsetUse(String use)Sets the class name that is used to implement the component associated with this tag.
-
-
-
Method Detail
-
doTag
public void doTag() throws javax.servlet.jsp.JspException, IOExceptionReders Keikai Spreadsheet JSP tag- Specified by:
doTagin interfacejavax.servlet.jsp.tagext.SimpleTag- Overrides:
doTagin classjavax.servlet.jsp.tagext.SimpleTagSupport- Throws:
javax.servlet.jsp.JspExceptionIOException
-
initComponent
protected void initComponent(org.zkoss.zk.ui.Page page) throws ExceptionInits Spreadsheet component- Parameters:
page-- Throws:
Exception
-
getComponentName
protected 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.JspExceptionInvokes composer for further processing after composing component- Throws:
javax.servlet.jsp.JspException
-
evaluateDynaAttributes
protected void evaluateDynaAttributes(org.zkoss.zk.ui.Component target, Map attrs) throws NoSuchMethodExceptionEvaluate all attributes.- Parameters:
target- the target componentattrs-- Throws:
NoSuchMethodException
-
evaluateDynaAttribute
public static void evaluateDynaAttribute(org.zkoss.zk.ui.Component target, String attnm, Object value) throws NoSuchMethodExceptionTest 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:
NoSuchMethodException
-
setDynamicAttribute
public void setDynamicAttribute(String uri, String localName, Object value) throws javax.servlet.jsp.JspException
Stores attribute name-value pairs for later processing- Specified by:
setDynamicAttributein interfacejavax.servlet.jsp.tagext.DynamicAttributes- Throws:
javax.servlet.jsp.JspException
-
getUse
public 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(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 Object getBookProvider()
-
setBookProvider
public void setBookProvider(Object bookProvider)
Sets the book provider, it could either a instance or a class name ofBookProvider- Parameters:
bookProvider-
-
-