⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tabrenderer.java

📁 一个java写的加密算法
💻 JAVA
字号:
/* * $Id: TabRenderer.java,v 1.3 2004/11/14 07:33:15 tcfujii Exp $ *//* * Copyright 2004-2005 Sun Microsystems, Inc.  All rights reserved. * Use is subject to license terms. */package components.renderkit;import components.components.PaneComponent;import org.apache.commons.logging.Log;import org.apache.commons.logging.LogFactory;import javax.faces.component.UIComponent;import javax.faces.context.FacesContext;import java.io.IOException;import java.util.Iterator;/** * <p>Render the individual {@link PaneComponent} and its children, but * <strong>only</strong> if this {@link PaneComponent} is currently * selected.  Otherwise, no output at all is sent.</p> * * <p><strong>IMPLEMENTATION NOTE</strong> - Because of the fact that we * want standard JSP text (not nested inside Faces components) to be usable * on a pane, this Renderer needs to know whether it is being used in a JSP * environment (where the rendering of the child components writes to the * local value of our Pane component) or not (where we must do it ourselves). * This is resolved by having the <code>Pane_Tab</code> tag set a * render dependent attribute named "demo.renderer.TabRenderer.JSP" when it * creates the corresponding component, so that we can tell what is going on. * </p> */public class TabRenderer extends BaseRenderer {    private static Log log = LogFactory.getLog(TabRenderer.class);    public void decode(FacesContext context, UIComponent component) {    }    public void encodeBegin(FacesContext context, UIComponent component)        throws IOException {        if (log.isDebugEnabled()) {            log.debug("encodeBegin(" + component.getId() + ")");        }    }    public void encodeChildren(FacesContext context, UIComponent component)        throws IOException {        if (log.isDebugEnabled()) {            log.debug("encodeChildren(" + component.getId() + ")");        }    }    public void encodeEnd(FacesContext context, UIComponent component)        throws IOException {        if (log.isDebugEnabled()) {            log.debug("encodeEnd(" + component.getId() + ")");        }        // Render our children only -- our parent has rendered ourself        Iterator kids = component.getChildren().iterator();        while (kids.hasNext()) {            UIComponent kid = (UIComponent) kids.next();            encodeRecursive(context, kid);        }    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -