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

Quick Search    Search Deep

com.voytechs.html.component
Class FormTextField  view FormTextField download FormTextField.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.FormTextField
All Implemented Interfaces:
com.voytechs.html.event.ListenerIf, com.voytechs.html.event.TextListenerIf

public class FormTextField
extends FormComponent
implements com.voytechs.html.event.TextListenerIf

A FormTextField 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
FormTextField(java.lang.String defaultValue)
          Creates a submit button.
 
Method Summary
 void addTextListener(com.voytechs.html.event.TextListenerIf listener, java.lang.Object data)
          Add a text change listener.
 java.lang.String getValue()
          Get the text of this object.
static void main(java.lang.String[] args)
          Test function for FormTextField
 void paint(com.voytechs.html.io.HtmlWriter htmlOut)
          Output text to the HtmlWriter.
 void processEvent(com.voytechs.html.event.HtmlTextEvent 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 setValue(java.lang.String value)
          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

FormTextField

public FormTextField(java.lang.String defaultValue)
              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

setValue

public void setValue(java.lang.String value)
Set the text of the object.


getValue

public java.lang.String getValue()
Get the text of this object.


addTextListener

public void addTextListener(com.voytechs.html.event.TextListenerIf listener,
                            java.lang.Object data)
                     throws com.voytechs.html.event.EventException
Add a text change listener. Dispatched when the button is pressed on the HTML form and the text field's value changed.


processEvent

public void processEvent(com.voytechs.html.event.HtmlTextEvent 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.TextListenerIf

main

public static void main(java.lang.String[] args)
Test function for FormTextField