Package org.zkoss.stateless.ui
Interface StatelessRichlet
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voiddestroy()Called by the richlet container to indicate to a richlet that the richlet is being taken out of service.default LanguageDefinitiongetLanguageDefinition()Returns the default language definition that this richlet belongs to.default voidinit(RichletConfig richletConfig)Called by the richlet container to indicate to a richlet that the richlet is being placed into service.default voidservice(Page page)Called by the richlet container to create components when the specified page is visited and created.
-
-
-
Method Detail
-
init
default void init(RichletConfig richletConfig)
Description copied from interface:RichletCalled by the richlet container to indicate to a richlet that the richlet is being placed into service.
-
destroy
default void destroy()
Description copied from interface:RichletCalled by the richlet container to indicate to a richlet that the richlet is being taken out of service.
-
service
default void service(Page page) throws java.lang.Exception
Description copied from interface:RichletCalled by the richlet container to create components when the specified page is visited and created.
-
getLanguageDefinition
default LanguageDefinition getLanguageDefinition()
Description copied from interface:RichletReturns the default language definition that this richlet belongs to. Don't return null.The default language definition is used to initialize a page when the page is created to be served by this richlet. Note: you can use components from different languages as long as they belong to the same device type (
LanguageDefinition.getDeviceType().The default language definition controls the URIs used to render a desktop and a page, and the initial zscript codes used to initialize the interpreter (of a page).
For example, you can return
LanguageDefinition.lookup("xul/html");- Specified by:
getLanguageDefinitionin interfaceRichlet
-
-