01: /* *************************************************************************
02:
03: Millstone(TM)
04: Open Sourced User Interface Library for
05: Internet Development with Java
06:
07: Millstone is a registered trademark of IT Mill Ltd
08: Copyright (C) 2000-2005 IT Mill Ltd
09:
10: *************************************************************************
11:
12: This library is free software; you can redistribute it and/or
13: modify it under the terms of the GNU Lesser General Public
14: license version 2.1 as published by the Free Software Foundation.
15:
16: This library is distributed in the hope that it will be useful,
17: but WITHOUT ANY WARRANTY; without even the implied warranty of
18: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19: Lesser General Public License for more details.
20:
21: You should have received a copy of the GNU Lesser General Public
22: License along with this library; if not, write to the Free Software
23: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24:
25: *************************************************************************
26:
27: For more information, contact:
28:
29: IT Mill Ltd phone: +358 2 4802 7180
30: Ruukinkatu 2-4 fax: +358 2 4802 7181
31: 20540, Turku email: info@itmill.com
32: Finland company www: www.itmill.com
33:
34: Primary source for MillStone information and releases: www.millstone.org
35:
36: ********************************************************************** */
37:
38: package org.millstone.examples.features;
39:
40: public class FeatureProperties extends Feature {
41:
42: protected String getExampleSrc() {
43: return super .getExampleSrc();
44: }
45:
46: protected String getTitle() {
47: return "Property Data Model";
48: }
49:
50: protected String getDescriptionXHTML() {
51: return "<p>Millstone data model is one of the core concepts "
52: + "in the library and Property-interface is the base of that "
53: + "model. Property provides standardized API for a singe data object "
54: + "that can be getted and setted. A property is always typed, but can optionally "
55: + "support data type conversions. Optionally properties can provide "
56: + "value change events for following the state changes.</p>"
57: + "<p>The most important function of the Property as well as other "
58: + "data models is to connect classes implementing the interface directly to "
59: + "editor and viewer classes. Typically this is used to connect different "
60: + "data sources to UI components for editing and viewing their contents.</p>"
61: + "<p>Properties can be utilized either by implementing the interface "
62: + "or by using some of the existing property implementations. Millstone "
63: + "includes Property interface implementations for "
64: + "arbitrary function pairs or Bean-properties as well as simple object "
65: + "properties.</p>"
66: + "<p>Many of the UI components also imlement Property interface and allow "
67: + "setting of other components as their data-source. These UI-components "
68: + "include TextField, DateField, Select, Table, Button, "
69: + "Label and Tree.</p>";
70: }
71:
72: /**
73: * @see org.millstone.examples.features.Feature#getImage()
74: */
75: protected String getImage() {
76: return "properties.jpg";
77: }
78:
79: }
|