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

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
              extended by org.apache.empire.struts2.jsp.components.InputControlComponent
All Implemented Interfaces:
InputControl.ControlInfo, InputControl.ValueInfo

public class InputControlComponent
extends ControlComponent
implements InputControl.ControlInfo


Nested Class Summary
static class InputControlComponent.DisabledMode
           
static class InputControlComponent.RenderType
           
 
Field Summary
 
Fields inherited from class org.apache.empire.struts2.jsp.components.ControlComponent
bodyUsage, column, format, log, nullValue, options, 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
InputControlComponent(InputControl control, com.opensymphony.xwork2.util.ValueStack stack, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
 
Method Summary
 String getAccesskey()
           
 boolean getDisabled()
           
 int getHSize()
           
 String getId()
           
 String getName()
           
 String getOnblur()
           
 String getOnchange()
           
 String getOnfocus()
           
 String getTabindex()
           
 int getVSize()
           
 boolean hasError()
           
protected  void render(HtmlWriter writer, String body, InputControl control)
           
 void setDisabledMode(String type)
           
 void setHSize(String size)
           
 void setLabelClass(String labelClass)
           
 void setLabelStyle(String labelStyle)
           
 void setReadOnly(boolean readOnly)
           
 void setRenderType(String type)
           
 void setVSize(String size)
           
 
Methods inherited from class org.apache.empire.struts2.jsp.components.ControlComponent
end, getAction, getColumn, getCssClass, getCssStyle, getDefaultTemplate, getFormat, getNullValue, getOnclick, getOndblclick, getOptions, getTranslation, getUserLocale, getValue, setBodyUsage, setColumn, setFormat, setNullValue, setOptions, setRecordValue, start, 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
 
Methods inherited from interface org.apache.empire.struts2.jsp.controls.InputControl.ValueInfo
getColumn, getCssClass, getCssStyle, getFormat, getNullValue, getOnclick, getOndblclick, getOptions, getTranslation, getUserLocale, getValue
 

Constructor Detail

InputControlComponent

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

render

protected void render(HtmlWriter writer,
                      String body,
                      InputControl control)
Specified by:
render in class ControlComponent

setReadOnly

public void setReadOnly(boolean readOnly)

setRenderType

public void setRenderType(String type)

setDisabledMode

public void setDisabledMode(String type)

setHSize

public void setHSize(String size)

setVSize

public void setVSize(String size)

getId

public String getId()
Specified by:
getId in interface InputControl.ValueInfo
Overrides:
getId in class ControlComponent

getName

public final String getName()
Specified by:
getName in interface InputControl.ControlInfo

getDisabled

public final boolean getDisabled()
Specified by:
getDisabled in interface InputControl.ControlInfo

getTabindex

public final String getTabindex()
Specified by:
getTabindex in interface InputControl.ControlInfo

getAccesskey

public final String getAccesskey()

getOnchange

public final String getOnchange()
Specified by:
getOnchange in interface InputControl.ControlInfo

getOnfocus

public final String getOnfocus()
Specified by:
getOnfocus in interface InputControl.ControlInfo

getOnblur

public final String getOnblur()
Specified by:
getOnblur in interface InputControl.ControlInfo

hasError

public final boolean hasError()
Specified by:
hasError in interface InputControl.ControlInfo

getHSize

public int getHSize()
Specified by:
getHSize in interface InputControl.ControlInfo

getVSize

public int getVSize()
Specified by:
getVSize in interface InputControl.ControlInfo

setLabelClass

public void setLabelClass(String labelClass)

setLabelStyle

public void setLabelStyle(String labelStyle)


Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.