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

📄 template.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:   Template.java

package org.apache.struts2.components.template;

import java.util.*;

// Referenced classes of package org.apache.struts2.components.template:
//			TemplateEngine

public class Template
	implements Cloneable
{

	String dir;
	String theme;
	String name;

	public Template(String dir, String theme, String name)
	{
		this.dir = dir;
		this.theme = theme;
		this.name = name;
	}

	public String getDir()
	{
		return dir;
	}

	public String getTheme()
	{
		return theme;
	}

	public String getName()
	{
		return name;
	}

	public List getPossibleTemplates(TemplateEngine engine)
	{
		List list = new ArrayList(3);
		Template template = this;
		list.add(template);
		String parentTheme;
		while ((parentTheme = (String)engine.getThemeProps(template).get("parent")) != null) 
			try
			{
				template = (Template)template.clone();
				template.theme = parentTheme;
				list.add(template);
			}
			catch (CloneNotSupportedException e) { }
		return list;
	}

	public String toString()
	{
		return (new StringBuilder()).append("/").append(dir).append("/").append(theme).append("/").append(name).toString();
	}

	protected Object clone()
		throws CloneNotSupportedException
	{
		return super.clone();
	}
}

⌨️ 快捷键说明

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