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


Java BasicApplicationConfigurationImpl.isTitleBar方法代码示例

本文整理汇总了Java中com.ibm.xsp.extlib.component.layout.impl.BasicApplicationConfigurationImpl.isTitleBar方法的典型用法代码示例。如果您正苦于以下问题:Java BasicApplicationConfigurationImpl.isTitleBar方法的具体用法?Java BasicApplicationConfigurationImpl.isTitleBar怎么用?Java BasicApplicationConfigurationImpl.isTitleBar使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.ibm.xsp.extlib.component.layout.impl.BasicApplicationConfigurationImpl的用法示例。


在下文中一共展示了BasicApplicationConfigurationImpl.isTitleBar方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: writeMainFrame

import com.ibm.xsp.extlib.component.layout.impl.BasicApplicationConfigurationImpl; //导入方法依赖的package包/类
protected void writeMainFrame(final FacesContext context, final ResponseWriter w, final UIApplicationLayout layout, final BasicApplicationConfigurationImpl config) throws IOException {
	if(config != null && config.isMastHeader()) {
		writeMastHeader(context, w, layout, config);
	}

	// The banner (top nav bar) goes outside the main container
	if(config != null && config.isBanner()) {
		writeBanner(context, w, layout, config);
	}

	// Start main container
	newLine(w);
	w.startElement("div", layout);
	w.writeAttribute("class", "main-container", null);
	if(HtmlUtil.isUserId(layout.getId())) {
		w.writeAttribute("id", layout.getClientId(context), null);
	}
	newLine(w);

	if(config != null) {
		writeLeftColumn(context, w, layout, config);

		// Start main content
		newLine(w);
		w.startElement("div", layout);
		w.writeAttribute("class", "main-content", null);

		writeBreadCrumbBar(context, w, layout, config);

		// Start page content
		newLine(w);
		w.startElement("div", layout);
		w.writeAttribute("class", "page-content", null);

		// The title bar and place bar are cojoined
		if(config.isTitleBar() || config.isPlaceBar()) {
			writeTitleBar(context, w, layout, config);
		}

		writeMainContent(context, w, layout, config);


		// End page content
		newLine(w);
		w.endElement("div");
		w.writeComment("/.page-content");

		// End main content
		newLine(w);
		w.endElement("div");
		w.writeComment("/.main-content");

		writeFooter(context, w, layout, config);
	}

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

示例2: writeMainFrame

import com.ibm.xsp.extlib.component.layout.impl.BasicApplicationConfigurationImpl; //导入方法依赖的package包/类
protected void writeMainFrame(FacesContext context, ResponseWriter w, UIApplicationLayout c, BasicApplicationConfigurationImpl configuration) throws IOException {

        // Start the mast header
        if(null != configuration && configuration.isMastHeader()){
            writeMastHeader(context, w, c, configuration);
        }
        
        // Start the main frame
        String tag = (String)getProperty(PROP_MAINFRAMETAG);
        w.startElement(tag,c);

        String style = (String)getProperty(PROP_MAINFRAMESTYLE);
        if(StringUtil.isNotEmpty(style)) {
            w.writeAttribute("style",style,null); // $NON-NLS-1$
        }
        String styleClass = (String)getProperty(PROP_MAINFRAMECLASS);
        if(StringUtil.isNotEmpty(styleClass)) {
            w.writeAttribute("class",styleClass,null); // $NON-NLS-1$
        }
        if( HtmlUtil.isUserId(c.getId()) ){
            w.writeAttribute("id",c.getClientId(context),null); // $NON-NLS-1$
        }
        newLine(w);
        
        if(configuration!=null) {
            
            // Start the banner
            if(configuration.isBanner()) {
                writeBanner(context, w, c, configuration);
            }
            
            // Start the title bar
            if(configuration.isTitleBar()) {
                writeTitleBar(context, w, c, configuration);
            }
            
            // Start the place bar
            if(configuration.isPlaceBar()) {
                writePlaceBar(context, w, c, configuration);
            }
            
            // Start the main content
            writeMainContent(context, w, c, configuration);
            
            // Start the footer
            if(configuration.isFooter()) {
                writeFooter(context, w, c, configuration);
            }
            
            // Start the legal
            if(configuration.isLegal()) {
                writeLegal(context, w, c, configuration);
            }
        }
        
        // Close the main frame
        w.endElement(tag); newLine(w);
        
        // Start the mast footer
        if(null != configuration && configuration.isMastFooter()){
            writeMastFooter(context, w, c, configuration);
        }
    }
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:64,代码来源:AbstractApplicationLayoutRenderer.java

示例3: writeMainFrame

import com.ibm.xsp.extlib.component.layout.impl.BasicApplicationConfigurationImpl; //导入方法依赖的package包/类
@Override
protected void writeMainFrame(FacesContext context, ResponseWriter w,UIApplicationLayout c,BasicApplicationConfigurationImpl configuration) throws IOException {
    // Start the mast header
    // Masthead is deprecated for OneUIv3.0.2 see if we still need to render this.
    if(null != configuration && configuration.isMastHeader()){
        writeMastHeader(context, w, c, configuration);
    }
    
    // Start the main frame
    String tag = (String)getProperty(PROP_MAINFRAMETAG);
    w.startElement(tag,c);

    String style = (String)getProperty(PROP_MAINFRAMESTYLE);
    if(StringUtil.isNotEmpty(style)) {
        w.writeAttribute("style",style,null); // $NON-NLS-1$
    }
    String styleClass = (String)getProperty(PROP_MAINFRAMECLASS);
    if(StringUtil.isNotEmpty(styleClass)) {
        w.writeAttribute("class",styleClass,null); // $NON-NLS-1$
    }
    if( HtmlUtil.isUserId(c.getId()) ){
        w.writeAttribute("id",c.getClientId(context),null); // $NON-NLS-1$
    }
    newLine(w);
    
    if(configuration!=null) {
        // wrap banner and title bar in <header> tag
        w.startElement("div", c); // $NON-NLS-1$
        w.writeAttribute("role", "banner", null); // $NON-NLS-1$ $NON-NLS-2$
        // Start the banner
        if(configuration.isBanner()) {
            writeBanner(context, w, c, configuration);
        }
        
        // Start the title bar
        if(configuration.isTitleBar()) {
            writeTitleBar(context, w, c, configuration);
        }
       
        // Start the place bar
        if(configuration.isPlaceBar()) {
            writePlaceBar(context, w, c, configuration);
        }
        
        w.endElement("div"); // $NON-NLS-1$
        // Start the main content
        writeMainContent(context, w, c, configuration);
        
        // Start the footer
        if(configuration.isFooter()) {
            writeFooter(context, w, c, configuration);
        }
        
        // Start the legal
        if(configuration.isLegal()) {
            writeLegal(context, w, c, configuration);
        }
    }
    
    // Close the main frame
    w.endElement(tag); newLine(w);
    
    // Start the mast footer
    if(null != configuration && configuration.isMastFooter()){
        writeMastFooter(context, w, c, configuration);
    }
    
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:69,代码来源:OneUIv302ApplicationLayoutRenderer.java


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