public abstract class ControlComponent extends org.apache.struts2.components.UIBean implements InputControl.ValueInfo
Modifier and Type | Field and Description |
---|---|
protected String |
bodyUsage |
protected Column |
column |
protected String |
format |
protected static org.slf4j.Logger |
log |
protected Object |
nullValue |
protected Options |
options |
protected Object |
recordValue |
accesskey, cssClass, cssErrorClass, cssErrorStyle, cssStyle, defaultTemplateDir, defaultUITheme, disabled, dynamicAttributes, id, javascriptTooltip, key, label, labelPosition, labelSeparator, name, onblur, onchange, onclick, ondblclick, onfocus, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onselect, request, required, requiredposition, response, tabindex, template, templateDir, templateEngineManager, templateSuffix, theme, title, tooltip, tooltipConfig, tooltipCssClass, tooltipDelay, tooltipIconPath, value
Modifier | Constructor and Description |
---|---|
protected |
ControlComponent(InputControl control,
com.opensymphony.xwork2.util.ValueStack stack,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
Modifier and Type | Method and Description |
---|---|
boolean |
end(Writer writer,
String body) |
protected Object |
getAction() |
Column |
getColumn() |
String |
getCssClass() |
String |
getCssStyle() |
protected String |
getDefaultTemplate() |
String |
getFormat() |
String |
getId() |
Object |
getNullValue() |
String |
getOnclick() |
String |
getOndblclick() |
Options |
getOptions() |
String |
getTranslation(String text) |
Locale |
getUserLocale() |
Object |
getValue() |
protected abstract void |
render(HtmlWriter hw,
String body,
InputControl control) |
void |
setBodyUsage(String bodyUsage) |
void |
setColumn(Column column) |
void |
setFormat(String format) |
void |
setNullValue(Object nullValue) |
void |
setOptions(Options options) |
void |
setRecordValue(Object recordValue) |
boolean |
start(Writer writer) |
boolean |
usesBody() |
addFormParameter, buildTemplateName, enableAncestorFormCustomOnsubmit, ensureAttributeSafelyNotEscaped, escape, evaluateExtraParams, evaluateNameValue, evaluateParams, getTemplate, getTemplateDir, getTheme, getTooltipConfig, getValueClassType, mergeTemplate, populateComponentHtmlId, setAccesskey, setCssClass, setCssErrorClass, setCssErrorStyle, setCssStyle, setDefaultTemplateDir, setDefaultUITheme, setDisabled, setDynamicAttributes, setId, setJavascriptTooltip, setKey, setLabel, setLabelposition, setLabelSeparator, setName, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setRequired, setRequiredposition, setTabindex, setTemplate, setTemplateDir, setTemplateEngineManager, setTheme, setTitle, setTooltip, setTooltipConfig, setTooltipCssClass, setTooltipDelay, setTooltipIconPath, setValue
addAllParameters, addParameter, altSyntax, altSyntax, completeExpressionIfAltSyntax, copyParams, determineActionURL, determineNamespace, end, fieldError, findAncestor, findString, findString, findStringIfAltSyntax, findValue, findValue, findValue, getComponentStack, getParameters, getStack, popComponentStack, setActionMapper, setThrowExceptionsOnELFailure, stripExpressionIfAltSyntax, stripExpressionIfAltSyntax, toString
protected static org.slf4j.Logger log
protected Column column
protected Options options
protected Object recordValue
protected Object nullValue
protected String bodyUsage
protected String format
protected ControlComponent(InputControl control, com.opensymphony.xwork2.util.ValueStack stack, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
protected String getDefaultTemplate()
getDefaultTemplate
in class org.apache.struts2.components.UIBean
public boolean start(Writer writer)
start
in class org.apache.struts2.components.Component
public final boolean end(Writer writer, String body)
end
in class org.apache.struts2.components.UIBean
protected Object getAction()
public Locale getUserLocale()
getUserLocale
in interface InputControl.ValueInfo
public final String getTranslation(String text)
getTranslation
in interface InputControl.ValueInfo
protected abstract void render(HtmlWriter hw, String body, InputControl control)
public boolean usesBody()
usesBody
in class org.apache.struts2.components.Component
public void setColumn(Column column)
public void setOptions(Options options)
public void setRecordValue(Object recordValue)
public void setBodyUsage(String bodyUsage)
public void setFormat(String format)
public String getId()
getId
in interface InputControl.ValueInfo
getId
in class org.apache.struts2.components.UIBean
public final Column getColumn()
getColumn
in interface InputControl.ValueInfo
public final Options getOptions()
getOptions
in interface InputControl.ValueInfo
public final Object getValue()
getValue
in interface InputControl.ValueInfo
public final Object getNullValue()
getNullValue
in interface InputControl.ValueInfo
public final String getCssClass()
getCssClass
in interface InputControl.ValueInfo
public final String getCssStyle()
getCssStyle
in interface InputControl.ValueInfo
public final String getOnclick()
getOnclick
in interface InputControl.ValueInfo
public final String getOndblclick()
getOndblclick
in interface InputControl.ValueInfo
public final String getFormat()
getFormat
in interface InputControl.ValueInfo
public void setNullValue(Object nullValue)
Copyright © 2008–2017 Apache Software Foundation. All rights reserved.