|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.beans.AbstractBean
org.jdesktop.html.form.AbstractForm
public abstract class AbstractForm
An abstract implementation of the Form interface.
| Constructor Summary | |
|---|---|
protected |
AbstractForm(String baseUrl,
Encoding enc,
Input... inputs)
Create a new AbstractForm with the given baseUrl and array of Inputs. |
protected |
AbstractForm(String baseUrl,
Input... inputs)
Create a new AbstractForm with the given baseUrl and array of Inputs. |
protected |
AbstractForm(String baseUrl,
Set<Input> inputs)
Create a new AbstractForm with the given baseUrl and set of Inputs. |
| Method Summary | |
|---|---|
String |
getBaseUrl()
Returns the base url. |
Encoding |
getEncoding()
Returns the Encoding used with this Form. |
Input |
getInput(String name)
Gets the Input with the given name. |
Parameter[] |
getInputParameters()
|
Input[] |
getInputs()
Gets the array of Inputs for this Form. |
Response |
submit(Session session)
|
| Methods inherited from class org.jdesktop.beans.AbstractBean |
|---|
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jdesktop.html.form.Form |
|---|
getAction, getMethod |
| Constructor Detail |
|---|
protected AbstractForm(String baseUrl,
Set<Input> inputs)
baseUrl - the base url. May be null (but then relative action paths
will fail).inputs - the set of inputs. May be null.
protected AbstractForm(String baseUrl,
Input... inputs)
baseUrl - the base url. May be null (but then relative action paths
will fail).inputs - the array of inputs. May be null.
protected AbstractForm(String baseUrl,
Encoding enc,
Input... inputs)
baseUrl - the base url. May be null (but then relative action paths
will fail).encoding - the encoding to use. If null, then UrlEncoded is usedinputs - the array of inputs. May be null.| Method Detail |
|---|
public Input[] getInputs()
FormInputs for this Form.
getInputs in interface FormInputs. The ordering of elements in
this array is not guaranteed.public Input getInput(String name)
FormInput with the given name. If more than one
Input has this name, it is unspecified which will be returned.
getInput in interface FormInput with the given name. May be null.public Parameter[] getInputParameters()
public Response submit(Session session)
throws Exception
Exceptionpublic String getBaseUrl()
Form
getBaseUrl in interface Formpublic Encoding getEncoding()
FormEncoding used with this Form. By default, this is
UrlEncoded. The encoding is honored when submitting the form.
getEncoding in interface Form
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||