Package nl.b3p.commons.gui
Class HTMLPane.FormActionEvent
- java.lang.Object
-
- java.util.EventObject
-
- java.awt.AWTEvent
-
- java.awt.event.ActionEvent
-
- nl.b3p.commons.gui.HTMLPane.FormActionEvent
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- HTMLPane
public class HTMLPane.FormActionEvent extends ActionEvent
Used byHTMLPane
to pass form-submission information to any ActionListener objects. When a form is submitted by the user, an actionPerformed() message that carries a FormActionEvent is sent to all registered action listeners. They can use the event object to get the method and action attributes of the form tag as well as the set of data provided by the form elements.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.awt.event.ActionEvent
ACTION_FIRST, ACTION_LAST, ACTION_PERFORMED, ALT_MASK, CTRL_MASK, META_MASK, SHIFT_MASK
-
Fields inherited from class java.awt.AWTEvent
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASK
-
Fields inherited from class java.util.EventObject
source
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
action()
Return the action= attribute of the <form> tagProperties
data()
Return the a set of properties representing the name=value pairs that would be sent to the server on form submission.String
method()
Return the method= attribute of the <form> tagHTMLPane
source()
Convenience method, works the same as(HTMLPane)( event.getSource() )
-
Methods inherited from class java.awt.event.ActionEvent
getActionCommand, getModifiers, getWhen, paramString
-
Methods inherited from class java.util.EventObject
getSource
-
-
-
-
Method Detail
-
method
public String method()
Return the method= attribute of the <form> tag
-
action
public String action()
Return the action= attribute of the <form> tag
-
data
public Properties data()
Return the a set of properties representing the name=value pairs that would be sent to the server on form submission.
-
source
public HTMLPane source()
Convenience method, works the same as(HTMLPane)( event.getSource() )
-
-