|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.tirsen.angkor.Component
The default implementation of the View interface, implements a set of functionality usable by most widgets in Angkor. These needs to be serializable to support being serialized in the session while being referenced as parsing components.
Constructor Summary | |
Component()
Create with generated ID. |
|
Component(java.lang.String id)
Render with specified ID. |
Method Summary | |
void |
allocateUniqueId(RenderContext context)
Forces this component to allocate a unique id. |
java.lang.Object |
getAttribute(java.lang.String name)
|
View |
getContainer()
|
java.lang.String |
getId()
|
protected RenderContext |
getRenderContext()
|
int |
getVisibleIndex()
Returns which index this has of all visible elements of this container. |
boolean |
isDebugTables()
|
boolean |
isParsing()
|
boolean |
isVisible()
Check whether this view is visible or not. |
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. |
abstract void |
render(RenderContext context)
Render this view on the given context if the view is visible. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Set an attribute which can be used by for example event-listeners to acquire more information about the event. |
void |
setContainer(View container)
|
void |
setId(java.lang.String id)
Sets a custom id to be used instead of a generated one. |
void |
setVisible(boolean visible)
Specify whether this view is visible or not. |
java.lang.String |
uniqueId(RenderContext context)
The unique id is unique over an application instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Component(java.lang.String id)
public Component()
Method Detail |
public View getContainer()
getContainer
in interface View
public void setContainer(View container)
setContainer
in interface View
public abstract void render(RenderContext context) throws java.io.IOException
View
render
in interface View
java.io.IOException
View.setVisible(boolean)
,
View.isVisible()
public void setAttribute(java.lang.String name, java.lang.Object value)
public java.lang.Object getAttribute(java.lang.String name)
public java.lang.String uniqueId(RenderContext context)
getId()
instead.
View
uniqueId
in interface View
context
-
public void setId(java.lang.String id)
public void allocateUniqueId(RenderContext context)
public java.lang.String getId()
public void setVisible(boolean visible)
View
setVisible
in interface View
public boolean isVisible()
View
isVisible
in interface View
public boolean isParsing()
public void parse(RenderContext context)
View
parse
in interface View
public int getVisibleIndex()
public boolean isDebugTables()
protected RenderContext getRenderContext()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |