|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The view context is what the echo controller interacts with to locate and manipulate individual echo view components. ViewContexts can be arranged into a hierarchy, depending on the needs of the application.
Method Summary | |
void |
delete()
Delete (disassociate) this ViewContext from its parent. |
nextapp.echo.Component |
getComponent(java.lang.String name)
Returns the first component bound to a given name in this context. |
java.util.List |
getComponents(java.lang.String name)
Returns a read-only list of all Components bound to this ViewContext with the given name |
ViewContext |
getParentContext()
|
nextapp.echo.Component |
getRootComponent()
Each ViewContext is represented by a single root component |
ViewContext |
getSubContext(java.lang.String name)
Returns the first ViewContext with a given name to exist in this ViewContext |
java.util.List |
getSubContexts(java.lang.String name)
Returns a read-only List of all ViewContexts with a given name |
View |
getView()
|
ViewContext |
instantiateModelContext(java.lang.String name)
Instantiate a new model context and add it to the view. |
java.util.Set |
listComponents()
|
java.util.Set |
listModelContexts()
|
java.util.Set |
listSubContexts()
|
Method Detail |
public ViewContext instantiateModelContext(java.lang.String name)
name
-
public void delete()
ViewException
- if the operation is not allowedpublic ViewContext getSubContext(java.lang.String name)
name
-
ViewNotFoundException
- if the sub context does not existpublic java.util.List getSubContexts(java.lang.String name)
name
-
public nextapp.echo.Component getComponent(java.lang.String name)
name
-
ViewNotFoundException
- if the component does not existpublic java.util.List getComponents(java.lang.String name)
name
-
public java.util.Set listComponents()
public java.util.Set listSubContexts()
public java.util.Set listModelContexts()
public ViewContext getParentContext()
public View getView()
public nextapp.echo.Component getRootComponent()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |