public class SpreadsheetTag extends javax.servlet.jsp.tagext.SimpleTagSupport implements javax.servlet.jsp.tagext.DynamicAttributes, Serializable
Constructor and Description |
---|
SpreadsheetTag() |
Modifier and Type | Method and 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,
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 void |
evaluateDynaAttributes(org.zkoss.zk.ui.Component target,
Map attrs)
Evaluate all attributes.
|
Object |
getBookProvider() |
protected String |
getComponentName()
The name of the component from the ZK Component Definition
|
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(Object bookProvider)
Sets the book provider, it could either a instance or a class name of
BookProvider |
void |
setDynamicAttribute(String uri,
String localName,
Object value)
Stores attribute name-value pairs for later processing
|
void |
setUse(String use)
Sets the class name that is used to implement the component
associated with this tag.
|
public void doTag() throws javax.servlet.jsp.JspException, IOException
doTag
in interface javax.servlet.jsp.tagext.SimpleTag
doTag
in class javax.servlet.jsp.tagext.SimpleTagSupport
javax.servlet.jsp.JspException
IOException
protected void initComponent(org.zkoss.zk.ui.Page page) throws Exception
page
- Exception
protected String getComponentName()
protected void doAfterComposeComponent() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
protected void evaluateDynaAttributes(org.zkoss.zk.ui.Component target, Map attrs) throws NoSuchMethodException
target
- the target componentattrs
- NoSuchMethodException
public static void evaluateDynaAttribute(org.zkoss.zk.ui.Component target, String attnm, Object value) throws NoSuchMethodException
target
- attnm
- value
- NoSuchMethodException
public void setDynamicAttribute(String uri, String localName, Object value) throws javax.servlet.jsp.JspException
setDynamicAttribute
in interface javax.servlet.jsp.tagext.DynamicAttributes
javax.servlet.jsp.JspException
public String getUse()
Default: null
public void setUse(String use)
use
- the class name used to implement the component, or null
to use the defaultpublic Object getBookProvider()
public void setBookProvider(Object bookProvider)
BookProvider
bookProvider
- Copyright © 2020. All rights reserved.