/* * Copyright 2004-2008 the Seasar Foundation and the Others. * * 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 org.seasar.uruma.component.jface; import org.eclipse.swt.widgets.DateTime; import org.seasar.uruma.annotation.FieldDescription; import org.seasar.uruma.annotation.RenderingPolicy; import org.seasar.uruma.annotation.RenderingPolicy.ConversionType; /** * {@link DateTime} を表すコンポーネントです。
* * @author yazaki */ public class DateTimeComponent extends ControlComponent { @RenderingPolicy(conversionType = ConversionType.INT) @FieldDescription("時") private String hours; @RenderingPolicy(conversionType = ConversionType.INT) @FieldDescription("分") private String minutes; @RenderingPolicy(conversionType = ConversionType.INT) @FieldDescription("秒") private String seconds; @RenderingPolicy(conversionType = ConversionType.INT) @FieldDescription("年") private String year; @RenderingPolicy(conversionType = ConversionType.INT) @FieldDescription("月") private String month; @RenderingPolicy(conversionType = ConversionType.INT) @FieldDescription("日") private String day; public String getHours() { return this.hours; } public void setHours(final String hours) { this.hours = hours; } public String getMinutes() { return this.minutes; } public void setMinutes(final String minutes) { this.minutes = minutes; } public String getSeconds() { return this.seconds; } public void setSeconds(final String seconds) { this.seconds = seconds; } public String getYear() { return this.year; } public void setYear(final String year) { this.year = year; } public String getMonth() { return this.month; } public void setMonth(final String month) { this.month = month; } public String getDay() { return this.day; } public void setDay(final String day) { this.day = day; } }