: Class Form

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.mortbay.HTML
Class Form

    java.lang.Object
      |
      +--com.mortbay.HTML.Element
            |
            +--com.mortbay.HTML.Composite
                  |
                  +--com.mortbay.HTML.Block
                        |
                        +--com.mortbay.HTML.Form

Direct Known Subclasses:
  TableForm

public class Form
extends Block

HTML Form The specialized Block can contain HTML Form elements as well as any other HTML elements

Field Summary
`static java.lang.String` | `encodingMultipartForm`
`static java.lang.String` | `encodingWWWURL`

Fields inherited from class com.mortbay.HTML.Block
`Bold, Center, Div, Italic, Left, Listing, Plain, Pre, Quote, Right, Span, Xmp`

Fields inherited from class com.mortbay.HTML.Composite
`elements, nest`

Fields inherited from class com.mortbay.HTML.Element
`ALIGN, attributeMap, BGCOLOR, BOTTOM, CENTER, CLASS, COLOR, HEIGHT, ID, LEFT, MIDDLE, noAttributes, RIGHT, SIZE, STYLE, TOP, VALIGN, WIDTH`

Constructor Summary
`Form()` Constructor
`Form(java.lang.String submitURL)` Constructor

Method Summary
`Form` | `action(java.lang.String submitURL)` Constructor
`Form` | `encoding(java.lang.String encoding)` Set the form encoding type
`Form` | `method(java.lang.String m)` Set the form method
`Form` | `target(java.lang.String t)` Set the form target
`void` | `write(java.io.Writer out)` Write the composite.

Methods inherited from class com.mortbay.HTML.Composite
`add, contents, nest, replace, reset, setNest, size, unnest`

Methods inherited from class com.mortbay.HTML.Element
`attribute, attribute, attribute, attributes, attributes, bgColor, bottom, center, color, cssClass, cssID, height, height, height, left, middle, right, setAttributesFrom, size, size, style, top, toString, width, width, width, write, write`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Field Detail

### encodingWWWURL

    public static final java.lang.String encodingWWWURL

### encodingMultipartForm

    public static final java.lang.String encodingMultipartForm

Constructor Detail

### Form

    public Form()

  Constructor

### Form

    public Form(java.lang.String submitURL)

  Constructor
  Parameters:
    `submitURL` - The URL to submit the form to

Method Detail

### action

    public Form action(java.lang.String submitURL)

  Constructor
  Parameters:
    `submitURL` - The URL to submit the form to

### target

    public Form target(java.lang.String t)

  Set the form target

### method

    public Form method(java.lang.String m)

  Set the form method

### encoding

    public Form encoding(java.lang.String encoding)

  Set the form encoding type

### write

    public void write(java.io.Writer out)
               throws java.io.IOException

  Description copied from class: Composite
  Write the composite. The default implementation writes the elements sequentially. May be overridden for more specialized behaviour.
  Overrides:
    write in class Block
  Tags copied from class: Composite
  Parameters:
    `out` - Writer to write the element to.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD