/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. 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.
  10. <h2>void getEventsForRange(Date start, Date end, MultiView caller)</h2>
  11. 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.
  12. Use the caller method <b>public void setEvents(EventData[] events)</b> for setting the data when retrieved.
  13. <h2>void updateEvent(EventData updated)</h2>
  14. 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.
  15. <h2>void removeEvent(EventData updated)</h2>
  16. Called when an event is removed.
  17. <h2>void addEvent(EventData updated)</h2>
  18. This event is throw when and event is added.
  19. </p>
  20. </body>
  21. </document>