org.apache.turbine.services.freemarker
Class InputModel

java.lang.Object
  |
  +--org.apache.ecs.GenericElement
        |
        +--org.apache.ecs.ElementAttributes
              |
              +--org.apache.ecs.ConcreteElement
                    |
                    +--org.apache.ecs.SinglePartElement
                          |
                          +--org.apache.ecs.html.Input
                                |
                                +--org.apache.turbine.services.freemarker.InputModel
All Implemented Interfaces:
org.apache.ecs.Attributes, java.lang.Cloneable, org.apache.ecs.Element, org.apache.ecs.ElementRegistry, org.apache.ecs.FocusEvents, org.apache.ecs.FormEvents, org.apache.ecs.KeyEvents, org.apache.ecs.MouseEvents, org.apache.ecs.PageEvents, org.apache.ecs.Printable, java.io.Serializable, freemarker.template.TemplateMethodModel, freemarker.template.TemplateModel

public class InputModel
extends org.apache.ecs.html.Input
implements freemarker.template.TemplateMethodModel

Creates an input html tag. The size attribute can be passed in through a list. This object is intended to be used by applications, so that the name and value attributes will not accidently be altered by designers.

Version:
$Id: InputModel.java,v 1.1.1.1 2001/08/16 05:08:54 jvanzyl Exp $
Author:
John D. McNally
See Also:
Serialized Form

Fields inherited from class org.apache.ecs.html.Input
button, BUTTON, checkbox, CHECKBOX, file, FILE, hidden, HIDDEN, image, IMAGE, password, PASSWORD, radio, RADIO, reset, RESET, submit, SUBMIT, text, TEXT
 
Fields inherited from class org.apache.ecs.ConcreteElement
registry, registryList
 
Fields inherited from class org.apache.ecs.ElementAttributes
attribute_equality_sign, attribute_filter, attribute_quote, attribute_quote_char, filter_attribute_state
 
Fields inherited from class org.apache.ecs.GenericElement
__text, _defaultFilter, begin_end_modifier, begin_end_modifier_defined, begin_start_modifier, begin_start_modifier_defined, case_type, codeset, element, element_type, end_element, end_end_modifier, end_end_modifier_defined, end_modifier_defined, end_start_modifier, end_start_modifier_defined, end_tag, filter, filter_state, position, pretty_print, start_modifier_defined, start_tag, tabLevel, VERSION
 
Fields inherited from interface org.apache.ecs.Attributes
NO_ATTRIBUTE_VALUE
 
Fields inherited from interface org.apache.ecs.Element
CENTER, LEFT, LOWERCASE, MIXEDCASE, RIGHT, UPPERCASE
 
Constructor Summary
InputModel(java.lang.String type, java.lang.String name, java.lang.String value)
          Deprecated. Creates an input html tag.
 
Method Summary
 freemarker.template.TemplateModel exec(java.util.List args)
          Deprecated. Method called by FreeMarker during template parsing.
 boolean isEmpty()
          Deprecated. Required method in TemplateMethodModel, not implemented.
 
Methods inherited from class org.apache.ecs.html.Input
addElement, addElement, addElement, addElement, removeElement, setAccept, setAlt, setBorder, setChecked, setDisabled, setMaxlength, setMaxlength, setName, setOnBlur, setOnChange, setOnClick, setOnDblClick, setOnFocus, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnLoad, setOnMouseDown, setOnMouseMove, setOnMouseOut, setOnMouseOver, setOnMouseUp, setOnReset, setOnSelect, setOnSubmit, setOnUnload, setReadOnly, setSize, setSize, setSrc, setTabindex, setTabindex, setType, setUsemap, setValue, setValue, setValue, setValue
 
Methods inherited from class org.apache.ecs.ConcreteElement
addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, clone, elements, getElement, keys, output, output, output, registryHasElement, registryHasElement, removeElementFromRegistry, removeElementFromRegistry
 
Methods inherited from class org.apache.ecs.ElementAttributes
addAttribute, addAttribute, addAttribute, addAttribute, attributes, createStartTag, getAttribute, getAttributeEqualitySign, getAttributeFilter, getAttributeFilterState, getAttributeQuote, getAttributeQuoteChar, hasAttribute, removeAttribute, setAttributeEqualitySign, setAttributeFilter, setAttributeFilterState, setAttributeQuote, setAttributeQuoteChar, setClass, setDir, setID, setLang, setStyle, setTitle
 
Methods inherited from class org.apache.ecs.GenericElement
, alterCase, createEndTag, getBeginEndModifier, getBeginEndModifierDefined, getBeginStartModifier, getBeginStartModifierDefined, getCase, getCodeSet, getElementHashEntry, getElementType, getEndEndModifier, getEndEndModifierDefined, getEndStartModifier, getEndStartModifierDefined, getEndTagChar, getFilter, getFilterState, getNeedClosingTag, getNeedLineBreak, getPrettyPrint, getStartTagChar, getTabLevel, getTagPosition, getTagText, getVersion, putTabs, putTabs, removeBeginEndModifier, removeBeginStartModifier, removeEndEndModifier, removeEndStartModifier, setBeginEndModifier, setBeginEndModifierDefined, setBeginModifier, setBeginModifier, setBeginStartModifier, setBeginStartModifierDefined, setCase, setCodeSet, setElementType, setEndEndModifier, setEndEndModifierDefined, setEndModifier, setEndModifier, setEndStartModifier, setEndStartModifierDefined, setEndTagChar, setFilter, setFilterState, setNeedClosingTag, setPrettyPrint, setStartTagChar, setTabLevel, setTagPosition, setTagText, toString, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

InputModel

public InputModel(java.lang.String type,
                  java.lang.String name,
                  java.lang.String value)
Deprecated. 
Creates an input html tag.
Parameters:
type - The input type attribute.
name - The input name attribute.
value - The input value attribute.
Method Detail

exec

public freemarker.template.TemplateModel exec(java.util.List args)
                                       throws freemarker.template.TemplateModelException
Deprecated. 
Method called by FreeMarker during template parsing.
Specified by:
exec in interface freemarker.template.TemplateMethodModel
Parameters:
args - A List of Strings passed from the template. Only the first is relevant and is used to set the size attribute.
Returns:
Throws:
TemplateModelException. -  

isEmpty

public boolean isEmpty()
Deprecated. 
Required method in TemplateMethodModel, not implemented.
Specified by:
isEmpty in interface freemarker.template.TemplateModel
Returns:
Always false.


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.