|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.tirsen.angkor.Component | +--com.tirsen.angkor.widget.Container
Default implementation of a component that contains other components.
Field Summary | |
protected java.util.List |
children
|
Constructor Summary | |
Container()
|
|
Container(java.lang.String id)
|
Method Summary | |
void |
add(int index,
View element)
Inserts main element at specified index. |
void |
add(View element)
Add a main element. |
protected void |
createChildren()
Overload to create any default children in subclasses. |
java.util.List |
getChildren()
|
int |
getNumberOfChildren()
|
boolean |
isChildrenCreated()
|
java.util.Iterator |
iterateAllElements()
Iterates all elements of this container, not just the main elements. |
protected static java.util.Iterator |
iterateCollection(java.util.Collection coll)
Iterates the collection even if it is null . |
protected void |
maybeCreateChildren()
|
void |
parse(RenderContext context)
When a view has registered during rendering for parsing in the RenderContext the context will call this method on the next request. |
void |
remove(Component element)
Remove a main element. |
void |
render(RenderContext context)
Render this view on the given context if the view is visible. |
void |
renderChildren(RenderContext context)
|
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 |
Field Detail |
protected java.util.List children
Constructor Detail |
public Container()
public Container(java.lang.String id)
Method Detail |
protected static java.util.Iterator iterateCollection(java.util.Collection coll)
null
.
public void renderChildren(RenderContext context) throws java.io.IOException
java.io.IOException
public java.util.List getChildren()
public int getNumberOfChildren()
public java.util.Iterator iterateAllElements()
public void add(int index, View element)
public void add(View element)
public void remove(Component element)
public void parse(RenderContext context)
View
parse
in interface View
parse
in class Component
public void render(RenderContext context) throws java.io.IOException
View
render
in interface View
render
in class Component
java.io.IOException
View.setVisible(boolean)
,
View.isVisible()
protected void createChildren()
protected void maybeCreateChildren()
public boolean isChildrenCreated()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |