gboat2.base.view.components
类 Spinner

java.lang.Object
  继承者 org.apache.struts2.components.Component
      继承者 org.apache.struts2.components.UIBean
          继承者 org.apache.struts2.components.TextField
              继承者 gboat2.base.view.components.TextField
                  继承者 gboat2.base.view.components.Spinner

public class Spinner
extends TextField

创建一个微调组件(spinner),用于处理各种数字输入。它允许用户直接输入一个值,或通过键盘、鼠标、滚轮微调改变一个已有的值。
详见 jQuery UI Spinner

一个最简单的示例:

 <g2:spinner id="spinner1" name="spinner1"/>
 

示例2: max=50 and step=2.

 <g2:spinner id="spinner2" name="spinner2" value="25" min="5" max="50" step="2"/>
 

从以下版本开始:
3.0.0-SNAPSHOT
作者:
何明旺

字段摘要
protected  String culture
           
protected  String icons
           
protected  String incremental
           
static String JQUERYACTION
           
protected  String max
           
protected  String min
           
protected  String mouseWheel
           
protected  String numberFormat
           
protected  String onChangeTopics
           
protected  String onSpinTopics
           
protected  String onStartTopics
           
protected  String onStopTopics
           
protected  String page
           
protected  String step
           
static String TEMPLATE
           
 
从类 gboat2.base.view.components.TextField 继承的字段
colspan, groupColumns, helpText, inputAppend, inputPrepend, labelCssClass, labelCssStyle
 
从类 org.apache.struts2.components.TextField 继承的字段
maxlength, readonly, size, type
 
从类 org.apache.struts2.components.UIBean 继承的字段
accesskey, cssClass, cssErrorClass, cssErrorStyle, cssStyle, defaultTemplateDir, defaultUITheme, disabled, dynamicAttributes, errorPosition, id, javascriptTooltip, key, label, labelPosition, labelSeparator, name, onblur, onchange, onclick, ondblclick, onfocus, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onselect, request, requiredLabel, requiredPosition, response, standardAttributesMap, tabindex, template, templateDir, templateEngineManager, templateSuffix, theme, title, tooltip, tooltipConfig, tooltipCssClass, tooltipDelay, tooltipIconPath, uiThemeExpansionToken, value
 
从类 org.apache.struts2.components.Component 继承的字段
actionMapper, COMPONENT_STACK, parameters, stack, throwExceptionOnELFailure
 
构造方法摘要
Spinner(com.opensymphony.xwork2.util.ValueStack stack, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
方法摘要
 void evaluateExtraParams()
           
protected  String getDefaultTemplate()
           
 void setCulture(String culture)
           
 void setDisabled(String disabled)
           
 void setIcons(String icons)
           
 void setIncremental(String incremental)
           
 void setMax(String max)
           
 void setMin(String min)
           
 void setMouseWheel(String mouseWheel)
           
 void setNumberFormat(String numberFormat)
           
 void setOnChangeTopics(String onChangeTopics)
           
 void setOnSpinTopics(String onSpinTopics)
           
 void setOnStartTopics(String onStartTopics)
           
 void setOnStopTopics(String onStopTopics)
           
 void setPage(String page)
           
 void setStep(String step)
           
 
从类 gboat2.base.view.components.TextField 继承的方法
setColspan, setGroupColumns, setHelpText, setInputAppend, setInputPrepend, setLabelCssClass, setLabelCssStyle
 
从类 org.apache.struts2.components.TextField 继承的方法
setMaxlength, setMaxLength, setReadonly, setSize, setType
 
从类 org.apache.struts2.components.UIBean 继承的方法
addFormParameter, buildTemplateName, copyParams, enableAncestorFormCustomOnsubmit, end, ensureAttributeSafelyNotEscaped, escape, evaluateNameValue, evaluateParams, getId, getStandardAttributes, getTemplate, getTemplateDir, getTheme, getTooltipConfig, getValueClassType, mergeTemplate, populateComponentHtmlId, setAccesskey, setCssClass, setCssErrorClass, setCssErrorStyle, setCssStyle, setDefaultTemplateDir, setDefaultUITheme, setDynamicAttributes, setErrorPosition, setId, setJavascriptTooltip, setKey, setLabel, setLabelposition, setLabelSeparator, setName, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setRequiredLabel, setRequiredPosition, setTabindex, setTemplate, setTemplateDir, setTemplateEngineManager, setTheme, setTitle, setTooltip, setTooltipConfig, setTooltipCssClass, setTooltipDelay, setTooltipIconPath, setUIThemeExpansionToken, setValue
 
从类 org.apache.struts2.components.Component 继承的方法
addAllParameters, addParameter, altSyntax, completeExpressionIfAltSyntax, determineActionURL, determineNamespace, end, fieldError, findAncestor, findString, findString, findStringIfAltSyntax, findValue, findValue, findValue, getComponentStack, getParameters, getStack, popComponentStack, setActionMapper, setThrowExceptionsOnELFailure, setUrlHelper, start, stripExpressionIfAltSyntax, toString, usesBody
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

TEMPLATE

public static final String TEMPLATE
另请参见:
常量字段值

JQUERYACTION

public static final String JQUERYACTION
另请参见:
常量字段值

culture

protected String culture

icons

protected String icons

incremental

protected String incremental

max

protected String max

min

protected String min

numberFormat

protected String numberFormat

page

protected String page

step

protected String step

mouseWheel

protected String mouseWheel

onChangeTopics

protected String onChangeTopics

onSpinTopics

protected String onSpinTopics

onStartTopics

protected String onStartTopics

onStopTopics

protected String onStopTopics
构造方法详细信息

Spinner

public Spinner(com.opensymphony.xwork2.util.ValueStack stack,
               javax.servlet.http.HttpServletRequest request,
               javax.servlet.http.HttpServletResponse response)
方法详细信息

getDefaultTemplate

protected String getDefaultTemplate()
覆盖:
org.apache.struts2.components.TextField 中的 getDefaultTemplate

evaluateExtraParams

public void evaluateExtraParams()
覆盖:
TextField 中的 evaluateExtraParams

setCulture

public void setCulture(String culture)

setDisabled

public void setDisabled(String disabled)
覆盖:
org.apache.struts2.components.UIBean 中的 setDisabled

setIcons

public void setIcons(String icons)

setIncremental

public void setIncremental(String incremental)

setMax

public void setMax(String max)

setMin

public void setMin(String min)

setNumberFormat

public void setNumberFormat(String numberFormat)

setPage

public void setPage(String page)

setStep

public void setStep(String step)

setMouseWheel

public void setMouseWheel(String mouseWheel)

setOnChangeTopics

public void setOnChangeTopics(String onChangeTopics)

setOnSpinTopics

public void setOnSpinTopics(String onSpinTopics)

setOnStartTopics

public void setOnStartTopics(String onStartTopics)

setOnStopTopics

public void setOnStopTopics(String onStopTopics)


Copyright © 2014 广联达软件股份有限公司(Glodon Software Co., Ltd.). All rights reserved.