PageRenderTime 22ms CodeModel.GetById 19ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/ftr-gwt-demo/src/main/java/eu/future/earth/gwt/client/date/DefaultWholeDayField.java

http://ftr-gwt-library.googlecode.com/
Java | 53 lines | 25 code | 12 blank | 16 comment | 2 complexity | 26a6392d1fe796fccf61a8557d8a0028 MD5 | raw file
Possible License(s): Apache-2.0
 1/*
 2 * Copyright 2007 Future Earth, info@future-earth.eu
 3 *
 4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 5 * use this file except in compliance with the License. You may obtain a copy of
 6 * 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, WITHOUT
12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 * License for the specific language governing permissions and limitations under
14 * the License.
15 */
16
17package eu.future.earth.gwt.client.date;
18
19import java.util.Calendar;
20import java.util.GregorianCalendar;
21
22import eu.future.earth.gwt.client.DemoCss;
23
24public class DefaultWholeDayField extends AbstractWholeDayField<DefaultEventData> {
25
26	public DefaultWholeDayField(DateRenderer<DefaultEventData> renderer, DefaultEventData data) {
27		super(renderer, data);
28		helper.setTime(data.getStartTime());
29		if (helper.get(Calendar.DAY_OF_WEEK) == Calendar.MONDAY) {
30			super.setEventStyleName(DemoCss.EVENT_HEADER_MONDAY);
31		}
32		setTitle(data.getData());
33	}
34
35	public int getContentHeight() {
36		return contentHeight;
37	}
38
39	private int contentHeight = 15;
40
41	public void setContentHeight(int contentHeight) {
42		this.contentHeight = contentHeight;
43	}
44
45	GregorianCalendar helper = new GregorianCalendar();
46
47	@Override
48	public void repaintTime() {
49		// TODO Auto-generated method stub
50
51	}
52
53}