You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

FeatureBuffering.java 2.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /* *************************************************************************
  2. IT Mill Toolkit
  3. Development of Browser User Intarfaces Made Easy
  4. Copyright (C) 2000-2006 IT Mill Ltd
  5. *************************************************************************
  6. This product is distributed under commercial license that can be found
  7. from the product package on license/license.txt. Use of this product might
  8. require purchasing a commercial license from IT Mill Ltd. For guidelines
  9. on usage, see license/licensing-guidelines.html
  10. *************************************************************************
  11. For more information, contact:
  12. IT Mill Ltd phone: +358 2 4802 7180
  13. Ruukinkatu 2-4 fax: +358 2 4802 7181
  14. 20540, Turku email: info@itmill.com
  15. Finland company www: www.itmill.com
  16. Primary source for information and releases: www.itmill.com
  17. ********************************************************************** */
  18. package com.itmill.toolkit.demo.features;
  19. public class FeatureBuffering extends Feature {
  20. protected String getExampleSrc() {
  21. return super.getExampleSrc();
  22. }
  23. protected String getTitle() {
  24. return "Buffering";
  25. }
  26. /**
  27. * @see com.itmill.toolkit.demo.features.Feature#getDescriptionXHTML()
  28. */
  29. protected String getDescriptionXHTML() {
  30. return "<p>IT Mill Toolkit data model provides interface for implementing "
  31. + "buffering in data components. The basic idea is that a component "
  32. + "reading their state from data source can implement "
  33. + "Buffered-interface, for storing the value internally. "
  34. + "Buffering provides transactional access "
  35. + "for setting data: data can be put to a component's buffer and "
  36. + "afterwards committed to or discarded by re-reding it from the data source. "
  37. + "The buffering can be used for creating interactive interfaces "
  38. + "as well as caching the data for performance reasons.</p>"
  39. + "<p>Buffered interface contains methods for committing and discarding "
  40. + "changes to an object and support for controlling buffering mode "
  41. + "with read-through and write-through modes. "
  42. + "Read-through mode means that the value read from the buffered "
  43. + "object is constantly up to date with the data source. "
  44. + "Respectively the write-through mode means that all changes to the object are "
  45. + "immediately updated to the data source.</p>";
  46. }
  47. /**
  48. * @see com.itmill.toolkit.demo.features.Feature#getImage()
  49. */
  50. protected String getImage() {
  51. return "buffering.jpg";
  52. }
  53. }