⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tree.java

📁 struts 2 核心包 的源码 有错误是难免的
💻 JAVA
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   Tree.java

package org.apache.struts2.components;

import com.opensymphony.xwork2.util.ValueStack;
import java.io.Writer;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

// Referenced classes of package org.apache.struts2.components:
//			ClosingUIBean

public class Tree extends ClosingUIBean
{

	private static final String TEMPLATE = "tree-close";
	private static final String OPEN_TEMPLATE = "tree";
	private String toggle;
	private String treeSelectedTopic;
	private String treeExpandedTopic;
	private String treeCollapsedTopic;
	protected String rootNodeAttr;
	protected String childCollectionProperty;
	protected String nodeTitleProperty;
	protected String nodeIdProperty;
	private String showRootGrid;
	private String showGrid;
	private String blankIconSrc;
	private String gridIconSrcL;
	private String gridIconSrcV;
	private String gridIconSrcP;
	private String gridIconSrcC;
	private String gridIconSrcX;
	private String gridIconSrcY;
	private String expandIconSrcPlus;
	private String expandIconSrcMinus;
	private String iconWidth;
	private String iconHeight;
	private String toggleDuration;
	private String templateCssPath;

	public Tree(ValueStack stack, HttpServletRequest request, HttpServletResponse response)
	{
		super(stack, request, response);
		toggle = "fade";
	}

	public boolean start(Writer writer)
	{
		boolean result = super.start(writer);
		if (label == null && (rootNodeAttr == null || childCollectionProperty == null || nodeTitleProperty == null || nodeIdProperty == null))
			fieldError("label", "The TreeTag requires either a value for 'label' or ALL of 'rootNode', 'childCollectionProperty', 'nodeTitleProperty', and 'nodeIdProperty'", null);
		return result;
	}

	protected void evaluateExtraParams()
	{
		super.evaluateExtraParams();
		if (toggle != null)
			addParameter("toggle", findString(toggle));
		if (treeSelectedTopic != null)
			addParameter("treeSelectedTopic", findString(treeSelectedTopic));
		if (treeExpandedTopic != null)
			addParameter("treeExpandedTopic", findString(treeExpandedTopic));
		if (treeCollapsedTopic != null)
			addParameter("treeCollapsedTopic", findString(treeCollapsedTopic));
		if (rootNodeAttr != null)
			addParameter("rootNode", findValue(rootNodeAttr));
		if (childCollectionProperty != null)
			addParameter("childCollectionProperty", findString(childCollectionProperty));
		if (nodeTitleProperty != null)
			addParameter("nodeTitleProperty", findString(nodeTitleProperty));
		if (nodeIdProperty != null)
			addParameter("nodeIdProperty", findString(nodeIdProperty));
		if (showRootGrid != null)
			addParameter("showRootGrid", findValue(showRootGrid, java/lang/Boolean));
		if (showGrid != null)
			addParameter("showGrid", findValue(showGrid, java/lang/Boolean));
		if (blankIconSrc != null)
			addParameter("blankIconSrc", findString(blankIconSrc));
		if (gridIconSrcL != null)
			addParameter("gridIconSrcL", findString(gridIconSrcL));
		if (gridIconSrcV != null)
			addParameter("gridIconSrcV", findString(gridIconSrcV));
		if (gridIconSrcP != null)
			addParameter("gridIconSrcP", findString(gridIconSrcP));
		if (gridIconSrcC != null)
			addParameter("gridIconSrcC", findString(gridIconSrcC));
		if (gridIconSrcX != null)
			addParameter("gridIconSrcX", findString(gridIconSrcX));
		if (gridIconSrcY != null)
			addParameter("gridIconSrcY", findString(gridIconSrcY));
		if (expandIconSrcPlus != null)
			addParameter("expandIconSrcPlus", findString(expandIconSrcPlus));
		if (expandIconSrcMinus != null)
			addParameter("expandIconSrcMinus", findString(expandIconSrcMinus));
		if (iconWidth != null)
			addParameter("iconWidth", findValue(iconWidth, java/lang/Integer));
		if (iconHeight != null)
			addParameter("iconHeight", findValue(iconHeight, java/lang/Integer));
		if (toggleDuration != null)
			addParameter("toggleDuration", findValue(toggleDuration, java/lang/Integer));
		if (templateCssPath != null)
			addParameter("templateCssPath", findString(templateCssPath));
	}

	public String getDefaultOpenTemplate()
	{
		return "tree";
	}

	protected String getDefaultTemplate()
	{
		return "tree-close";
	}

	public String getToggle()
	{
		return toggle;
	}

	public void setToggle(String toggle)
	{
		this.toggle = toggle;
	}

	public String getTreeSelectedTopic()
	{
		return treeSelectedTopic;
	}

	public void setTreeSelectedTopic(String treeSelectedTopic)
	{
		this.treeSelectedTopic = treeSelectedTopic;
	}

	public String getTreeExpandedTopic()
	{
		return treeExpandedTopic;
	}

	public void setTreeExpandedTopic(String treeExpandedTopic)
	{
		this.treeExpandedTopic = treeExpandedTopic;
	}

	public String getTreeCollapsedTopic()
	{
		return treeCollapsedTopic;
	}

	public void setTreeCollapsedTopic(String treeCollapsedTopic)
	{
		this.treeCollapsedTopic = treeCollapsedTopic;
	}

	public String getRootNode()
	{
		return rootNodeAttr;
	}

	public void setRootNode(String rootNode)
	{
		rootNodeAttr = rootNode;
	}

	public String getChildCollectionProperty()
	{
		return childCollectionProperty;
	}

	public void setChildCollectionProperty(String childCollectionProperty)
	{
		this.childCollectionProperty = childCollectionProperty;
	}

	public String getNodeTitleProperty()
	{
		return nodeTitleProperty;
	}

	public void setNodeTitleProperty(String nodeTitleProperty)
	{
		this.nodeTitleProperty = nodeTitleProperty;
	}

	public String getNodeIdProperty()
	{
		return nodeIdProperty;
	}

	public void setNodeIdProperty(String nodeIdProperty)
	{
		this.nodeIdProperty = nodeIdProperty;
	}

	public void setShowRootGrid(String showRootGrid)
	{
		this.showRootGrid = showRootGrid;
	}

	public String getShowRootGrid()
	{
		return showRootGrid;
	}

	public String getBlankIconSrc()
	{
		return blankIconSrc;
	}

	public void setBlankIconSrc(String blankIconSrc)
	{
		this.blankIconSrc = blankIconSrc;
	}

	public String getExpandIconSrcMinus()
	{
		return expandIconSrcMinus;
	}

	public void setExpandIconSrcMinus(String expandIconSrcMinus)
	{
		this.expandIconSrcMinus = expandIconSrcMinus;
	}

	public String getExpandIconSrcPlus()
	{
		return expandIconSrcPlus;
	}

	public void setExpandIconSrcPlus(String expandIconSrcPlus)
	{
		this.expandIconSrcPlus = expandIconSrcPlus;
	}

	public String getGridIconSrcC()
	{
		return gridIconSrcC;
	}

	public void setGridIconSrcC(String gridIconSrcC)
	{
		this.gridIconSrcC = gridIconSrcC;
	}

	public String getGridIconSrcL()
	{
		return gridIconSrcL;
	}

	public void setGridIconSrcL(String gridIconSrcL)
	{
		this.gridIconSrcL = gridIconSrcL;
	}

	public String getGridIconSrcP()
	{
		return gridIconSrcP;
	}

	public void setGridIconSrcP(String gridIconSrcP)
	{
		this.gridIconSrcP = gridIconSrcP;
	}

	public String getGridIconSrcV()
	{
		return gridIconSrcV;
	}

	public void setGridIconSrcV(String gridIconSrcV)
	{
		this.gridIconSrcV = gridIconSrcV;
	}

	public String getGridIconSrcX()
	{
		return gridIconSrcX;
	}

	public void setGridIconSrcX(String gridIconSrcX)
	{
		this.gridIconSrcX = gridIconSrcX;
	}

	public String getGridIconSrcY()
	{
		return gridIconSrcY;
	}

	public void setGridIconSrcY(String gridIconSrcY)
	{
		this.gridIconSrcY = gridIconSrcY;
	}

	public String getIconHeight()
	{
		return iconHeight;
	}

	public void setIconHeight(String iconHeight)
	{
		this.iconHeight = iconHeight;
	}

	public String getIconWidth()
	{
		return iconWidth;
	}

	public void setIconWidth(String iconWidth)
	{
		this.iconWidth = iconWidth;
	}

	public String getTemplateCssPath()
	{
		return templateCssPath;
	}

	public void setTemplateCssPath(String templateCssPath)
	{
		this.templateCssPath = templateCssPath;
	}

	public String getToggleDuration()
	{
		return toggleDuration;
	}

	public void setToggleDuration(String toggleDuration)
	{
		this.toggleDuration = toggleDuration;
	}

	public String getShowGrid()
	{
		return showGrid;
	}

	public void setShowGrid(String showGrid)
	{
		this.showGrid = showGrid;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -