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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.voytechs.html.component.Component
      extended bycom.voytechs.html.component.DispatchableComponent
Direct Known Subclasses:
FormComponent, LinkComponent

public abstract class DispatchableComponent
extends Component

Base class for all form elements.


Field Summary
private  com.voytechs.html.event.HtmlDispatcherBroker broker
           
 
Fields inherited from class com.voytechs.html.component.Component
COMPONENT_FLAG_DISPATCHABLE, COMPONENT_FLAG_FORM, COMPONENT_FLAG_INIT, COMPONENT_FLAG_SHOW, tagProperties
 
Constructor Summary
DispatchableComponent(int componentType)
           
 
Method Summary
protected  void addListener(com.voytechs.html.event.ListenerRequest request)
          Add listener.
 int getElementId()
          Get event ID
protected  java.lang.String getElementName()
          Get the uniq name of the component.
 int getElementType()
          Get eventType.
protected  void init(Frame root, com.voytechs.html.event.HtmlDispatcher dispatcher)
          Function that initializes the object relationships.
static void main(java.lang.String[] args)
          Test function for DispatchableComponent
 
Methods inherited from class com.voytechs.html.component.Component
areFlagsSet, clearFlags, getParent, getRootFrame, getUriPath, paint, 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
 

Field Detail

broker

private com.voytechs.html.event.HtmlDispatcherBroker broker
Constructor Detail

DispatchableComponent

public DispatchableComponent(int componentType)
Method Detail

init

protected void init(Frame root,
                    com.voytechs.html.event.HtmlDispatcher dispatcher)
             throws com.voytechs.html.event.EventException
Function that initializes the object relationships. Late bindings, adding delayed listeners, etc. Called after the full component tree is built.

Overrides:
init in class Component

addListener

protected void addListener(com.voytechs.html.event.ListenerRequest request)
                    throws com.voytechs.html.event.EventException
Add listener. Can add listeners only after the init method is called which means that all of the bindings to the dispatcher have already occured and we can safely register our listener.


getElementName

protected java.lang.String getElementName()
Get the uniq name of the component.


getElementId

public int getElementId()
                 throws com.voytechs.html.event.EventException
Get event ID


getElementType

public int getElementType()
Get eventType.


main

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