|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.tirsen.angkor.AbstractViewFactory | +--com.tirsen.angkor.ViewLink
Refactor this a little bit. Maybe we need a ViewHolder that holds a named registered component from an application. We don't need this class though, it is only used internally within an application.
Constructor Summary | |
ViewLink(ViewFactory original)
|
Method Summary | |
View |
getContainer()
|
ViewFactory |
getTarget()
|
View |
getView()
Two consecutive calls may or may not return the same instance. |
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. |
void |
relink(ViewFactory target)
|
void |
render(RenderContext context)
Render this view on the given context if the view is visible. |
void |
reset()
Resets the link to it's original binding. |
void |
setContainer(View container)
|
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 ViewLink(ViewFactory original)
Method Detail |
public ViewFactory getTarget()
public void relink(ViewFactory target)
public void reset()
public View getView()
ViewFactory
getView
in interface ViewFactory
public View getContainer()
getContainer
in interface View
public void setContainer(View container)
setContainer
in interface View
public java.lang.String uniqueId(RenderContext context)
View
uniqueId
in interface View
public void render(RenderContext context) throws java.io.IOException
View
render
in interface View
java.io.IOException
View.setVisible(boolean)
,
View.isVisible()
public void parse(RenderContext context)
View
parse
in interface View
public void setVisible(boolean visible)
View
setVisible
in interface View
public boolean isVisible()
View
isVisible
in interface View
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |