to.etc.domui.dom.html
Class Input

java.lang.Object
  extended by to.etc.domui.dom.css.CssBase
      extended by to.etc.domui.dom.html.NodeBase
          extended by to.etc.domui.dom.html.Input
All Implemented Interfaces:
IModelBinding, INodeErrorDelegate, IHasChangeListener
Direct Known Subclasses:
HiddenInput, Text

public class Input
extends NodeBase
implements IHasChangeListener, INodeErrorDelegate

The "input" tag as a base class. This one only handles classic, non-image inputs.

Author:
Frits Jalvingh Created on Jun 1, 2008

Constructor Summary
Input()
           
 
Method Summary
 boolean acceptRequestParameter(java.lang.String[] values)
          The input tag accepts a single value.
 void componentHandleWebAction(RequestContextImpl ctx, java.lang.String action)
          The input tag handles Constants.ACMD_LOOKUP_TYPING and Constants.ACMD_LOOKUP_TYPING_DONE browser commands.
 java.lang.String getInputType()
          Returns the input type= string which defaults to 'text' but which can be changed to 'password' by the HiddenText<T> control.
 int getMaxLength()
           
 java.lang.String getOnKeyPressJS()
           
 ILookupTypingListener<?> getOnLookupTyping()
           
 IValueChanged<?> getOnValueChanged()
           
 java.lang.String getRawValue()
           
 int getSize()
           
 boolean isDisabled()
           
 boolean isReadOnly()
           
 void setDisabled(boolean disabled)
           
 void setMaxLength(int maxLength)
           
 void setOnKeyPressJS(java.lang.String onKeyPressJS)
           
 void setOnLookupTyping(ILookupTypingListener<?> onLookupTyping)
           
 void setOnValueChanged(IValueChanged<?> onValueChanged)
           
 void setRawValue(java.lang.String value)
           
 void setReadOnly(boolean readOnly)
           
 void setSize(int size)
           
 void visit(INodeVisitor v)
          This must visit the appropriate method in the node visitor.
 
Methods inherited from class to.etc.domui.dom.html.NodeBase
$, addCssClass, addGlobalMessage, afterCreateContent, appendAfterMe, appendBeforeMe, appendCreateJS, appendJavascript, build, changed, clearFocusRequested, clearGlobalMessage, clearGlobalMessage, clearGlobalMessage, clearMessage, createContent, findComponentBundle, forceRebuild, getActualID, getClicked, getComponentBundle, getCreateJS, getCssClass, getErrorDelegate, getErrorLocation, getMessage, getOnClickJS, getOnMouseDownJS, getPage, getParent, getParent, getParent, getSharedContext, getSpecialAttribute, getSpecialAttributeList, getTag, getTestID, getTitle, getUserObject, handleDrop, hasCssClass, hasError, internalClearDelta, internalClearDeltaFully, internalGetOldParent, internalHasChangedAttributes, internalNeedClickHandler, internalOnClicked, internalSetHasChangedAttributes, internalSetHasChangedAttributes, internalSetTag, internalShelve, internalUnshelve, isBuilt, isFocusRequested, moveControlToModel, moveModelToControl, onAddedToPage, onBeforeFullRender, onForceRebuild, onHeaderContributors, onRefresh, onRemoveFromPage, onShelve, onUnshelve, refresh, remove, removeCssClass, renderJavascriptState, replaceWith, setClicked, setComponentBundle, setControlsEnabled, setCssClass, setErrorDelegate, setErrorLocation, setFocus, setMessage, setOnClickJS, setOnMouseDownJS, setSpecialAttribute, setTestID, setTitle, setUserObject, stretchHeight, toString
 
Methods inherited from class to.etc.domui.dom.css.CssBase
getBackgroundAttachment, getBackgroundColor, getBackgroundImage, getBackgroundPosition, getBackgroundRepeat, getBorderBottomColor, getBorderBottomStyle, getBorderBottomWidth, getBorderLeftColor, getBorderLeftStyle, getBorderLeftWidth, getBorderRightColor, getBorderRightStyle, getBorderRightWidth, getBorderTopColor, getBorderTopStyle, getBorderTopWidth, getBottom, getCachedStyle, getClear, getColor, getDisplay, getFloat, getFontFamily, getFontSize, getFontSizeAdjust, getFontStyle, getFontVariant, getFontWeight, getHeight, getLeft, getLineHeight, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOverflow, getPosition, getRight, getTextAlign, getTop, getTransform, getVerticalAlign, getVisibility, getWidth, getZIndex, internalSetDisplay, setBackgroundAttachment, setBackgroundColor, setBackgroundImage, setBackgroundPosition, setBackgroundRepeat, setBorder, setBorder, setBorderBottomColor, setBorderBottomStyle, setBorderBottomWidth, setBorderColor, setBorderLeftColor, setBorderLeftStyle, setBorderLeftWidth, setBorderRightColor, setBorderRightStyle, setBorderRightWidth, setBorderStyle, setBorderTopColor, setBorderTopStyle, setBorderTopWidth, setBorderWidth, setBottom, setBottom, setCachedStyle, setClear, setColor, setDisplay, setFloat, setFontFamily, setFontSize, setFontSizeAdjust, setFontStyle, setFontVariant, setFontWeight, setHeight, setLeft, setLeft, setLineHeight, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOverflow, setPosition, setRight, setRight, setTextAlign, setTop, setTop, setTransform, setVerticalAlign, setVisibility, setWidth, setZIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface to.etc.domui.dom.errors.INodeErrorDelegate
clearMessage, getMessage, setMessage
 

Constructor Detail

Input

public Input()
Method Detail

getInputType

public java.lang.String getInputType()
Returns the input type= string which defaults to 'text' but which can be changed to 'password' by the HiddenText<T> control.

Returns:

visit

public void visit(INodeVisitor v)
           throws java.lang.Exception
Description copied from class: NodeBase
This must visit the appropriate method in the node visitor. It should NOT recurse it's children.

Specified by:
visit in class NodeBase
Throws:
java.lang.Exception

isDisabled

public boolean isDisabled()

setDisabled

public void setDisabled(boolean disabled)

isReadOnly

public boolean isReadOnly()

setReadOnly

public void setReadOnly(boolean readOnly)

getMaxLength

public int getMaxLength()

setMaxLength

public void setMaxLength(int maxLength)

getSize

public int getSize()

setSize

public void setSize(int size)

getRawValue

public java.lang.String getRawValue()

setRawValue

public void setRawValue(java.lang.String value)

getOnKeyPressJS

public java.lang.String getOnKeyPressJS()

setOnKeyPressJS

public void setOnKeyPressJS(java.lang.String onKeyPressJS)

acceptRequestParameter

public boolean acceptRequestParameter(java.lang.String[] values)
The input tag accepts a single value.

Overrides:
acceptRequestParameter in class NodeBase
See Also:
NodeBase.acceptRequestParameter(java.lang.String[])

componentHandleWebAction

public void componentHandleWebAction(RequestContextImpl ctx,
                                     java.lang.String action)
                              throws java.lang.Exception
The input tag handles Constants.ACMD_LOOKUP_TYPING and Constants.ACMD_LOOKUP_TYPING_DONE browser commands.

Overrides:
componentHandleWebAction in class NodeBase
Throws:
java.lang.Exception
See Also:
NodeBase.componentHandleWebAction(to.etc.domui.server.RequestContextImpl, java.lang.String)

getOnValueChanged

public IValueChanged<?> getOnValueChanged()
Specified by:
getOnValueChanged in interface IHasChangeListener
See Also:
IHasChangeListener.getOnValueChanged()

setOnValueChanged

public void setOnValueChanged(IValueChanged<?> onValueChanged)
Specified by:
setOnValueChanged in interface IHasChangeListener
See Also:
IHasChangeListener.setOnValueChanged(to.etc.domui.dom.html.IValueChanged)

getOnLookupTyping

public ILookupTypingListener<?> getOnLookupTyping()

setOnLookupTyping

public void setOnLookupTyping(ILookupTypingListener<?> onLookupTyping)