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

📄 comboboxtag.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:   ComboBoxTag.java

package org.apache.struts2.views.jsp.ui;

import com.opensymphony.xwork2.util.ValueStack;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts2.components.ComboBox;
import org.apache.struts2.components.Component;

// Referenced classes of package org.apache.struts2.views.jsp.ui:
//			TextFieldTag

public class ComboBoxTag extends TextFieldTag
{

	private static final long serialVersionUID = 0x30b3ddd955e3d8c5L;
	protected String list;
	protected String listKey;
	protected String listValue;
	protected String headerKey;
	protected String headerValue;
	protected String emptyOption;

	public ComboBoxTag()
	{
	}

	public void setEmptyOption(String emptyOption)
	{
		this.emptyOption = emptyOption;
	}

	public void setHeaderKey(String headerKey)
	{
		this.headerKey = headerKey;
	}

	public void setHeaderValue(String headerValue)
	{
		this.headerValue = headerValue;
	}

	public void setListKey(String listKey)
	{
		this.listKey = listKey;
	}

	public void setListValue(String listValue)
	{
		this.listValue = listValue;
	}

	public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res)
	{
		return new ComboBox(stack, req, res);
	}

	protected void populateParams()
	{
		super.populateParams();
		((ComboBox)component).setList(list);
		((ComboBox)component).setListKey(listKey);
		((ComboBox)component).setListValue(listValue);
		((ComboBox)component).setHeaderKey(headerKey);
		((ComboBox)component).setHeaderValue(headerValue);
		((ComboBox)component).setEmptyOption(emptyOption);
	}

	public void setList(String list)
	{
		this.list = list;
	}
}

⌨️ 快捷键说明

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