java.lang.Object
com.voytechs.html.component.Component
com.voytechs.html.component.DispatchableComponent
- Direct Known Subclasses:
- FormComponent, LinkComponent
- public abstract class DispatchableComponent
- extends Component
Base class for all form elements.
| 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 |
broker
private com.voytechs.html.event.HtmlDispatcherBroker broker
DispatchableComponent
public DispatchableComponent(int componentType)
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