Search in sources :

Example 6 with LayoutComponent

use of com.sun.jsftemplating.layout.descriptors.LayoutComponent in project Payara by payara.

the class HelpTreeAdaptor method init.

/**
 *	<p> This method is called shortly after
 *	    {@link #getInstance(FacesContext, LayoutComponent, UIComponent)}.
 *	    It provides a place for post-creation initialization to take
 *	    occur.</p>
 */
public void init() {
    // Get the FacesContext
    FacesContext ctx = FacesContext.getCurrentInstance();
    // This is the descriptor for this dynamic TreeNode, it contains all
    // information (options) necessary for this Adaptor
    LayoutComponent desc = getLayoutComponent();
    // The parent UIComponent
    UIComponent parent = getParentUIComponent();
    // Get the TOC
    TOC toc = (TOC) desc.getEvaluatedOption(ctx, "toc", parent);
    // The following method should set the "key" to the node containing all
    // the children... the children will also have keys which must be
    // retrievable by the next method (getChildTreeNodeObjects)... these
    // "keys" will be used by the rest of the methods in this file for
    // getting information about the TreeNode that should be built.
    setTreeNodeObject(toc);
}
Also used : FacesContext(javax.faces.context.FacesContext) UIComponent(javax.faces.component.UIComponent) TOC(org.glassfish.admingui.connector.TOC) LayoutComponent(com.sun.jsftemplating.layout.descriptors.LayoutComponent)

Aggregations

LayoutComponent (com.sun.jsftemplating.layout.descriptors.LayoutComponent)6 FacesContext (javax.faces.context.FacesContext)5 UIComponent (javax.faces.component.UIComponent)4 ArrayList (java.util.ArrayList)2 HashMap (java.util.HashMap)2 List (java.util.List)2 Map (java.util.Map)2 Handler (com.sun.jsftemplating.annotation.Handler)1 ComponentUtil (com.sun.jsftemplating.component.ComponentUtil)1 LayoutViewHandler (com.sun.jsftemplating.layout.LayoutViewHandler)1 ComponentType (com.sun.jsftemplating.layout.descriptors.ComponentType)1 IOException (java.io.IOException)1 URL (java.net.URL)1 Properties (java.util.Properties)1 Index (org.glassfish.admingui.connector.Index)1 IntegrationPoint (org.glassfish.admingui.connector.IntegrationPoint)1 TOC (org.glassfish.admingui.connector.TOC)1