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 FeatureBuffering extends Feature {
41: protected String getExampleSrc() {
42: return super .getExampleSrc();
43: }
44:
45: protected String getTitle() {
46: return "Buffering";
47: }
48:
49: /**
50: * @see org.millstone.examples.features.Feature#getDescriptionXHTML()
51: */
52: protected String getDescriptionXHTML() {
53: return "<p>Millstone data model provides interface for implementing "
54: + "buffering in data components. The basic idea is that a component "
55: + "reading their state from data source can implement "
56: + "Buffered-interface, for storing the value internally. "
57: + "Buffering provides transactional access "
58: + "for setting data: data can be put to a component's buffer and "
59: + "afterwards committed to or discarded by re-reding it from the data source. "
60: + "The buffering can be used for creating interactive interfaces "
61: + "as well as caching the data for performance reasons.</p>"
62: + "<p>Buffered interface contains methods for committing and discarding "
63: + "changes to an object and support for controlling buffering mode "
64: + "with read-through and write-through modes. "
65: + "Read-through mode means that the value read from the buffered "
66: + "object is constantly up to date with the data source. "
67: + "Respectively the write-through mode means that all changes to the object are "
68: + "immediately updated to the data source.</p>";
69: }
70:
71: /**
72: * @see org.millstone.examples.features.Feature#getImage()
73: */
74: protected String getImage() {
75: return "buffering.jpg";
76: }
77:
78: }
|