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.

FeatureProperties.java 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /* *************************************************************************
  2. IT Mill Toolkit
  3. Development of Browser User Interfaces 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.pdf. Use of this product might
  8. require purchasing a commercial license from IT Mill Ltd. For guidelines
  9. on usage, see 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. import com.itmill.toolkit.ui.Component;
  20. import com.itmill.toolkit.ui.Label;
  21. import com.itmill.toolkit.ui.OrderedLayout;
  22. public class FeatureProperties extends Feature {
  23. public FeatureProperties() {
  24. super();
  25. }
  26. protected Component getDemoComponent() {
  27. OrderedLayout l = new OrderedLayout();
  28. Label lab = new Label();
  29. lab.setStyle("featurebrowser-none");
  30. l.addComponent(lab);
  31. // Properties
  32. propertyPanel = null;
  33. return l;
  34. }
  35. protected String getExampleSrc() {
  36. return "";
  37. }
  38. protected String getDescriptionXHTML() {
  39. return "<p>IT Mill Toolkti data model is one of the core concepts "
  40. + "in the library and Property-interface is the base of that "
  41. + "model. Property provides standardized API for a singe data object "
  42. + "that can be getted and setted. A property is always typed, but can optionally "
  43. + "support data type conversions. Optionally properties can provide "
  44. + "value change events for following the state changes.</p>"
  45. + "<p>The most important function of the Property as well as other "
  46. + "data models is to connect classes implementing the interface directly to "
  47. + "editor and viewer classes. Typically this is used to connect different "
  48. + "data sources to UI components for editing and viewing their contents.</p>"
  49. + "<p>Properties can be utilized either by implementing the interface "
  50. + "or by using some of the existing property implementations. IT Mill Toolkit "
  51. + "includes Property interface implementations for "
  52. + "arbitrary function pairs or Bean-properties as well as simple object "
  53. + "properties.</p>"
  54. + "<p>Many of the UI components also imlement Property interface and allow "
  55. + "setting of other components as their data-source. These UI-components "
  56. + "include TextField, DateField, Select, Table, Button, "
  57. + "Label and Tree.</p>";
  58. }
  59. protected String getImage() {
  60. return "properties.jpg";
  61. }
  62. protected String getTitle() {
  63. return "Introduction of Data Model Properties";
  64. }
  65. }