PageRenderTime 8ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/ftr-gwt-library-date/src/site/xdoc/controller.xml

http://ftr-gwt-library.googlecode.com/
XML | 31 lines | 21 code | 10 blank | 0 comment | 0 complexity | 5b7b6bd0485db595c6b7f8c4a230277b MD5 | raw file
 1<?xml version="1.0" encoding="ISO-8859-1"?>
 2<document>
 3  <properties>
 4    <author email="mnouwens@future-earth.eu">Marteijn Nouwens</author>
 5    <title>Create a custom EventController</title>
 6  </properties>
 7  <body>
 8    <p>
 9
10   When using the MultiView you must also supply an suctom EventController. This class will controll retrieving date objects and firing events toward the back-end of your choosing.
11
12    <h2>void getEventsForRange(Date start, Date end, MultiView caller)</h2>
13
14    This method is the most important method for filling the calander with data. It's responsible for retrieving data from your back-end. If wanted you can also implement a caching mecahnism here.
15    Use the caller method <b>public void setEvents(EventData[] events)</b>  for setting the data when retrieved.
16
17
18    <h2>void updateEvent(EventData updated)</h2>
19
20    Called when an event is updated. This can be done by a drag and drop or resize of a day event. These event will mostly be date changes.
21
22    <h2>void removeEvent(EventData updated)</h2>
23    Called when an event is removed.
24
25    <h2>void addEvent(EventData updated)</h2>
26
27    This event is throw when and event is added.
28
29      </p>
30  </body>
31</document>