net.contextfw.web.application.view
Interface ViewContext


public interface ViewContext

Provides an access to child view.


Method Summary
 Class<? extends Component> getChildClass()
           
 Component initChild()
          Initializes a child component if it exists.
 void setLocale(Locale locale)
          Sets the locale to be used in the page
 

Method Detail

getChildClass

Class<? extends Component> getChildClass()
Returns:
The class of child component or null if there is no child view.

initChild

Component initChild()
Initializes a child component if it exists. Initialization does not register the component to the parent and must be made manually. Throws exception if child does not exist.

Returns:
The child component.

setLocale

void setLocale(Locale locale)
Sets the locale to be used in the page



Copyright © 2011. All Rights Reserved.