1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Wt: Wt::WStaticModelView< Renderer > Class Template Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<div class="navpath"><a class="el" href="namespaceWt.html">Wt</a>::<a class="el" href="classWt_1_1WStaticModelView.html">WStaticModelView</a>
</div>
</div>
<div class="contents">
<h1>Wt::WStaticModelView< Renderer > Class Template Reference</h1><!-- doxytag: class="Wt::WStaticModelView" --><!-- doxytag: inherits="Wt::WViewWidget" -->A widget that implements a view for a non-changing model.
<a href="#_details">More...</a>
<p>
<code>#include <Wt/WViewWidget></code>
<p>
<div class="dynheader">
Inheritance diagram for Wt::WStaticModelView< Renderer >:</div>
<div class="dynsection">
<p><center><img src="classWt_1_1WStaticModelView__inherit__graph.png" border="0" usemap="#Wt_1_1WStaticModelView_3_01Renderer_01_4__inherit__map" alt="Inheritance graph"></center>
<map name="Wt_1_1WStaticModelView_3_01Renderer_01_4__inherit__map">
<area shape="rect" href="classWt_1_1WViewWidget.html" title="An abstract base class for an MVC view that is rendered using a widget." alt="" coords="57,229,183,256"><area shape="rect" href="classWt_1_1WWebWidget.html" title="A base class for widgets with an HTML counterpart." alt="" coords="59,155,181,181"><area shape="rect" href="classWt_1_1WWidget.html" title="The abstract base class for a user-interface component." alt="" coords="72,80,168,107"><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="72,5,168,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
<p>
<a href="classWt_1_1WStaticModelView-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f3f267902e8d9693b819fa87966edb12"></a><!-- doxytag: member="Wt::WStaticModelView::WStaticModelView" ref="f3f267902e8d9693b819fa87966edb12" args="(Renderer f, WContainerWidget *parent=0)" -->
</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WStaticModelView.html#f3f267902e8d9693b819fa87966edb12">WStaticModelView</a> (Renderer f, <a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *parent=0)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a new static model view, given a function object to render the View widget. <br></td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1WWidget.html">WWidget</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WStaticModelView.html#07efb77007dc9311e47ee15244770426">renderView</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a widget that renders the View. <a href="#07efb77007dc9311e47ee15244770426"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Related Functions</h2></td></tr>
<tr><td colspan="2">(Note that these are not member functions.) <br><br></td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template<typename Renderer> </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1WStaticModelView.html">WStaticModelView</a>< Renderer > * </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classWt_1_1WStaticModelView.html#a2d5588b502ceb66b37ffee8a564cbaa">makeStaticModel</a> (Renderer f, <a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *parent=0)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Wraps a widget into a view with a non-changing model. <a href="#a2d5588b502ceb66b37ffee8a564cbaa"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<h3>template<typename Renderer><br>
class Wt::WStaticModelView< Renderer ></h3>
A widget that implements a view for a non-changing model.
<p>
This model uses a function object which is passed in the constructor to render the View, and does not react to changes.<p>
You may want to use the utility function Wt::makeStaticModel() to create an instance of this class. <hr><h2>Member Function Documentation</h2>
<a class="anchor" name="07efb77007dc9311e47ee15244770426"></a><!-- doxytag: member="Wt::WStaticModelView::renderView" ref="07efb77007dc9311e47ee15244770426" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename Renderer> </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1WWidget.html">WWidget</a>* <a class="el" href="classWt_1_1WStaticModelView.html">Wt::WStaticModelView</a>< Renderer >::renderView </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td><code> [inline, protected, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Creates a widget that renders the View.
<p>
This method must be reimplemented to return a widget that renders the view. The returned widget will be deleted by WViewWidget.
<p>Implements <a class="el" href="classWt_1_1WViewWidget.html#f7df983ff1ca6e1368579f254b85fcd6">Wt::WViewWidget</a>.</p>
</div>
</div><p>
<hr><h2>Friends And Related Function Documentation</h2>
<a class="anchor" name="a2d5588b502ceb66b37ffee8a564cbaa"></a><!-- doxytag: member="Wt::WStaticModelView::makeStaticModel" ref="a2d5588b502ceb66b37ffee8a564cbaa" args="(Renderer f, WContainerWidget *parent=0)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename Renderer> </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1WStaticModelView.html">WStaticModelView</a>< Renderer > * makeStaticModel </td>
<td>(</td>
<td class="paramtype">Renderer </td>
<td class="paramname"> <em>f</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> * </td>
<td class="paramname"> <em>parent</em> = <code>0</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [related]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Wraps a widget into a view with a non-changing model.
<p>
The ViewRenderer is called without arguments and must return a newly created widget (<a class="el" href="classWt_1_1WWidget.html" title="The abstract base class for a user-interface component.">WWidget</a> *).
</div>
</div><p>
</div>
<hr size="1"><address style="align: right;"><small>
Generated on Fri Mar 26 17:12:08 2010 for <a href="http://www.webtoolkit.eu/wt/">Wt</a> by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6</small></address>
</body>
</html>
|