Class ListCategoryPosts

    • Constructor Detail

      • ListCategoryPosts

        public ListCategoryPosts​(Category cat)
    • Method Detail

      • handle

        public void handle​(Page page,
                           TemplateContext local,
                           TemplateContext global)
        Description copied from class: Component
        Provides the necessary info needed to render the component on a given page and context.
        Specified by:
        handle in class Component
        Parameters:
        page - the page where the component will be rendered.
        local - local context for the component.
        global - global context where the component is being rendered.
      • json

        public com.google.gson.JsonObject json()
        Specified by:
        json in class Component
      • getName

        public String getName()
        Overrides:
        getName in class Component
        Returns:
        the name of the component.
      • getPage

        public Page getPage()