Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.voytechs.html.component
Class FormSubmit  view FormSubmit download FormSubmit.java

java.lang.Object
  extended bycom.voytechs.html.component.Component
      extended bycom.voytechs.html.component.DispatchableComponent
          extended bycom.voytechs.html.component.FormComponent
              extended bycom.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.


Field Summary
 
Fields inherited from class com.voytechs.html.component.DispatchableComponent
 
Fields inherited from class com.voytechs.html.component.Component
COMPONENT_FLAG_DISPATCHABLE, COMPONENT_FLAG_FORM, COMPONENT_FLAG_INIT, COMPONENT_FLAG_SHOW, tagProperties
 
Constructor Summary
FormSubmit(java.lang.String label)
          Creates a submit button.
 
Method Summary
 void addButtonListener(com.voytechs.html.event.ButtonListenerIf listener, java.lang.Object data)
          Add a button listener.
 java.lang.String getLabel()
          Get the text of this object.
static void main(java.lang.String[] args)
          Test function for FormSubmit
 void paint(com.voytechs.html.io.HtmlWriter htmlOut)
          Output text to the HtmlWriter.
 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.
 void setLabel(java.lang.String label)
          Set the text of the object.
 
Methods inherited from class com.voytechs.html.component.DispatchableComponent
addListener, getElementId, getElementName, getElementType, init
 
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
 

Constructor Detail

FormSubmit

public FormSubmit(java.lang.String label)
           throws com.voytechs.html.event.EventException
Creates a submit button.

Method Detail

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