📄 comboboxtag.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 + -