Class GenericRichlet

java.lang.Object
org.zkoss.zk.ui.GenericRichlet
All Implemented Interfaces:
Richlet

public abstract class GenericRichlet extends Object implements Richlet
Defines a generic richlet. Developers can use it as a skeleton to implement an application-specific richlet.
Author:
tomyeh
  • Constructor Details

    • GenericRichlet

      public GenericRichlet()
  • Method Details

    • init

      public void init(RichletConfig config)
      Called by the richlet container to indicate to a richlet that the richlet is being placed into service.

      Default: does nothing.

      Specified by:
      init in interface Richlet
    • destroy

      public void destroy()
      Called by the richlet container to indicate to a richlet that the richlet is being taken out of service.

      Default: does nothing.

      Specified by:
      destroy in interface Richlet
    • getLanguageDefinition

      public LanguageDefinition getLanguageDefinition()
      Returns the language definition that this richlet belongs to. Don't return null.

      It is called when creating a new page for this richlet to serve.

      Default: return the language definition called "xul/html".

      Specified by:
      getLanguageDefinition in interface Richlet