📄 select.java
字号:
*
* @param value the value of the disabled property.
*/
public void setDisabled(String value)
{
setValue(DISABLED_PROP, value);
}
/**
* Constant that specifies the value of the name of the id property.
*/
public static final String ID_PROP = "id";
/**
* Get the value of the id property.
*
* @return the value of the id property.
*/
public String getId()
{
return (String)getValue(ID_PROP);
}
/**
* Set the value of the id property.
*
* @param value the value of the id property.
*/
public void setId(String value)
{
super.setId(value);
setValue(ID_PROP, value);
}
/**
* Constant that specifies the value of the name of the lang property.
*/
public static final String LANG_PROP = "lang";
/**
* Get the value of the lang property.
*
* @return the value of the lang property.
*/
public String getLang()
{
return (String)getValue(LANG_PROP);
}
/**
* Set the value of the lang property.
*
* @param value the value of the lang property.
*/
public void setLang(String value)
{
setValue(LANG_PROP, value);
}
/**
* Constant that specifies the value of the name of the option key name property.
*/
public static final String OPTION_KEY_NAME_PROP = TagUtil.HIDE_ATTR_CHAR + "option_key_name";
/**
* Get the value of the option key name property - this will be used as the key name
* when a RetrieveValueByNameIteratorInf provides the data.
*
* @return the value of the option key name property.
*/
public String getOptionKeyName()
{
return (String)getValue(OPTION_KEY_NAME_PROP);
}
/**
* Set the value of the option key name property - this will be used as the key name
* when a RetrieveValueByNameIteratorInf provides the data.
*
* @return the value of the option key name property.
*/
public void setOptionKeyName(String value)
{
setValue(OPTION_KEY_NAME_PROP, value);
}
/**
* Constant that specifies the value of the name of the option value name property.
*/
public static final String OPTION_VALUE_NAME_PROP = TagUtil.HIDE_ATTR_CHAR + "option_value_name";
/**
* Get the value of the option value name property - this will be used as the value name
* when a RetrieveValueByNameIteratorInf provides the data.
*
* @return the value of the option value name property.
*/
public String getOptionValueName()
{
return (String)getValue(OPTION_VALUE_NAME_PROP);
}
/**
* Set the value of the option value name property - this will be used as the value name
* when a RetrieveValueByNameIteratorInf provides the data.
*
* @return the value of the option value name property.
*/
public void setOptionValueName(String value)
{
setValue(OPTION_VALUE_NAME_PROP, value);
}
/**
* Constant that specifies the value of the name of the multiple property.
*/
public static final String MULTIPLE_PROP = "multiple";
/**
* Get the value of the multiple property.
*
* @return the value of the multiple property.
*/
public String getMultiple()
{
return (String)getValue(MULTIPLE_PROP);
}
/**
* Set the value of the multiple property.
*
* @param value the value of the multiple property.
*/
public void setMultiple(String value)
{
setValue(MULTIPLE_PROP, value);
}
/**
* Constant that specifies the value of the name of the onblur property.
*/
public static final String ONBLUR_PROP = "onblur";
/**
* Get the value of the onblur property.
*
* @return the value of the onblur property.
*/
public String getOnblur()
{
return (String)getValue(ONBLUR_PROP);
}
/**
* Set the value of the onblur property.
*
* @param value the value of the onblur property.
*/
public void setOnblur(String value)
{
setValue(ONBLUR_PROP, value);
}
/**
* Constant that specifies the value of the name of the onchange property.
*/
public static final String ONCHANGE_PROP = "onchange";
/**
* Get the value of the onchange property.
*
* @return the value of the onchange property.
*/
public String getOnchange()
{
return (String)getValue(ONCHANGE_PROP);
}
/**
* Set the value of the onchange property.
*
* @param value the value of the onchange property.
*/
public void setOnchange(String value)
{
setValue(ONCHANGE_PROP, value);
}
/**
* Constant that specifies the value of the name of the onfocus property.
*/
public static final String ONFOCUS_PROP = "onfocus";
/**
* Get the value of the onfocus property.
*
* @return the value of the onfocus property.
*/
public String getOnfocus()
{
return (String)getValue(ONFOCUS_PROP);
}
/**
* Set the value of the onfocus property.
*
* @param value the value of the onfocus property.
*/
public void setOnfocus(String value)
{
setValue(ONFOCUS_PROP, value);
}
/**
* Constant that specifies the value of the name of the size property.
*/
public static final String SIZE_PROP = "size";
/**
* Get the value of the size property.
*
* @return the value of the size property.
*/
public String getSize()
{
return (String)getValue(SIZE_PROP);
}
/**
* Set the value of the size property.
*
* @param value the value of the size property.
*/
public void setSize(String value)
{
setValue(SIZE_PROP, value);
}
/**
* Constant that specifies the value of the name of the style property.
*/
public static final String STYLE_PROP = "style";
/**
* Get the value of the style property.
*
* @return the value of the style property.
*/
public String getStyle()
{
return (String)getValue(STYLE_PROP);
}
/**
* Set the value of the style property.
*
* @param value the value of the style property.
*/
public void setStyle(String value)
{
setValue(STYLE_PROP, value);
}
/**
* Constant that specifies the value of the name of the tabindex property.
*/
public static final String TABINDEX_PROP = "tabindex";
/**
* Get the value of the tabindex property.
*
* @return the value of the tabindex property.
*/
public String getTabindex()
{
return (String)getValue(TABINDEX_PROP);
}
/**
* Set the value of the tabindex property.
*
* @param value the value of the tabindex property.
*/
public void setTabindex(String value)
{
setValue(TABINDEX_PROP, value);
}
/**
* Constant that specifies the value of the name of the title property.
*/
public static final String TITLE_PROP = "title";
/**
* Get the value of the title property.
*
* @return the value of the title property.
*/
public String getTitle()
{
return (String)getValue(TITLE_PROP);
}
/**
* Set the value of the title property.
*
* @param value the value of the title property.
*/
public void setTitle(String value)
{
setValue(TITLE_PROP, value);
}
/**
* Constant that specifies the value of the name of the type property.
*/
public static final String TYPE_PROP = TagUtil.HIDE_ATTR_CHAR + "type";
/**
* Get the value of the type property - specifies the type of list to generate.
*
* @return the value of the type property.
*/
public String getType()
{
return (String)getValue(TYPE_PROP);
}
/**
* Set the value of the type property - specifies the type of list to generate.
*
* @param value the value of the type property.
*/
public void setType(String value)
{
setValue(TYPE_PROP, value);
}
/**
* A string constant that is used to retrieve and set the value of the value property.
*/
public static final String VALUE_CONST = TagUtil.HIDE_ATTR_CHAR + "value";
/**
* Get the value of the object - specifies the default value currently selected in the list.
*/
public String[] getValue()
{
Object val = getValue(VALUE_CONST);
if (val instanceof String[])
{
return (String[])val;
}
String[] temp = new String[1];
temp[0] = (String)val;
return temp;
}
/**
* Set the value of the object - specifies the default value currently selected in the list.
*/
public void setValue(String[] value)
{
this.setValue(VALUE_CONST, value);
}
//
// Constants for forming the options lists.
//
/**
* Start of option.
*/
public static final String START_OPTION = "<option value=\"";
/**
* Middle of option.
*/
public static final String MIDDLE_OPTION = "\">";
/**
* Middle of option with selection set.
*/
public static final String MIDDLE_WITH_SELECTION_OPTION = "\" selected=\"\">";
/**
* End of option.
*/
public static final String END_OPTION = "</option>\r\n";
/**
* This constant will be used to calculate the size of the option buffer needed.
*/
public static final int EST_OPTION_SIZE = START_OPTION.length() + MIDDLE_WITH_SELECTION_OPTION.length() + END_OPTION.length();
/**
* Default key name.
*/
public static final String DEFAULT_KEY_NAME = "key";
/**
* Default value name.
*/
public static final String DEFAULT_VALUE_NAME = "value";
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -