| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| TemplateImpl |
|
| 0.0;0 |
| 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.component.jface; | |
| 17 | ||
| 18 | import org.seasar.uruma.annotation.ComponentElement; | |
| 19 | import org.seasar.uruma.component.Template; | |
| 20 | import org.seasar.uruma.component.UIComponentContainer; | |
| 21 | import org.seasar.uruma.component.UIElementVisitor; | |
| 22 | import org.seasar.uruma.component.base.AbstractUIElement; | |
| 23 | ||
| 24 | /** | |
| 25 | * {@link Template} の実装クラスです。<br /> | |
| 26 | * | |
| 27 | * @author y-komori | |
| 28 | */ | |
| 29 | @ComponentElement("template") | |
| 30 | 116 | public class TemplateImpl extends AbstractUIElement implements Template { |
| 31 | private UIComponentContainer rootComponent; | |
| 32 | ||
| 33 | private String extendsPath; | |
| 34 | ||
| 35 | /* | |
| 36 | * @see org.seasar.uruma.component.Template#getRootComponent() | |
| 37 | */ | |
| 38 | public UIComponentContainer getRootComponent() { | |
| 39 | 452 | return this.rootComponent; |
| 40 | } | |
| 41 | ||
| 42 | /* | |
| 43 | * @see org.seasar.uruma.component.Template#setRootComponent(org.seasar.uruma.component.UIContainer) | |
| 44 | */ | |
| 45 | public void setRootComponent(final UIComponentContainer rootComponent) { | |
| 46 | 116 | this.rootComponent = rootComponent; |
| 47 | 116 | } |
| 48 | ||
| 49 | /* | |
| 50 | * @see org.seasar.uruma.component.Template#getExtends() | |
| 51 | */ | |
| 52 | public String getExtends() { | |
| 53 | 0 | return this.extendsPath; |
| 54 | } | |
| 55 | ||
| 56 | /* | |
| 57 | * @see org.seasar.uruma.component.Template#setExtends(java.lang.String) | |
| 58 | */ | |
| 59 | public void setExtends(final String extendsPath) { | |
| 60 | 0 | this.extendsPath = extendsPath; |
| 61 | 0 | } |
| 62 | ||
| 63 | /* | |
| 64 | * @see org.seasar.uruma.component.base.AbstractUIElement#accept(org.seasar.uruma.component.UIElementVisitor) | |
| 65 | */ | |
| 66 | @Override | |
| 67 | public void accept(final UIElementVisitor visitor) { | |
| 68 | 0 | visitor.visit(this); |
| 69 | 0 | } |
| 70 | } |