org.japano.util
Class Form

java.lang.Object
  extended by org.japano.util.Form

public class Form
extends java.lang.Object

Utility class with static HTML form related methods.

Version:
$Id: Form.java,v 1.6 2005/11/27 06:56:24 fforw Exp $ SourceForge.net Logo
Author:
Sven Helmberger ( sven dot helmberger at gmx dot de )

Method Summary
static void multiSelect(Buffer out, java.lang.String name, java.lang.String[] def, int size, java.util.Collection texts, java.util.Collection values, java.lang.String styleId, java.lang.String styleClass, java.lang.String style)
          Inserts a multi-select select field into the given buffer.
static void select(Buffer out, java.lang.String name, java.lang.String def, int size, java.util.Collection texts, java.util.Collection values, java.lang.String styleId, java.lang.String styleClass, java.lang.String style)
          Inserts a select field into the given buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

select

public static void select(Buffer out,
                          java.lang.String name,
                          java.lang.String def,
                          int size,
                          java.util.Collection texts,
                          java.util.Collection values,
                          java.lang.String styleId,
                          java.lang.String styleClass,
                          java.lang.String style)
Inserts a select field into the given buffer.

Parameters:
name - parameter name
def - default value
size - HTML select field size. if set to 1, the select field will be combo box.
texts - option texts to be displayed.
values - parameter values to be send.
styleId - HTML id attribute of the select field
styleClass - HTML class attribute of the select field
style - HTML style attribute of the select field
out - buffer

multiSelect

public static void multiSelect(Buffer out,
                               java.lang.String name,
                               java.lang.String[] def,
                               int size,
                               java.util.Collection texts,
                               java.util.Collection values,
                               java.lang.String styleId,
                               java.lang.String styleClass,
                               java.lang.String style)
Inserts a multi-select select field into the given buffer.

Parameters:
name - parameter name
def - default value
size - HTML select field size. if set to 1, the select field will be combo box.
texts - option texts to be displayed.
values - parameter values to be send.
styleId - HTML id attribute of the select field
styleClass - HTML class attribute of the select field
style - HTML style attribute of the select field
out - buffer