struts2 tree标签源代码
package org.apache.struts2.dojo.views.jsp.ui;
importjavax.servlet.http.HttpServletRequest;
importjavax.servlet.http.HttpServletResponse;
importorg.apache.struts2.components.Component;
importorg.apache.struts2.dojo.components.Tree;
importorg.apache.struts2.views.jsp.ui.AbstractClosingTag;
importcom.opensymphony.xwork2.util.ValueStack;
/**
*@seeTree
*/
publicclassTreeTagextendsAbstractClosingTag{
privatestaticfinallongserialVersionUID=2735218501058548013L;
protectedStringtoggle;
protectedStringselectedNotifyTopics;
protectedStringexpandedNotifyTopics;
protectedStringcollapsedNotifyTopics;
protectedStringrootNode;
protectedStringchildCollectionProperty;
protectedStringnodeTitleProperty;
protectedStringnodeIdProperty;
protectedStringshowRootGrid;
protectedStringshowGrid;
protectedStringblankIconSrc;
protectedStringgridIconSrcL;
protectedStringgridIconSrcV;
protectedStringgridIconSrcP;
protectedStringgridIconSrcC;
protectedStringgridIconSrcX;
protectedStringgridIconSrcY;
protectedStringexpandIconSrcPlus;
protectedStringexpandIconSrcMinus;
protectedStringiconWidth;
protectedStringiconHeight;
protectedStringtoggleDuration;
protectedStringtemplateCssPath;
protectedStringhref;
protectedStringerrorNotifyTopics;
publicComponentgetBean(ValueStackstack,HttpServletRequestreq,HttpServletResponseres){
returnnewTree(stack,req,res);
}
protectedvoidpopulateParams(){
super.populateParams();
Treetree=(Tree)component;
tree.setChildCollectionProperty(childCollectionProperty);
tree.setNodeIdProperty(nodeIdProperty);
tree.setNodeTitleProperty(nodeTitleProperty);
tree.setRootNode(rootNode);
tree.setToggle(toggle);
tree.setSelectedNotifyTopics(selectedNotifyTopics);
tree.setExpandedNotifyTopics(expandedNotifyTopics);
tree.setCollapsedNotifyTopics(collapsedNotifyTopics);
tree.setShowRootGrid(showRootGrid);
tree.setShowGrid(showGrid);
tree.setBlankIconSrc(blankIconSrc);
tree.setGridIconSrcL(gridIconSrcC);
tree.setGridIconSrcV(gridIconSrcV);
tree.setGridIconSrcP(gridIconSrcP);
tree.setGridIconSrcC(gridIconSrcC);
tree.setGridIconSrcX(gridIconSrcX);
tree.setGridIconSrcY(gridIconSrcY);
tree.setExpandIconSrcPlus(expandIconSrcPlus);
tree.setExpandIconSrcMinus(expandIconSrcMinus);
tree.setIconWidth(iconWidth);
tree.setIconHeight(iconHeight);
tree.setToggleDuration(toggleDuration);
tree.setTemplateCssPath(templateCssPath);
tree.setHref(href);
tree.setErrorNotifyTopics(errorNotifyTopics);
}
publicStringgetToggle(){
returntoggle;
}
publicvoidsetToggle(Stringtoggle){
this.toggle=toggle;
}
@Deprecated
publicvoidsetTreeSelectedTopic(StringtreeSelectedTopic){
this.selectedNotifyTopics=treeSelectedTopic;
}
@Deprecated
publicvoidsetTreeExpandedTopic(StringtreeExpandedTopic){
this.expandedNotifyTopics=treeExpandedTopic;
}
@Deprecated
publicvoidsetTreeCollapsedTopic(StringtreeCollapsedTopic){
this.collapsedNotifyTopics=treeCollapsedTopic;
}
publicStringgetRootNode(){
returnrootNode;
}
publicvoidsetRootNode(StringrootNode){
this.rootNode=rootNode;
}
publicStringgetChildCollectionProperty(){
returnchildCollectionProperty;
}
publicvoidsetChildCollectionProperty(StringchildCollectionProperty){
this.childCollectionProperty=childCollectionProperty;
}
publicStringgetNodeTitleProperty(){
returnnodeTitleProperty;
}
publicvoidsetNodeTitleProperty(StringnodeTitleProperty){
this.nodeTitleProperty=nodeTitleProperty;
}
publicStringgetNodeIdProperty(){
returnnodeIdProperty;
}
publicvoidsetNodeIdProperty(StringnodeIdProperty){
this.nodeIdProperty=nodeIdProperty;
}
publicStringgetShowRootGrid(){
returnshowRootGrid;
}
publicvoidsetShowRootGrid(StringshowRootGrid){
this.showRootGrid=showRootGrid;
}
publicStringgetBlankIconSrc(){
returnblankIconSrc;
}
publicvoidsetBlankIconSrc(StringblankIconSrc){
this.blankIconSrc=blankIconSrc;
}
publicStringgetExpandIconSrcMinus(){
returnexpandIconSrcMinus;
}
publicvoidsetExpandIconSrcMinus(StringexpandIconSrcMinus){
this.expandIconSrcMinus=expandIconSrcMinus;
}
publicStringgetExpandIconSrcPlus(){
returnexpandIconSrcPlus;
}
publicvoidsetExpandIconSrcPlus(StringexpandIconSrcPlus){
this.expandIconSrcPlus=expandIconSrcPlus;
}
publicStringgetGridIconSrcC(){
returngridIconSrcC;
}
publicvoidsetGridIconSrcC(StringgridIconSrcC){
this.gridIconSrcC=gridIconSrcC;
}
publicStringgetGridIconSrcL(){
returngridIconSrcL;
}
publicvoidsetGridIconSrcL(StringgridIconSrcL){
this.gridIconSrcL=gridIconSrcL;
}
publicStringgetGridIconSrcP(){
returngridIconSrcP;
}
publicvoidsetGridIconSrcP(StringgridIconSrcP){
this.gridIconSrcP=gridIconSrcP;
}
publicStringgetGridIconSrcV(){
returngridIconSrcV;
}
publicvoidsetGridIconSrcV(StringgridIconSrcV){
this.gridIconSrcV=gridIconSrcV;
}
publicStringgetGridIconSrcX(){
returngridIconSrcX;
}
publicvoidsetGridIconSrcX(StringgridIconSrcX){
this.gridIconSrcX=gridIconSrcX;
}
publicStringgetGridIconSrcY(){
returngridIconSrcY;
}
publicvoidsetGridIconSrcY(StringgridIconSrcY){
this.gridIconSrcY=gridIconSrcY;
}
publicStringgetIconHeight(){
returniconHeight;
}
publicvoidsetIconHeight(StringiconHeight){
this.iconHeight=iconHeight;
}
publicStringgetIconWidth(){
returniconWidth;
}
publicvoidsetIconWidth(StringiconWidth){
this.iconWidth=iconWidth;
}
publicStringgetTemplateCssPath(){
returntemplateCssPath;
}
publicvoidsetTemplateCssPath(StringtemplateCssPath){
this.templateCssPath=templateCssPath;
}
publicStringgetToggleDuration(){
returntoggleDuration;
}
publicvoidsetToggleDuration(StringtoggleDuration){
this.toggleDuration=toggleDuration;
}
publicStringgetShowGrid(){
returnshowGrid;
}
publicvoidsetShowGrid(StringshowGrid){
this.showGrid=showGrid;
}
publicvoidsetCollapsedNotifyTopics(StringcollapsedNotifyTopics){
this.collapsedNotifyTopics=collapsedNotifyTopics;
}
publicvoidsetExpandedNotifyTopics(StringexpandedNotifyTopics){
this.expandedNotifyTopics=expandedNotifyTopics;
}
publicvoidsetSelectedNotifyTopics(StringselectedNotifyTopics){
this.selectedNotifyTopics=selectedNotifyTopics;
}
publicvoidsetHref(Stringhref){
this.href=href;
}
publicvoidsetErrorNotifyTopics(StringerrorNotifyTopics){
this.errorNotifyTopics=errorNotifyTopics;
}
}