com.tirsen.angkor.widget
Class Section

java.lang.Object
  |
  +--com.tirsen.angkor.Component
        |
        +--com.tirsen.angkor.widget.Container
              |
              +--com.tirsen.angkor.widget.Section
All Implemented Interfaces:
java.io.Serializable, View

public class Section
extends Container

Version:
$Revision: 1.5 $
Author:
Jon Tirsén (tirsen@users.sourceforge.net)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.tirsen.angkor.widget.Container
children
 
Constructor Summary
Section()
           
Section(SectionLine line)
           
Section(java.lang.String headerLabel)
           
 
Method Summary
 void add(int index, View element)
          Can only add Sections or SectionLines to a Section, if you try to add anything else it a SectionLine will be instantiated for it.
 void add(java.lang.String text)
          Adds a TextLabel as a string to this section on its own line.
 java.lang.String getHeaderLabel()
           
 int getSectionDepth()
           
 void render(RenderContext context)
          Render this view on the given context if the view is visible.
 void setHeaderLabel(java.lang.String headerLabel)
           
 
Methods inherited from class com.tirsen.angkor.widget.Container
add, createChildren, getChildren, getNumberOfChildren, isChildrenCreated, iterateAllElements, iterateCollection, maybeCreateChildren, parse, remove, renderChildren
 
Methods inherited from class com.tirsen.angkor.Component
allocateUniqueId, getAttribute, getContainer, getId, getRenderContext, getVisibleIndex, isDebugTables, isParsing, isVisible, setAttribute, setContainer, setId, setVisible, uniqueId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Section

public Section()

Section

public Section(java.lang.String headerLabel)

Section

public Section(SectionLine line)
Method Detail

getHeaderLabel

public java.lang.String getHeaderLabel()

setHeaderLabel

public void setHeaderLabel(java.lang.String headerLabel)

add

public void add(int index,
                View element)
Can only add Sections or SectionLines to a Section, if you try to add anything else it a SectionLine will be instantiated for it.

Overrides:
add in class Container

add

public void add(java.lang.String text)
Adds a TextLabel as a string to this section on its own line.


getSectionDepth

public int getSectionDepth()

render

public void render(RenderContext context)
            throws java.io.IOException
Description copied from interface: View
Render this view on the given context if the view is visible. Performed during render-phase.

Specified by:
render in interface View
Overrides:
render in class Container
java.io.IOException
See Also:
View.setVisible(boolean), View.isVisible()


Copyright © 2002-2002 . All Rights Reserved.