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, setValueaddAllParameters, addParameter, altSyntax, altSyntax, completeExpressionIfAltSyntax, copyParams, determineActionURL, determineNamespace, end, fieldError, findAncestor, findString, findString, findStringIfAltSyntax, findValue, findValue, findValue, getComponentStack, getParameters, getStack, popComponentStack, setActionMapper, setThrowExceptionsOnELFailure, stripExpressionIfAltSyntax, stripExpressionIfAltSyntax, toStringprotected 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.UIBeanpublic boolean start(Writer writer)
start in class org.apache.struts2.components.Componentpublic final boolean end(Writer writer, String body)
end in class org.apache.struts2.components.UIBeanprotected Object getAction()
public Locale getUserLocale()
getUserLocale in interface InputControl.ValueInfopublic final String getTranslation(String text)
getTranslation in interface InputControl.ValueInfoprotected abstract void render(HtmlWriter hw, String body, InputControl control)
public boolean usesBody()
usesBody in class org.apache.struts2.components.Componentpublic 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.ValueInfogetId in class org.apache.struts2.components.UIBeanpublic final Column getColumn()
getColumn in interface InputControl.ValueInfopublic final Options getOptions()
getOptions in interface InputControl.ValueInfopublic final Object getValue()
getValue in interface InputControl.ValueInfopublic final Object getNullValue()
getNullValue in interface InputControl.ValueInfopublic final String getCssClass()
getCssClass in interface InputControl.ValueInfopublic final String getCssStyle()
getCssStyle in interface InputControl.ValueInfopublic final String getOnclick()
getOnclick in interface InputControl.ValueInfopublic final String getOndblclick()
getOndblclick in interface InputControl.ValueInfopublic final String getFormat()
getFormat in interface InputControl.ValueInfopublic void setNullValue(Object nullValue)
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.