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

📄 abstractdelegatingviewbuilder.java

📁 Please read your package and describe it at least 40 bytes in English. System will automatically de
💻 JAVA
字号:
/* * Copyright 2002-2004 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * *      http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */package de.mindmatters.faces.application;import java.io.IOException;import java.util.Locale;import javax.faces.application.ViewHandler;import javax.faces.component.UIViewRoot;import javax.faces.context.FacesContext;/** * Abstract implementation of a <strong>ViewBuilder</strong> that delegates the * behaviour inherited from the {@link ViewHandler} to the original view handler * of the underlying JSF implementation. *  * @author Andreas Kuhrwahl */public abstract class AbstractDelegatingViewBuilder extends ViewBuilder {    /** The original view handler of the underlying JSF implementation. */    private final ViewHandler delegate;    /**     * Constructor that takes the original {@link ViewHandler}.     *      * @param delegate     *            the original {@link ViewHandler}     */    public AbstractDelegatingViewBuilder(final ViewHandler delegate) {        super();        this.delegate = delegate;    }    /**     * {@inheritDoc}     */    public final Locale calculateLocale(final FacesContext context) {        return delegate.calculateLocale(context);    }    /**     * {@inheritDoc}     */    public final String calculateRenderKitId(final FacesContext context) {        return delegate.calculateRenderKitId(context);    }    /**     * {@inheritDoc}     */    public final UIViewRoot createView(final FacesContext context,            final String viewId) {        return delegate.createView(context, viewId);    }    /**     * {@inheritDoc}     */    public final String getActionURL(final FacesContext context,            final String viewId) {        return delegate.getActionURL(context, viewId);    }    /**     * {@inheritDoc}     */    public final String getResourceURL(final FacesContext context,            final String path) {        return delegate.getResourceURL(context, path);    }    /**     * {@inheritDoc}     */    public final void renderView(final FacesContext context,            final UIViewRoot viewToRender) throws IOException {        delegate.renderView(context, viewToRender);    }    /**     * {@inheritDoc}     */    public final UIViewRoot restoreView(final FacesContext context,            final String viewId) {        return delegate.restoreView(context, viewId);    }    /**     * @return the original {@link ViewHandler}     */    protected final ViewHandler getDelegate() {        return delegate;    }    /**     * {@inheritDoc}     */    protected final void writeStateInClient(final FacesContext context)            throws IOException {        delegate.writeState(context);    }}

⌨️ 快捷键说明

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