/ftr-gwt-library-date/src/main/java/eu/future/earth/gwt/client/date/DatePanel.java
Java | 68 lines | 27 code | 26 blank | 15 comment | 0 complexity | 267dfad785c65543ccecb536217afb5b 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.Date; 20import java.util.List; 21 22import com.google.gwt.event.shared.HandlerRegistration; 23 24import eu.future.earth.gwt.client.date.DateEvent.DateEventActions; 25 26public interface DatePanel<T> { 27 28 void clearData(); 29 30 void setDate(Date newDate); 31 32 void setPixelSize(int width, int height); 33 34 Date getFirstDateShow(); 35 36 Date getLastDateShow(); 37 38 Date getFirstDateLogical(); 39 40 Date getLastDateLogical(); 41 42 void notifyReady(DateEventActions action, T data, boolean reload); 43 44 Date next(); 45 46 Date prev(); 47 48 Date nextMore(); 49 50 Date prevMore(); 51 52 void loadData(); 53 54 void addEventData(T newEvent); 55 56 void setEvents(List<? extends T> events); 57 58 void addEventsByList(List<? extends T> events); 59 60 void updateEventData(T newEvent); 61 62 void removeEventData(T newEvent); 63 64 HandlerRegistration addDateEventHandler(DateEventListener<? extends T> handler); 65 66 PanelType getType(); 67 68}