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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.voytechs.html.component.Component
      extended bycom.voytechs.html.component.TableComponent
Direct Known Subclasses:
TableCaption, TableColumnHeader, TableData

public abstract class TableComponent
extends Component

Base class for all form elements.


Field Summary
private  Component child
          A single child component.
 
Fields inherited from class com.voytechs.html.component.Component
COMPONENT_FLAG_DISPATCHABLE, COMPONENT_FLAG_FORM, COMPONENT_FLAG_INIT, COMPONENT_FLAG_SHOW, tagProperties
 
Constructor Summary
TableComponent()
           
 
Method Summary
protected  void addChild(Component child)
          Add a child component to the list of children to manage.
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 TableComponent
protected  void paint(com.voytechs.html.io.HtmlWriter htmlOut)
          Calls the paint method for all is children components.
protected  void paintChild(com.voytechs.html.io.HtmlWriter htmlOut)
          Calls the paint method for all its children conponents.
 java.lang.String toStringTree(java.lang.String prefix)
          A debuging function to print out the component tree.
 
Methods inherited from class com.voytechs.html.component.Component
areFlagsSet, clearFlags, getParent, getRootFrame, getUriPath, setFlags, setParent, show, show, toStringPrefix, toStringPrefixCap, toStringPrefixTee
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

child

private Component child
A single child component. Ignored if null.

Constructor Detail

TableComponent

public TableComponent()
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

addChild

protected void addChild(Component child)
Add a child component to the list of children to manage. Components are displayed in the order they were added.


paint

protected void paint(com.voytechs.html.io.HtmlWriter htmlOut)
              throws java.io.IOException
Calls the paint method for all is children components.

Specified by:
paint in class Component

paintChild

protected void paintChild(com.voytechs.html.io.HtmlWriter htmlOut)
                   throws java.io.IOException
Calls the paint method for all its children conponents.


toStringTree

public java.lang.String toStringTree(java.lang.String prefix)
A debuging function to print out the component tree.

Overrides:
toStringTree in class Component

main

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