java.lang.Object
com.voytechs.html.component.Component
com.voytechs.html.component.DispatchableComponent
com.voytechs.html.component.FormComponent
com.voytechs.html.component.FormSubmit
- All Implemented Interfaces:
- com.voytechs.html.event.ButtonListenerIf, com.voytechs.html.event.ListenerIf
- public class FormSubmit
- extends FormComponent
- implements com.voytechs.html.event.ButtonListenerIf
A FormSubmit button.
| Methods inherited from class com.voytechs.html.component.Component |
areFlagsSet, clearFlags, getParent, getRootFrame, getUriPath, setFlags, setParent, show, show, toStringPrefix, toStringPrefixCap, toStringPrefixTee, toStringTree |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FormSubmit
public FormSubmit(java.lang.String label)
throws com.voytechs.html.event.EventException
- Creates a submit button.
paint
public void paint(com.voytechs.html.io.HtmlWriter htmlOut)
throws java.io.IOException
- Output text to the HtmlWriter.
- Specified by:
paint in class Component
setLabel
public void setLabel(java.lang.String label)
- Set the text of the object.
getLabel
public java.lang.String getLabel()
- Get the text of this object.
addButtonListener
public void addButtonListener(com.voytechs.html.event.ButtonListenerIf listener,
java.lang.Object data)
throws com.voytechs.html.event.EventException
- Add a button listener. Dispatched when the button is pressed on the HTML form.
processEvent
public void processEvent(com.voytechs.html.event.HtmlButtonEvent event,
java.lang.Object userData)
- We listen to our own events so that we can update our state to match that
on the HTML form.
- Specified by:
processEvent in interface com.voytechs.html.event.ButtonListenerIf
main
public static void main(java.lang.String[] args)
- Test function for FormSubmit