/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
- <?xml version="1.0" encoding="ISO-8859-1"?>
- <document>
- <properties>
- <author email="mnouwens@future-earth.eu">Marteijn Nouwens</author>
- <title>Create a custom EventController</title>
- </properties>
- <body>
- <p>
- 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.
- <h2>void getEventsForRange(Date start, Date end, MultiView caller)</h2>
- 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.
- Use the caller method <b>public void setEvents(EventData[] events)</b> for setting the data when retrieved.
- <h2>void updateEvent(EventData updated)</h2>
- 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.
- <h2>void removeEvent(EventData updated)</h2>
- Called when an event is removed.
- <h2>void addEvent(EventData updated)</h2>
- This event is throw when and event is added.
- </p>
- </body>
- </document>