1 /* 2 * Copyright 2004-2008 the Seasar Foundation and the Others. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 13 * either express or implied. See the License for the specific language 14 * governing permissions and limitations under the License. 15 */ 16 package org.seasar.uruma.renderer.impl; 17 18 import org.seasar.uruma.component.UIComponent; 19 import org.seasar.uruma.context.PartContext; 20 import org.seasar.uruma.context.WidgetHandle; 21 import org.seasar.uruma.context.WindowContext; 22 import org.seasar.uruma.renderer.Renderer; 23 24 /** 25 * 何も処理を行わないレンダラです。<br /> 26 * 27 * @author y-komori 28 */ 29 public class NullRenderer implements Renderer { 30 31 /* 32 * @see org.seasar.uruma.renderer.Renderer#preRender(org.seasar.uruma.component.UIComponent, 33 * org.seasar.uruma.context.WidgetHandle, 34 * org.seasar.uruma.context.WindowContext) 35 */ 36 public WidgetHandle preRender(final UIComponent uiComponent, 37 final WidgetHandle parent, final WindowContext context) { 38 // Do nothing. 39 return null; 40 } 41 42 /* 43 * @see org.seasar.uruma.renderer.Renderer#render(org.seasar.uruma.component.UIComponent, 44 * org.seasar.uruma.context.WidgetHandle, 45 * org.seasar.uruma.context.PartContext) 46 */ 47 public WidgetHandle render(final UIComponent uiComponent, 48 final WidgetHandle parent, final PartContext context) { 49 // Do nothing. 50 return null; 51 } 52 53 /* 54 * @see org.seasar.uruma.renderer.Renderer#renderAfter(org.seasar.uruma.context.WidgetHandle, 55 * org.seasar.uruma.component.UIComponent, 56 * org.seasar.uruma.context.WidgetHandle, 57 * org.seasar.uruma.context.PartContext) 58 */ 59 public void renderAfter(final WidgetHandle widget, 60 final UIComponent uiComponent, final WidgetHandle parent, 61 final PartContext context) { 62 // Do nothing. 63 } 64 65 /* 66 * @see org.seasar.uruma.renderer.Renderer#reRender(org.seasar.uruma.context.WidgetHandle) 67 */ 68 public void reRender(final WidgetHandle widget) { 69 // Do nothing. 70 } 71 }