org.apache.empire.struts2.jsp.components
Class ControlComponent

java.lang.Object
  extended by org.apache.struts2.components.Component
      extended by org.apache.struts2.components.UIBean
          extended by org.apache.empire.struts2.jsp.components.ControlComponent
All Implemented Interfaces:
InputControl.ValueInfo
Direct Known Subclasses:
DataValueComponent, InputControlComponent

public abstract class ControlComponent
extends org.apache.struts2.components.UIBean
implements InputControl.ValueInfo


Field Summary
protected  String bodyUsage
           
protected  Column column
           
protected  String format
           
protected static org.slf4j.Logger log
           
protected  Object nullValue
           
protected  Options options
           
protected  Object recordValue
           
 
Fields inherited from class org.apache.struts2.components.UIBean
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
 
Fields inherited from class org.apache.struts2.components.Component
actionMapper, COMPONENT_STACK, parameters, stack, throwExceptionOnELFailure
 
Constructor Summary
protected ControlComponent(InputControl control, com.opensymphony.xwork2.util.ValueStack stack, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
 
Method Summary
 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()
           
 
Methods inherited from class org.apache.struts2.components.UIBean
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
 
Methods inherited from class org.apache.struts2.components.Component
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.slf4j.Logger log

column

protected Column column

options

protected Options options

recordValue

protected Object recordValue

nullValue

protected Object nullValue

bodyUsage

protected String bodyUsage

format

protected String format
Constructor Detail

ControlComponent

protected ControlComponent(InputControl control,
                           com.opensymphony.xwork2.util.ValueStack stack,
                           javax.servlet.http.HttpServletRequest req,
                           javax.servlet.http.HttpServletResponse res)
Method Detail

getDefaultTemplate

protected String getDefaultTemplate()
Specified by:
getDefaultTemplate in class org.apache.struts2.components.UIBean

start

public boolean start(Writer writer)
Overrides:
start in class org.apache.struts2.components.Component

end

public final boolean end(Writer writer,
                         String body)
Overrides:
end in class org.apache.struts2.components.UIBean

getAction

protected Object getAction()

getUserLocale

public Locale getUserLocale()
Specified by:
getUserLocale in interface InputControl.ValueInfo

getTranslation

public final String getTranslation(String text)
Specified by:
getTranslation in interface InputControl.ValueInfo

render

protected abstract void render(HtmlWriter hw,
                               String body,
                               InputControl control)

usesBody

public boolean usesBody()
Overrides:
usesBody in class org.apache.struts2.components.Component

setColumn

public void setColumn(Column column)

setOptions

public void setOptions(Options options)

setRecordValue

public void setRecordValue(Object recordValue)

setBodyUsage

public void setBodyUsage(String bodyUsage)

setFormat

public void setFormat(String format)

getId

public String getId()
Specified by:
getId in interface InputControl.ValueInfo
Overrides:
getId in class org.apache.struts2.components.UIBean

getColumn

public final Column getColumn()
Specified by:
getColumn in interface InputControl.ValueInfo

getOptions

public final Options getOptions()
Specified by:
getOptions in interface InputControl.ValueInfo

getValue

public final Object getValue()
Specified by:
getValue in interface InputControl.ValueInfo

getNullValue

public final Object getNullValue()
Specified by:
getNullValue in interface InputControl.ValueInfo

getCssClass

public final String getCssClass()
Specified by:
getCssClass in interface InputControl.ValueInfo

getCssStyle

public final String getCssStyle()
Specified by:
getCssStyle in interface InputControl.ValueInfo

getOnclick

public final String getOnclick()
Specified by:
getOnclick in interface InputControl.ValueInfo

getOndblclick

public final String getOndblclick()
Specified by:
getOndblclick in interface InputControl.ValueInfo

getFormat

public final String getFormat()
Specified by:
getFormat in interface InputControl.ValueInfo

setNullValue

public void setNullValue(Object nullValue)


Copyright © 2008–2014 Apache Software Foundation. All rights reserved.