當前位置: 首頁>>代碼示例>>Java>>正文


Java TreeImpl.get方法代碼示例

本文整理匯總了Java中com.ibm.xsp.extlib.tree.impl.TreeImpl.get方法的典型用法代碼示例。如果您正苦於以下問題:Java TreeImpl.get方法的具體用法?Java TreeImpl.get怎麽用?Java TreeImpl.get使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.ibm.xsp.extlib.tree.impl.TreeImpl的用法示例。


在下文中一共展示了TreeImpl.get方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: writeBannerUtilityLinks

import com.ibm.xsp.extlib.tree.impl.TreeImpl; //導入方法依賴的package包/類
protected void writeBannerUtilityLinks(final FacesContext context, final ResponseWriter w, final UIApplicationLayout layout, final BasicApplicationConfigurationImpl config) throws IOException {
	ITree tree = TreeImpl.get(config.getBannerUtilityLinks());
	if(tree != null) {
		newLine(w);
		w.startElement("div", layout);
		w.writeAttribute("class", "navbar-buttons navbar-header pull-right", null);
		w.writeAttribute("role", "navigation", null);

		newLine(w);
		AbstractTreeRenderer renderer = new AceApplicationLinksRenderer();
		renderer.render(context, layout, "al", tree, w);

		newLine(w);
		w.endElement("div");
		w.writeComment("/.navbar-header.pull-right");
	}
}
 
開發者ID:jesse-gallagher,項目名稱:Miscellany,代碼行數:18,代碼來源:AceLayoutRenderer.java

示例2: writeTitleBarTabsArea

import com.ibm.xsp.extlib.tree.impl.TreeImpl; //導入方法依賴的package包/類
protected void writeTitleBarTabsArea(FacesContext context, ResponseWriter w, UIApplicationLayout c, BasicApplicationConfigurationImpl configuration) throws IOException {
    ITree tree = TreeImpl.get(configuration.getTitleBarTabs());
    if (tree != null) {
        AbstractTreeRenderer renderer = new TitleBarTabsRenderer();
        if (renderer != null) {
            //Write containing div
            w.startElement((String)getProperty(PROP_TITLEBARNAVTAG), c);
            w.writeAttribute("class", (String)getProperty(PROP_TITLEBARNAVCLASS), null); // $NON-NLS-1$
            
            String titleBarNavAriaLabel = (String)getProperty(PROP_TITLEBARNAVARIALABEL);
            if( StringUtil.isNotEmpty(titleBarNavAriaLabel) ){
                w.writeAttribute("aria-label", titleBarNavAriaLabel, null); // $NON-NLS-1$
            }
            String titleBarNavRole = (String)getProperty(PROP_TITLEBARNAVROLE);
            if( StringUtil.isNotEmpty(titleBarNavRole) ){
                w.writeAttribute("role", titleBarNavRole, null); // $NON-NLS-1$
            }
            // Write the tabs
            writeTitleBarTabs(context, w, c, configuration, tree, renderer);
            w.endElement((String)getProperty(PROP_TITLEBARNAVTAG));
        }
    }
}
 
開發者ID:OpenNTF,項目名稱:XPagesExtensionLibrary,代碼行數:24,代碼來源:ResponsiveAppLayoutRenderer.java

示例3: writePlaceBarActions

import com.ibm.xsp.extlib.tree.impl.TreeImpl; //導入方法依賴的package包/類
@Override
protected void writePlaceBarActions(FacesContext context, ResponseWriter w, UIApplicationLayout c, BasicApplicationConfigurationImpl configuration) throws IOException {
    ITree tree = TreeImpl.get(configuration.getPlaceBarActions());
    if (tree != null) {
        AbstractTreeRenderer renderer = new PlaceBarActionsRenderer();
        if (renderer != null) {
            renderer.render(context, c, "pb", tree, w); // $NON-NLS-1$
        }
    }
}
 
開發者ID:OpenNTF,項目名稱:XPagesExtLibX,代碼行數:11,代碼來源:ResponsiveAppLayoutRenderer.java

示例4: writeSearchBar

import com.ibm.xsp.extlib.tree.impl.TreeImpl; //導入方法依賴的package包/類
@Override
protected void writeSearchBar(FacesContext context, ResponseWriter w, UIApplicationLayout c, SimpleResponsiveApplicationConfiguration configuration) throws IOException {
    UIComponent cSearchBar = c.getSearchBar();
    if (!isEmptyComponent(cSearchBar)) {
        w.startElement("div", c); // $NON-NLS-1$
        w.writeAttribute("class","form-inline navbar-form pull-xs-right applayout-searchbar",null); // $NON-NLS-1$ $NON-NLS-2$
        w.writeAttribute("role", "search", null); // $NON-NLS-1$ $NON-NLS-2$
        FacesUtil.renderComponent(context, cSearchBar);
        w.endElement("div"); // $NON-NLS-1$
        return;
    }

    SearchBar searchBar = configuration.getSearchBar();
    if (searchBar != null && searchBar.isRendered()) {
        w.startElement("div", c); // $NON-NLS-1$
        w.writeAttribute("class","form-inline navbar-form pull-xs-right applayout-searchbar",null); // $NON-NLS-1$ $NON-NLS-2$
        w.writeAttribute("role", "search", null); // $NON-NLS-1$ $NON-NLS-2$
        
        w.startElement("div", c); // $NON-NLS-1$
        w.writeAttribute("class","input-group",null); // $NON-NLS-1$ $NON-NLS-2$
        
        boolean searchOptions = false;
        ITree tree = TreeImpl.get(searchBar.getOptions());
        if (tree != null) {
            searchOptions = true;
        }

        // Write the search options
        if (searchOptions) {
            writeSearchOptions(context, w, c, configuration, searchBar, tree);
        }
        
        // Write the search box
        writeSearchBox(context, w, c, configuration, searchBar, tree, searchOptions);
        writeSearchButton(context, w, c, configuration, searchBar, tree, searchOptions);

        w.endElement("div"); // $NON-NLS-1$
        w.endElement("div"); // $NON-NLS-1$
    }
}
 
開發者ID:OpenNTF,項目名稱:XPagesExtLibX,代碼行數:41,代碼來源:SimpleResponsiveLayoutRenderer.java

示例5: writeBannerUtilityLinks

import com.ibm.xsp.extlib.tree.impl.TreeImpl; //導入方法依賴的package包/類
@Override
protected void writeBannerUtilityLinks(FacesContext context, ResponseWriter w, UIApplicationLayout c, BasicApplicationConfigurationImpl configuration) throws IOException {
    ITree tree = TreeImpl.get(configuration.getBannerUtilityLinks());
    if (tree != null) {
        AbstractTreeRenderer renderer = new UtilityLinksRenderer();
        if (renderer != null) {
            renderer.render(context, c, "ul", tree, w); // $NON-NLS-1$
        }
    }
}
 
開發者ID:OpenNTF,項目名稱:XPagesExtLibX,代碼行數:11,代碼來源:ResponsiveAppLayoutRenderer.java

示例6: writeBannerUtilityLinks

import com.ibm.xsp.extlib.tree.impl.TreeImpl; //導入方法依賴的package包/類
protected void writeBannerUtilityLinks(FacesContext context, ResponseWriter w, UIApplicationLayout c, BasicApplicationConfigurationImpl configuration) throws IOException {
    ITree tree = TreeImpl.get(configuration.getBannerUtilityLinks());
    if(tree!=null) {
        AbstractTreeRenderer renderer = (AbstractTreeRenderer)getProperty(PROP_UTILITYLINKSRENDERER);
        if(renderer!=null) {
            renderer.render(context, c, "ul", tree, w); // $NON-NLS-1$
        }
    }
}
 
開發者ID:OpenNTF,項目名稱:XPagesExtensionLibrary,代碼行數:10,代碼來源:AbstractApplicationLayoutRenderer.java

示例7: writeTitleBarTabs

import com.ibm.xsp.extlib.tree.impl.TreeImpl; //導入方法依賴的package包/類
protected void writeTitleBarTabs(FacesContext context, ResponseWriter w, UIApplicationLayout c, BasicApplicationConfigurationImpl configuration) throws IOException {
    ITree tree = TreeImpl.get(configuration.getTitleBarTabs());
    if(tree!=null) {
        AbstractTreeRenderer renderer = (AbstractTreeRenderer)getProperty(PROP_TITLEBARLINKSRENDERER);
        if(renderer!=null) {
            renderer.render(context, c, "tb", tree, w); // $NON-NLS-1$
        }
    }
}
 
開發者ID:OpenNTF,項目名稱:XPagesExtensionLibrary,代碼行數:10,代碼來源:AbstractApplicationLayoutRenderer.java

示例8: writePlaceBarActions

import com.ibm.xsp.extlib.tree.impl.TreeImpl; //導入方法依賴的package包/類
protected void writePlaceBarActions(FacesContext context, ResponseWriter w, UIApplicationLayout c, BasicApplicationConfigurationImpl configuration) throws IOException {
    ITree tree = TreeImpl.get(configuration.getPlaceBarActions());
    if(tree!=null) {
        AbstractTreeRenderer renderer = (AbstractTreeRenderer)getProperty(PROP_PLACEBARLINKSRENDERER);
        if(renderer!=null) {
            renderer.render(context, c, "pb", tree, w); // $NON-NLS-1$
        }
    }
}
 
開發者ID:OpenNTF,項目名稱:XPagesExtensionLibrary,代碼行數:10,代碼來源:AbstractApplicationLayoutRenderer.java

示例9: writeFooterLinks

import com.ibm.xsp.extlib.tree.impl.TreeImpl; //導入方法依賴的package包/類
@Override
protected void writeFooterLinks(FacesContext context, ResponseWriter w, UIApplicationLayout c, BasicApplicationConfigurationImpl configuration) throws IOException {
    ITree tree = TreeImpl.get(configuration.getFooterLinks());
    if (tree != null) {
        AbstractTreeRenderer renderer = new FooterLinksRenderer();
        if (renderer != null) {
            renderer.render(context, c, "fl", tree, w); // $NON-NLS-1$
        }
    }
}
 
開發者ID:OpenNTF,項目名稱:XPagesExtLibX,代碼行數:11,代碼來源:ResponsiveAppLayoutRenderer.java

示例10: writeTitleBarTabsArea

import com.ibm.xsp.extlib.tree.impl.TreeImpl; //導入方法依賴的package包/類
@Override
protected void writeTitleBarTabsArea(FacesContext context, ResponseWriter w, UIApplicationLayout c, BasicApplicationConfigurationImpl configuration) throws IOException {
    ITree tree = TreeImpl.get(configuration.getTitleBarTabs());
    if (tree != null) {
        AbstractTreeRenderer renderer = new TitleBarTabsRenderer();
        if (renderer != null) {
            //Write containing div
            w.startElement("div", c); // $NON-NLS-1$
            w.writeAttribute("class", "applayout-titlebar-tabsarea", null); // $NON-NLS-1$ $NON-NLS-2$
            // Write the tabs
            writeTitleBarTabs(context, w, c, configuration, tree, renderer);
            w.endElement("div"); // $NON-NLS-1$
        }
    }
}
 
開發者ID:OpenNTF,項目名稱:XPagesExtLibX,代碼行數:16,代碼來源:ResponsiveAppLayoutRenderer.java

示例11: writeNavbarUtilityLinks

import com.ibm.xsp.extlib.tree.impl.TreeImpl; //導入方法依賴的package包/類
protected void writeNavbarUtilityLinks(FacesContext context, ResponseWriter w, UIApplicationLayout c, SimpleResponsiveApplicationConfiguration configuration) throws IOException {
    ITree tree = TreeImpl.get(configuration.getNavbarUtilityLinks());
    if (tree != null) {
        AbstractTreeRenderer renderer = new UtilityLinksRenderer();
        if (renderer != null) {
            renderer.render(context, c, "ul", tree, w); // $NON-NLS-1$
        }
    }
}
 
開發者ID:OpenNTF,項目名稱:XPagesExtensionLibrary,代碼行數:10,代碼來源:SimpleResponsiveLayoutRenderer.java

示例12: writeBannerContent

import com.ibm.xsp.extlib.tree.impl.TreeImpl; //導入方法依賴的package包/類
protected void writeBannerContent(FacesContext context, ResponseWriter w, UIApplicationLayout c, BasicApplicationConfigurationImpl configuration) throws IOException {
    if (DEBUG) {
        w.writeComment("Start Banner"); // $NON-NLS-1$
        newLine(w);
    }

    boolean hasChildren = c.getChildCount() > 0;
    ITree appLinks      = TreeImpl.get(configuration.getBannerApplicationLinks());
    ITree utilityLinks  = TreeImpl.get(configuration.getBannerUtilityLinks());
    boolean bannerHasContent = hasChildren || appLinks != null || utilityLinks != null;
    
    w.startElement("div", c); // $NON-NLS-1$
    w.writeAttribute("class", "navbar-header", null);       // $NON-NLS-1$ $NON-NLS-2$
    
    if(bannerHasContent) {
        writeBannerLink(context, w, c, configuration);
    }
    newLine(w);
    writeBannerProductlogo(context, w, c, configuration);
    
    w.endElement("div"); // $NON-NLS-1$
    
    w.startElement("div", c); // $NON-NLS-1$
    w.writeAttribute("class",  ExtLibUtil.concatStyleClasses((String)getProperty(PROP_BANNER_COLLAPSE_CLASS), "navbar-collapse collapse"), null); // $NON-NLS-1$ $NON-NLS-2$
    newLine(w);
    
    writeBannerApplicationLinks(context, w, c, configuration);
    newLine(w);
    writeBannerUtilityLinks(context, w, c, configuration);
    newLine(w);
    
    w.endElement("div"); // $NON-NLS-1$
    newLine(w, ""); // $NON-NLS-1$
    
    if (DEBUG) {
        w.writeComment("End Banner"); // $NON-NLS-1$
        newLine(w);
    }
}
 
開發者ID:OpenNTF,項目名稱:XPagesExtensionLibrary,代碼行數:40,代碼來源:ResponsiveAppLayoutRenderer.java

示例13: writeBannerApplicationLinks

import com.ibm.xsp.extlib.tree.impl.TreeImpl; //導入方法依賴的package包/類
protected void writeBannerApplicationLinks(FacesContext context, ResponseWriter w, UIApplicationLayout c, BasicApplicationConfigurationImpl configuration) throws IOException {
    ITree tree = TreeImpl.get(configuration.getBannerApplicationLinks());
    if (tree != null) {
        AbstractTreeRenderer renderer = new ApplicationLinksRenderer();
        if (renderer != null) {
            renderer.render(context, c, "al", tree, w); // $NON-NLS-1$
        }
    }
}
 
開發者ID:OpenNTF,項目名稱:XPagesExtensionLibrary,代碼行數:10,代碼來源:ResponsiveAppLayoutRenderer.java

示例14: writeNavbarUtilityLinks

import com.ibm.xsp.extlib.tree.impl.TreeImpl; //導入方法依賴的package包/類
@Override
protected void writeNavbarUtilityLinks(FacesContext context, ResponseWriter w, UIApplicationLayout c, SimpleResponsiveApplicationConfiguration configuration) throws IOException {
    ITree tree = TreeImpl.get(configuration.getNavbarUtilityLinks());
    if (tree != null) {
        AbstractTreeRenderer renderer = new NavbarLinksRenderer(NavbarLinksRenderer.POSITION_RIGHT);
        if (renderer != null) {
            renderer.render(context, c, "ul", tree, w); // $NON-NLS-1$
        }
    }
}
 
開發者ID:OpenNTF,項目名稱:XPagesExtLibX,代碼行數:11,代碼來源:SimpleResponsiveLayoutRenderer.java

示例15: writeSearchBar

import com.ibm.xsp.extlib.tree.impl.TreeImpl; //導入方法依賴的package包/類
@Override
protected void writeSearchBar(FacesContext context, ResponseWriter w, UIApplicationLayout c, BasicApplicationConfigurationImpl configuration) throws IOException {
    UIComponent cSearchBar = c.getSearchBar();
    if (!isEmptyComponent(cSearchBar)) {
        w.startElement("div", c); // $NON-NLS-1$
        w.writeAttribute("class","form-inline navbar-form pull-right applayout-searchbar",null); // $NON-NLS-1$ $NON-NLS-2$
        w.writeAttribute("role", "search", null); // $NON-NLS-1$ $NON-NLS-2$
        FacesUtil.renderComponent(context, cSearchBar);
        w.endElement("div"); // $NON-NLS-1$
        return;
    }

    SearchBar searchBar = configuration.getSearchBar();
    if (searchBar != null && searchBar.isRendered()) {
        w.startElement("div", c); // $NON-NLS-1$
        w.writeAttribute("class","form-inline navbar-form pull-right applayout-searchbar",null); // $NON-NLS-1$ $NON-NLS-2$
        w.writeAttribute("role", "search", null); // $NON-NLS-1$ $NON-NLS-2$

        w.startElement("div", c); // $NON-NLS-1$
        w.writeAttribute("class","input-group",null); // $NON-NLS-1$ $NON-NLS-2$
      
        boolean searchOptions = false;
        ITree tree = TreeImpl.get(searchBar.getOptions());
        if (tree != null) {
            searchOptions = true;
        }

        // Write the search options
        if (searchOptions) {
            writeSearchOptions(context, w, c, configuration, searchBar, tree);
        }
        
        // Write the search box
        writeSearchBox(context, w, c, configuration, searchBar, tree, searchOptions);
        writeSearchButton(context, w, c, configuration, searchBar, tree, searchOptions);
        
        w.endElement("div"); // $NON-NLS-1$
        w.endElement("div"); // $NON-NLS-1$
    }
}
 
開發者ID:OpenNTF,項目名稱:XPagesExtLibX,代碼行數:41,代碼來源:ResponsiveAppLayoutRenderer.java


注:本文中的com.ibm.xsp.extlib.tree.impl.TreeImpl.get方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。