当前位置: 首页>>代码示例>>Java>>正文


Java TreeImpl类代码示例

本文整理汇总了Java中com.ibm.xsp.extlib.tree.impl.TreeImpl的典型用法代码示例。如果您正苦于以下问题:Java TreeImpl类的具体用法?Java TreeImpl怎么用?Java TreeImpl使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


TreeImpl类属于com.ibm.xsp.extlib.tree.impl包,在下文中一共展示了TreeImpl类的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: writeSearchBar

import com.ibm.xsp.extlib.tree.impl.TreeImpl; //导入依赖的package包/类
protected void writeSearchBar(final FacesContext context, final ResponseWriter w, final UIApplicationLayout layout, final BasicApplicationConfigurationImpl config, final SearchBar searchBar) throws IOException {
	newLine(w);
	w.startElement("div", layout);
	w.writeAttribute("class", "nav-search", null);
	w.writeAttribute("id", "nav-search", null);

	newLine(w);
	w.startElement("div", layout);
	w.writeAttribute("class", "form-search", null);

	boolean searchOptions = false;
	ITree tree = TreeImpl.get(searchBar.getOptions());
	if(tree!=null) {
		searchOptions = true;
	}
	writeSearchBox(context, w, layout, config, searchOptions, searchBar);

	newLine(w);
	w.endElement("div");
	w.writeComment("/.form-search");
	newLine(w);
	w.endElement("div");
	w.writeComment("/.nav-search");
}
 
开发者ID:jesse-gallagher,项目名称:Miscellany,代码行数:25,代码来源:AceLayoutRenderer.java

示例3: 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

示例4: writeBannerContent

import com.ibm.xsp.extlib.tree.impl.TreeImpl; //导入依赖的package包/类
@Override
protected void writeBannerContent(FacesContext context, ResponseWriter w, UIApplicationLayout c, BasicApplicationConfigurationImpl configuration) throws IOException {
    boolean hasChildren = c.getChildCount() > 0;
    ITree appLinks      = TreeImpl.get(configuration.getBannerApplicationLinks());
    ITree utilityLinks  = TreeImpl.get(configuration.getBannerUtilityLinks());
    String productLogo  = configuration.getProductLogo();
    SearchBar searchBar = configuration.getSearchBar();
    boolean bannerHasContent = hasChildren || appLinks != null || utilityLinks != null || productLogo != null || searchBar != null;
    
    if(bannerHasContent) {
        writeBannerLink(context, w, c, configuration);
    }
    
    w.startElement("div", c); // $NON-NLS-1$
    w.writeAttribute("class", ExtLibUtil.concatStyleClasses((String)getProperty(PROP_BANNER_COLLAPSE_CLASS), "collapse navbar-toggleable-sm"), null); // $NON-NLS-1$ $NON-NLS-2$
    
    writeBannerProductlogo(context, w, c, configuration);
    writeBannerApplicationLinks(context, w, c, configuration);
    writeBannerUtilityLinks(context, w, c, configuration);
    w.endElement("div"); // $NON-NLS-1$
}
 
开发者ID:OpenNTF,项目名称:XPagesExtLibX,代码行数:22,代码来源:ResponsiveAppLayoutRenderer.java

示例5: writeDropDown

import com.ibm.xsp.extlib.tree.impl.TreeImpl; //导入依赖的package包/类
protected void writeDropDown(FacesContext context, ResponseWriter w, UIWidgetContainer c) throws IOException {
    List<ITreeNode> nodes = c.getDropDownNodes();
    if(nodes!=null && !nodes.isEmpty()) {
        ITree tree = TreeImpl.get(new RootContainerTreeNode(c.getDropDownNodes()));
        if(tree!=null) {
            // TODO the non-OneUI WidgetContainerRenderer will not output dropDownNodes,
            // need to update this so its possible.
            AbstractTreeRenderer renderer = (AbstractTreeRenderer)getProperty(PROP_TREEDROPDOWN);
            if(renderer!=null) {
                renderer.render(context, c, tree, w);
            }
        }
    }
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:15,代码来源:WidgetContainerRenderer.java

示例6: 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 = (AbstractTreeRenderer)getProperty(PROP_APPLICATIONLINKSRENDERER);
        if(renderer!=null) {
            renderer.render(context, c, "al", tree, w); // $NON-NLS-1$
        }
    }
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:10,代码来源:AbstractApplicationLayoutRenderer.java

示例7: 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

示例8: 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

示例9: 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

示例10: writeFooterLinks

import com.ibm.xsp.extlib.tree.impl.TreeImpl; //导入依赖的package包/类
protected void writeFooterLinks(FacesContext context, ResponseWriter w, UIApplicationLayout c, BasicApplicationConfigurationImpl configuration) throws IOException {
    ITree tree = TreeImpl.get(configuration.getFooterLinks());
    if(tree!=null) {
        AbstractTreeRenderer renderer = (AbstractTreeRenderer)getProperty(PROP_FOOTERLINKSRENDERER);
        if(renderer!=null) {
            renderer.render(context, c, "fl", tree, w); // $NON-NLS-1$
        }
    }
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:10,代码来源:AbstractApplicationLayoutRenderer.java

示例11: writeNavbarApplicationLinks

import com.ibm.xsp.extlib.tree.impl.TreeImpl; //导入依赖的package包/类
protected void writeNavbarApplicationLinks(FacesContext context, ResponseWriter w, UIApplicationLayout c, SimpleResponsiveApplicationConfiguration configuration) throws IOException {
    ITree tree = TreeImpl.get(configuration.getNavbarAppLinks());
    if (tree != null) {
        AbstractTreeRenderer renderer = new ApplicationLinksRenderer();
        if (renderer != null) {
            renderer.render(context, c, "al", tree, w); // $NON-NLS-1$
        }
    }
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:10,代码来源:SimpleResponsiveLayoutRenderer.java

示例12: 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

示例13: 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

示例14: 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

示例15: 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 = new UtilityLinksRenderer();
        if (renderer != null) {
            renderer.render(context, c, "ul", tree, w); // $NON-NLS-1$
        }
    }
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:10,代码来源:ResponsiveAppLayoutRenderer.java


注:本文中的com.ibm.xsp.extlib.tree.impl.TreeImpl类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。