本文整理汇总了Java中com.ibm.xsp.extlib.component.layout.impl.BasicApplicationConfigurationImpl类的典型用法代码示例。如果您正苦于以下问题:Java BasicApplicationConfigurationImpl类的具体用法?Java BasicApplicationConfigurationImpl怎么用?Java BasicApplicationConfigurationImpl使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
BasicApplicationConfigurationImpl类属于com.ibm.xsp.extlib.component.layout.impl包,在下文中一共展示了BasicApplicationConfigurationImpl类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: writeRightColumn
import com.ibm.xsp.extlib.component.layout.impl.BasicApplicationConfigurationImpl; //导入依赖的package包/类
@Override
//TODO the small size fix has been applied to super class
// if that is delivered, we can delete this method
protected void writeRightColumn(FacesContext context, ResponseWriter w, UIApplicationLayout c, int size, BasicApplicationConfigurationImpl configuration) throws IOException {
UIComponent right = c.getRightColumn();
if (!isEmptyComponent(right)) {
w.startElement("div", c); // $NON-NLS-1$
String mdCol = (String)getProperty(PROP_COLUMN_MEDIUM);
String smCol = (String)getProperty(PROP_COLUMN_SMALL);
String columnClass = ExtLibUtil.concatStyleClasses(mdCol + size, smCol + (size+1));
w.writeAttribute("class", ExtLibUtil.concatStyleClasses(columnClass, "applayout-column-right"), null); // $NON-NLS-1$ $NON-NLS-2$
FacesUtil.renderComponent(context, right);
w.endElement("div"); // $NON-NLS-1$
}
}
示例2: writeBannerUtilityLinks
import com.ibm.xsp.extlib.component.layout.impl.BasicApplicationConfigurationImpl; //导入依赖的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");
}
}
示例3: writeSearchBar
import com.ibm.xsp.extlib.component.layout.impl.BasicApplicationConfigurationImpl; //导入依赖的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");
}
示例4: writeMainContent
import com.ibm.xsp.extlib.component.layout.impl.BasicApplicationConfigurationImpl; //导入依赖的package包/类
protected void writeMainContent(final FacesContext context, final ResponseWriter w, final UIApplicationLayout layout, final BasicApplicationConfigurationImpl config) throws IOException {
newLine(w);
w.startElement("div", layout);
w.writeAttribute("class", "row", null);
newLine(w);
w.startElement("div", layout);
w.writeAttribute("class", "col-xs-12", null);
newLine(w);
newLine(w);
renderChildren(context, layout);
newLine(w);
newLine(w);
w.endElement("div");
w.writeComment("/.col-xs-12");
newLine(w);
w.endElement("div");
w.writeComment("/.row");
}
示例5: writeFooter
import com.ibm.xsp.extlib.component.layout.impl.BasicApplicationConfigurationImpl; //导入依赖的package包/类
protected void writeFooter(final FacesContext context, final ResponseWriter w, final UIApplicationLayout layout, final BasicApplicationConfigurationImpl config) throws IOException {
UIComponent footer = layout.getMastFooter();
if(!isEmptyComponent(footer)) {
w.startElement("div", null);
w.writeAttribute("class", "footer", null);
newLine(w);
w.startElement("div", null);
w.writeAttribute("class", "footer-inner", null);
w.startElement("div", null);
w.writeAttribute("class", "footer-content", null);
FacesUtil.renderComponent(context, footer);
w.endElement("div"); // div.footer-content
w.endElement("div"); // div.footer-inner
w.endElement("div"); // div.footer
}
}
示例6: writeBannerContent
import com.ibm.xsp.extlib.component.layout.impl.BasicApplicationConfigurationImpl; //导入依赖的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);
}
//TWET97XJZA: Unnecessary now. Replaced by role='main' on lotusContent div
//writeBannerLink(context, w, c, configuration);
writeBannerProductlogo(context, w, c, configuration);
newLine(w);
writeBannerUtilityLinks(context, w, c, configuration);
newLine(w);
writeBannerApplicationLinks(context, w, c, configuration);
newLine(w);
if(DEBUG) {
w.writeComment("End Banner"); // $NON-NLS-1$
newLine(w);
}
}
示例7: writePlaceBarName
import com.ibm.xsp.extlib.component.layout.impl.BasicApplicationConfigurationImpl; //导入依赖的package包/类
protected void writePlaceBarName(FacesContext context, ResponseWriter w, UIApplicationLayout c, BasicApplicationConfigurationImpl configuration) throws IOException {
String placeName = configuration.getPlaceBarName();
if(StringUtil.isNotEmpty(placeName)) {
String placeBarNameTag = (String)getProperty(PROP_PLACEBARNAMETAG);
boolean isPlaceBarTag = StringUtil.isNotEmpty(placeBarNameTag);
if( isPlaceBarTag ){
w.startElement(placeBarNameTag,c);
String id = StringUtil.format("{0}_pbName", c.getClientId(context)); // $NON-NLS-1$
w.writeAttribute("id", id, null); // $NON-NLS-1$
String placeBarNameStyle = (String)getProperty(PROP_PLACEBARNAMESTYLE);
if( StringUtil.isNotEmpty(placeBarNameStyle) ){
w.writeAttribute("style",placeBarNameStyle,null); // $NON-NLS-1$
}
String placeBarNameClass = (String)getProperty(PROP_PLACEBARNAMECLASS);
if( StringUtil.isNotEmpty(placeBarNameClass) ){
w.writeAttribute("class", placeBarNameClass, null); //$NON-NLS-1$
}
}
w.writeText(placeName,null);
if( isPlaceBarTag ){
w.endElement(placeBarNameTag);
}
newLine(w);
}
}
示例8: writeFooter
import com.ibm.xsp.extlib.component.layout.impl.BasicApplicationConfigurationImpl; //导入依赖的package包/类
protected void writeFooter(FacesContext context, ResponseWriter w, UIApplicationLayout c, BasicApplicationConfigurationImpl configuration) throws IOException {
String footerTag = (String)getProperty(PROP_FOOTERTAG);
boolean isFooterTag = StringUtil.isNotEmpty(footerTag);
String footerClass = null;
if( isFooterTag ){
w.startElement(footerTag,c); // $NON-NLS-1$
footerClass = (String)getProperty(PROP_FOOTERCLASS);
if( StringUtil.isNotEmpty(footerClass) ){
w.writeAttribute("class",footerClass,null); // $NON-NLS-1$
}
String footerRole = (String)getProperty(PROP_FOOTERROLE);
if( StringUtil.isNotEmpty(footerRole) ){
w.writeAttribute("role", footerRole, null); // $NON-NLS-1$
}
newLine(w);
}
writeFooterLinks(context, w, c, configuration);
if( isFooterTag ){
w.endElement(footerTag); newLine(w,footerClass);
}
}
示例9: writeLegal
import com.ibm.xsp.extlib.component.layout.impl.BasicApplicationConfigurationImpl; //导入依赖的package包/类
protected void writeLegal(FacesContext context, ResponseWriter w, UIApplicationLayout c, BasicApplicationConfigurationImpl configuration) throws IOException {
w.startElement("table",c); // $NON-NLS-1$
String legalTableClass = (String)getProperty(PROP_LEGALTABLECLASS);
if( StringUtil.isNotEmpty(legalTableClass) ){
w.writeAttribute("class",legalTableClass,null); // $NON-NLS-1$
}
String legalTableCellSpacing = (String)getProperty(PROP_LEGALTABLECELLSPACING);
if( StringUtil.isNotEmpty(legalTableCellSpacing) ){
w.writeAttribute("cellspacing",legalTableCellSpacing,null); // $NON-NLS-1$
}
String legalTableRole = (String)getProperty(PROP_LEGALTABLEROLE);
if( StringUtil.isEmpty(legalTableRole) ){
legalTableRole = "presentation"; // $NON-NLS-1$
}
w.writeAttribute("role",legalTableRole,null); // $NON-NLS-1$
newLine(w);
w.startElement("tr",c); newLine(w); // $NON-NLS-1$
writeLegalLogo(context, w, c, configuration);
writeLegalText(context, w, c, configuration);
w.endElement("tr"); newLine(w); // $NON-NLS-1$
w.endElement("table"); newLine(w); // $NON-NLS-1$
}
示例10: encodeBegin
import com.ibm.xsp.extlib.component.layout.impl.BasicApplicationConfigurationImpl; //导入依赖的package包/类
@Override
public void encodeBegin(FacesContext context, UIComponent component) throws IOException {
ResponseWriter w = context.getResponseWriter();
UIApplicationLayout c = (UIApplicationLayout)component;
if(!c.isRendered()) {
return;
}
ApplicationConfiguration _conf = c.findConfiguration();
if(!(_conf instanceof BasicApplicationConfigurationImpl)) {
return;
}
BasicApplicationConfigurationImpl configuration = (BasicApplicationConfigurationImpl)_conf;
writeMainFrame(context, w, c, configuration);
}
示例11: writeBannerLink
import com.ibm.xsp.extlib.component.layout.impl.BasicApplicationConfigurationImpl; //导入依赖的package包/类
protected void writeBannerLink(FacesContext context, ResponseWriter w, UIApplicationLayout c, BasicApplicationConfigurationImpl configuration) throws IOException {
w.startElement("button", c); // $NON-NLS-1$
w.writeAttribute("type", "button", null); // $NON-NLS-1$ $NON-NLS-2$
w.writeAttribute("aria-label", (String)getProperty(PROP_BANNER_COLLAPSE_BUTTON_ARIALABEL), null); // $NON-NLS-1$
w.writeAttribute("class", "navbar-toggle", null); // $NON-NLS-1$ $NON-NLS-2$
w.writeAttribute("data-toggle", "collapse", null); // $NON-NLS-1$ $NON-NLS-2$
w.writeAttribute("data-target", "." + getProperty(PROP_BANNER_COLLAPSE_CLASS), null); // $NON-NLS-1$
w.startElement("span", c); // $NON-NLS-1$
w.writeAttribute("class", "sr-only", null); // $NON-NLS-1$ $NON-NLS-2$
w.writeText((String)getProperty(PROP_BANNER_COLLAPSE_BUTTON_ARIALABEL), null); // $NON-NLS-1$
w.endElement("span"); // $NON-NLS-1$
w.startElement("span", c); // $NON-NLS-1$
w.writeAttribute("class", "icon-bar", null); // $NON-NLS-1$ $NON-NLS-2$
w.endElement("span"); // $NON-NLS-1$
w.startElement("span", c); // $NON-NLS-1$
w.writeAttribute("class", "icon-bar", null); // $NON-NLS-1$ $NON-NLS-2$
w.endElement("span"); // $NON-NLS-1$
w.startElement("span", c); // $NON-NLS-1$
w.writeAttribute("class", "icon-bar", null); // $NON-NLS-1$ $NON-NLS-2$
w.endElement("span"); // $NON-NLS-1$
w.endElement("button"); // $NON-NLS-1$
}
示例12: writeTitleBarTabsArea
import com.ibm.xsp.extlib.component.layout.impl.BasicApplicationConfigurationImpl; //导入依赖的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));
}
}
}
示例13: writeContentColumn
import com.ibm.xsp.extlib.component.layout.impl.BasicApplicationConfigurationImpl; //导入依赖的package包/类
@Override
//TODO the small size fix has been applied to super class
// if that is delivered, we can delete this method
protected void writeContentColumn(FacesContext context, ResponseWriter w, UIApplicationLayout c, int size, BasicApplicationConfigurationImpl configuration) throws IOException {
if (!isEmptyChildren(c)) {
w.startElement("div", c); // $NON-NLS-1$
String mdCol = (String)getProperty(PROP_COLUMN_MEDIUM);
String smCol = (String)getProperty(PROP_COLUMN_SMALL);
int smallSize = isEmptyComponent(c.getLeftColumn()) ? size : size-1;
smallSize = isEmptyComponent(c.getRightColumn()) ? smallSize : smallSize-1;
String contentClass = ExtLibUtil.concatStyleClasses(mdCol + size, smCol + smallSize);
w.writeAttribute("class", ExtLibUtil.concatStyleClasses(contentClass, "applayout-content"), null); // $NON-NLS-1$ $NON-NLS-2$
renderChildren(context, c);
w.endElement("div"); // $NON-NLS-1$
}
}
示例14: writeSearchBox
import com.ibm.xsp.extlib.component.layout.impl.BasicApplicationConfigurationImpl; //导入依赖的package包/类
protected void writeSearchBox(FacesContext context, ResponseWriter w, UIApplicationLayout c, BasicApplicationConfigurationImpl configuration, SearchBar searchBar, ITree tree, boolean options) throws IOException {
String cid = c.getClientId(context) + "_search"; // $NON-NLS-1$
w.startElement("input", c); // $NON-NLS-1$
w.writeAttribute("id", cid, null); // $NON-NLS-1$
w.writeAttribute("name", cid, null); // $NON-NLS-1$
w.writeAttribute("type", "text", null); // $NON-NLS-1$ $NON-NLS-2$
w.writeAttribute("class", "form-control search-query", null); // $NON-NLS-1$ $NON-NLS-2$
String inputTitle = searchBar.getInputTitle();
if (StringUtil.isNotEmpty(inputTitle)) {
w.writeAttribute("title", inputTitle, null); // $NON-NLS-1$
}
String inactiveText = searchBar.getInactiveText();
if (StringUtil.isNotEmpty(inactiveText)) {
w.writeAttribute("placeHolder", inactiveText, null); // $NON-NLS-1$
}
String submitSearch = "_xspAppSearchSubmit"; // $NON-NLS-1$
w.writeAttribute("onkeypress", "javascript:var kc=event.keyCode?event.keyCode:event.which;if(kc==13){"+submitSearch+"(); return false}",null); // $NON-NLS-1$ $NON-NLS-2$ $NON-NLS-3$
w.endElement("input"); // $NON-NLS-1$
newLine(w);
}
示例15: writeSearchButton
import com.ibm.xsp.extlib.component.layout.impl.BasicApplicationConfigurationImpl; //导入依赖的package包/类
protected void writeSearchButton(FacesContext context, ResponseWriter w, UIApplicationLayout c, BasicApplicationConfigurationImpl configuration, SearchBar searchBar, ITree tree, boolean searchOptions) throws IOException {
String submitSearch = "_xspAppSearchSubmit"; // $NON-NLS-1$
w.startElement("div", c); // $NON-NLS-1$
w.writeAttribute("class","input-group-btn",null); // $NON-NLS-1$ $NON-NLS-2$
newLine(w);
// Write the required script (done here because of Bootstrap 3 last-child selector on the input-group-btn)
writeSearchScript(context, w, c, configuration, searchBar, tree, searchOptions);
newLine(w);
w.startElement("button",c); // $NON-NLS-1$
w.writeAttribute("class","btn btn-default applayout-searchbtn",null); // $NON-NLS-1$ $NON-NLS-2$
w.writeAttribute("onclick","javascript:"+submitSearch+"(); return false;",null); // $NON-NLS-1$ $NON-NLS-2$ $NON-NLS-3$
String searchLabel = com.ibm.xsp.extlib.controls.ResourceHandler.getString("AbstractApplicationLayoutRenderer.Search.1"); // $NON-NLS-1$
w.writeAttribute("aria-label", searchLabel,null); // $NON-NLS-1$
w.startElement("span",c); // $NON-NLS-1$
w.writeAttribute("aria-hidden","true",null); // $NON-NLS-1$ $NON-NLS-2$
w.writeAttribute("class", Resources.get().getIconClass("search"),null); // $NON-NLS-1$ $NON-NLS-2$
w.endElement("span"); // $NON-NLS-1$
w.endElement("button"); // $NON-NLS-1$
w.endElement("div"); // $NON-NLS-1$
}