|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.jdesktop.swingx.JXHtmlForm
public class JXHtmlForm extends JPanel
This widget allows a Swing UI (or other Java code) to simulate and send an HTML submit. The JXHtmlForm iterates through all of its child components, looking for any components that have a FormSubmitter.FORM_ID client property. If it finds one, it includes the component's data in the submit. Requires the optional libraries HTTP-Client, Commons-Codec, Commons-Logging
| Nested Class Summary | |
|---|---|
static class |
JXHtmlForm.Option
|
static class |
JXHtmlForm.Parameter
|
| Field Summary | |
|---|---|
static String |
NAME
|
static String |
VALUE
|
private URI |
action
|
private Method |
method
|
| Fields inherited from class JPanel | |
|---|---|
| WHEN_FOCUSED, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_IN_FOCUSED_WINDOW, UNDEFINED_CONDITION, TOOL_TIP_TEXT_KEY, TOP_ALIGNMENT, CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, WIDTH, HEIGHT, PROPERTIES, SOMEBITS, FRAMEBITS, ALLBITS, ERROR, ABORT |
| Fields inherited from class JComponent | |
|---|---|
| WHEN_FOCUSED, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_IN_FOCUSED_WINDOW, UNDEFINED_CONDITION, TOOL_TIP_TEXT_KEY, TOP_ALIGNMENT, CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, WIDTH, HEIGHT, PROPERTIES, SOMEBITS, FRAMEBITS, ALLBITS, ERROR, ABORT |
| Constructor Summary | |
JXHtmlForm()
Creates a new instance of FormSubmitter |
|
JXHtmlForm(String actionUri, Method method)
|
|
| Method Summary | |
|---|---|
private static void
|
blar()
|
URI
|
getAction()
|
Method
|
getMethod()
|
List
|
getParameters()
|
void
|
setAction(URI action)
|
void
|
setMethod(Method m)
|
void
|
submit(AsyncHttpRequest req)
|
String
|
submit()
|
| Field Detail |
|---|
public static final String NAME
public static final String VALUE
private URI action
private Method method
| Constructor Detail |
|---|
public JXHtmlForm()
public JXHtmlForm(String actionUri, Method method)
| Method Detail |
|---|
private static void blar()
public URI getAction()
public Method getMethod()
public List getParameters()
public void setAction(URI action)
public void setMethod(Method m)
public void submit(AsyncHttpRequest req)
public String submit()
Groovy Documentation