2004.04.29


com.jdc.gui.html.tag
Class Input

java.lang.Object
  |
  +--com.jdc.xml.ComplexTag
        |
        +--com.jdc.gui.html.ComplexTag
              |
              +--com.jdc.gui.html.tag.Input
All Implemented Interfaces:
MarkupLanguage, Serializable

public class Input
extends ComplexTag

Input is used to create the HTML required to create input tags in a browser, including the start tag, the input attributes, and the end tag as well as the actual input data.

Version:
1.0
Author:
Jay Damon
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.jdc.gui.html.MarkupLanguage
XHTML
 
Constructor Summary
Input()
          Constructs a Input tag object.
Input(boolean format)
          Constructs a Input tag object and sets the format status.
 
Method Summary
 String create()
          Create and return the HTML required to create a Input tag in a browser.
 String create(String input)
          Create and return the HTML required to create a Input tag in a browser.
 String endTag()
          Return an Input end tag.
 Input setChecked(boolean checked)
          Set the input (field) checked.
 Input setClass(String classname)
          Set the input tag Class name.
 Input setId(String id)
          Set the input tag id.
 Input setMaxLength(int maxLength)
          Set the input (field) maximum length.
 Input setName(String name)
          Set the input tag name.
 Input setOnBlur(boolean returnValue, String eventAction)
          Set the input tag onBlur event action.
 Input setOnBlur(String eventAction)
          Set the input tag onBlur event action.
 Input setOnClick(boolean returnValue, String eventAction)
          Set the input tag onClick event action.
 Input setOnClick(String eventAction)
          Set the input tag onClick event action.
 Input setOnDoubleClick(boolean returnValue, String eventAction)
          Set the input tag onDblClick event action.
 Input setOnDoubleClick(String eventAction)
          Set the input tag onDblClick event action.
 Input setOnFocus(boolean returnValue, String eventAction)
          Set the input tag onFocus event action.
 Input setOnFocus(String eventAction)
          Set the input tag onFocus event action.
 Input setOnSubmit(boolean returnValue, String eventAction)
          Set the input tag onSubmit event action.
 Input setOnSubmit(String eventAction)
          Set the input tag onSubmit event action.
 Input setReadonly()
          Set the input tag readonly flag.
 Input setSize(int size)
          Set the input (field) size.
 Input setType(Type type)
          Set the input tag type.
 Input setValue(int value)
          Set the input (field) value from an integer.
 Input setValue(String value)
          Set the input (field) value from a String.
 String startTag()
          Return a Input start tag.
 
Methods inherited from class com.jdc.gui.html.ComplexTag
addAttribute, create, create, endTag, setFormat, setIdentifier, startTag
 
Methods inherited from class com.jdc.xml.ComplexTag
addAttribute, getAttributes, getBody, getIdentifier, setBody, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Input

public Input()
Constructs a Input tag object.


Input

public Input(boolean format)
Constructs a Input tag object and sets the format status.

Method Detail

create

public String create()
Create and return the HTML required to create a Input tag in a browser.

Overrides:
create in class ComplexTag
Returns:
String Input.

create

public String create(String input)
Create and return the HTML required to create a Input tag in a browser.

Overrides:
create in class ComplexTag
Returns:
String Input.

startTag

public String startTag()
Return a Input start tag.

Overrides:
startTag in class ComplexTag
Returns:
String Input start tag.

endTag

public String endTag()
Return an Input end tag.

Overrides:
endTag in class ComplexTag
Returns:
String Input end tag.

setChecked

public Input setChecked(boolean checked)
Set the input (field) checked.

Returns:
Input

setMaxLength

public Input setMaxLength(int maxLength)
Set the input (field) maximum length.

Returns:
Input

setId

public Input setId(String id)
Set the input tag id.

Returns:
Input

setName

public Input setName(String name)
Set the input tag name.

Returns:
Input

setClass

public Input setClass(String classname)
Set the input tag Class name.

Returns:
Input

setOnBlur

public Input setOnBlur(String eventAction)
Set the input tag onBlur event action.

Returns:
Input

setOnBlur

public Input setOnBlur(boolean returnValue,
                       String eventAction)
Set the input tag onBlur event action.

Returns:
Input

setOnClick

public Input setOnClick(String eventAction)
Set the input tag onClick event action.

Returns:
Input

setOnClick

public Input setOnClick(boolean returnValue,
                        String eventAction)
Set the input tag onClick event action.

Returns:
Input

setOnDoubleClick

public Input setOnDoubleClick(String eventAction)
Set the input tag onDblClick event action.

Returns:
Input

setOnDoubleClick

public Input setOnDoubleClick(boolean returnValue,
                              String eventAction)
Set the input tag onDblClick event action.

Returns:
Input

setOnFocus

public Input setOnFocus(String eventAction)
Set the input tag onFocus event action.

Returns:
Input

setOnFocus

public Input setOnFocus(boolean returnValue,
                        String eventAction)
Set the input tag onFocus event action.

Returns:
Input

setOnSubmit

public Input setOnSubmit(String eventAction)
Set the input tag onSubmit event action.

Returns:
Input

setOnSubmit

public Input setOnSubmit(boolean returnValue,
                         String eventAction)
Set the input tag onSubmit event action.

Returns:
Input

setReadonly

public Input setReadonly()
Set the input tag readonly flag.

Returns:
input

setSize

public Input setSize(int size)
Set the input (field) size.

Returns:
Input

setType

public Input setType(Type type)
Set the input tag type.

Returns:
Input

setValue

public Input setValue(int value)
Set the input (field) value from an integer.

Returns:
Input

setValue

public Input setValue(String value)
Set the input (field) value from a String.

Returns:
Input

2004.04.29



Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.