Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > b3a1f4d91c26f535919e39e25606614a > files > 2162

wt-doc-3.2.3-1.fc18.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Wt: Wt::WTableView Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Wt
   &#160;<span id="projectnumber">3.2.3</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;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>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceWt.html">Wt</a>      </li>
      <li class="navelem"><a class="el" href="classWt_1_1WTableView.html">WTableView</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Wt::WTableView Class Reference<div class="ingroups"><a class="el" href="group__modelview.html">Model/view system</a></div></div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Wt::WTableView" --><!-- doxytag: inherits="Wt::WAbstractItemView" -->
<p>An MVC View widget for tabular data.  
 <a href="classWt_1_1WTableView.html#details">More...</a></p>

<p><code>#include &lt;Wt/WTableView&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Wt::WTableView:</div>
<div class="dyncontent">
<div class="center"><img src="classWt_1_1WTableView__inherit__graph.png" border="0" usemap="#Wt_1_1WTableView_inherit__map" alt="Inheritance graph"/></div>
<map name="Wt_1_1WTableView_inherit__map" id="Wt_1_1WTableView_inherit__map">
<area shape="rect" href="classWt_1_1WAbstractItemView.html" title="An abstract base class for item Views." alt="" coords="7,229,167,256"/><area shape="rect" href="classWt_1_1WCompositeWidget.html" title="A widget that hides the implementation of composite widgets." alt="" coords="5,155,168,181"/><area shape="rect" href="classWt_1_1WWidget.html" title="The abstract base class for a user&#45;interface component." alt="" coords="37,80,136,107"/><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="39,5,135,32"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classWt_1_1WTableView-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae48531f45c05a632f0998fc569827e66"></a><!-- doxytag: member="Wt::WTableView::WTableView" ref="ae48531f45c05a632f0998fc569827e66" args="(WContainerWidget *parent=0)" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTableView.html#ae48531f45c05a632f0998fc569827e66">WTableView</a> (<a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *parent=0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classWt_1_1WWidget.html">WWidget</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTableView.html#ac5f93225e36cc02e7698f4cb7f361404">itemWidget</a> (const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;index) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the widget that renders an item.  <a href="#ac5f93225e36cc02e7698f4cb7f361404"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTableView.html#a2e3629fbaee86da21c77c4583efb79ed">setModel</a> (<a class="el" href="classWt_1_1WAbstractItemModel.html">WAbstractItemModel</a> *model)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the model.  <a href="#a2e3629fbaee86da21c77c4583efb79ed"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTableView.html#af37d27044e96919e2fa6af4e25f3ef67">setColumnWidth</a> (int column, const <a class="el" href="classWt_1_1WLength.html">WLength</a> &amp;width)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the column width.  <a href="#af37d27044e96919e2fa6af4e25f3ef67"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTableView.html#afbc128d312f1d5aa75c65352cb43e4ca">setAlternatingRowColors</a> (bool enable)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets if alternating row colors are to be used.  <a href="#afbc128d312f1d5aa75c65352cb43e4ca"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTableView.html#ab17c45b65e38c22c0230062696c36e61">setRowHeight</a> (const <a class="el" href="classWt_1_1WLength.html">WLength</a> &amp;rowHeight)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the row height.  <a href="#ab17c45b65e38c22c0230062696c36e61"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTableView.html#ab9c024f1398f5a533294611b827c10b8">setHeaderHeight</a> (const <a class="el" href="classWt_1_1WLength.html">WLength</a> &amp;height)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the header height.  <a href="#ab9c024f1398f5a533294611b827c10b8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTableView.html#ab04b345ed42cca116230b8492872a833">setColumnBorder</a> (const <a class="el" href="classWt_1_1WColor.html">WColor</a> &amp;color)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the column border color.  <a href="#ab04b345ed42cca116230b8492872a833"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTableView.html#a921a3a6c489b584b261c6b7c7bf720d8">resize</a> (const <a class="el" href="classWt_1_1WLength.html">WLength</a> &amp;width, const <a class="el" href="classWt_1_1WLength.html">WLength</a> &amp;height)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Resizes the widget.  <a href="#a921a3a6c489b584b261c6b7c7bf720d8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTableView.html#a1e27074ef479dbc2e35c957c3baea36f">setColumnHidden</a> (int column, bool hidden)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Changes the visibility of a column.  <a href="#a1e27074ef479dbc2e35c957c3baea36f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTableView.html#adb486ce9bc2e5f6771431c30a5277e24">setRowHeaderCount</a> (int count)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures the number of columns that are used as row headers.  <a href="#adb486ce9bc2e5f6771431c30a5277e24"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTableView.html#a36d7e6c66548e8bd39036a878853e0ea">pageCount</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of pages.  <a href="#a36d7e6c66548e8bd39036a878853e0ea"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTableView.html#a974c354a344dd0225dc81e6e0da94195">pageSize</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the page size.  <a href="#a974c354a344dd0225dc81e6e0da94195"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTableView.html#ab07c6b2dfb77dcb785147de0c6ad4875">currentPage</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current page.  <a href="#ab07c6b2dfb77dcb785147de0c6ad4875"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTableView.html#a4efddbc531cafc180bc620b15d0420aa">setCurrentPage</a> (int page)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the current page.  <a href="#a4efddbc531cafc180bc620b15d0420aa"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTableView.html#a6c66e72dff5811a1c14fbbd2e603c765">scrollTo</a> (const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;index, <a class="el" href="classWt_1_1WAbstractItemView.html#af1f29928f9ba120153db2588b464730f">ScrollHint</a> hint=EnsureVisible)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Scrolls the view to an item.  <a href="#a6c66e72dff5811a1c14fbbd2e603c765"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTableView.html#a9e1f2fd7ab637cdbfbd05492046258f2">setHidden</a> (bool hidden, const <a class="el" href="classWt_1_1WAnimation.html">WAnimation</a> &amp;animation=<a class="el" href="classWt_1_1WAnimation.html">WAnimation</a>())</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Hides or shows the widget.  <a href="#a9e1f2fd7ab637cdbfbd05492046258f2"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>An MVC View widget for tabular data. </p>
<p>The view displays data from a <a class="el" href="classWt_1_1WAbstractItemModel.html" title="An abstract model for use with Wt&#39;s view classes.">WAbstractItemModel</a> in a table. It provides incremental rendering, without excessive use of client- or serverside resources.</p>
<p>The rendering (and editing) of items is handled by a <a class="el" href="classWt_1_1WAbstractItemDelegate.html" title="Abstract delegate class for rendering an item in an item view.">WAbstractItemDelegate</a>, by default it uses <a class="el" href="classWt_1_1WItemDelegate.html" title="Standard delegate class for rendering a view item.">WItemDelegate</a> which renders data of all predefined roles (see also <a class="el" href="group__modelview.html#ga0ae864e12320f9f89172735e075ed068" title="Enumeration that indicates a role for a data item.">Wt::ItemDataRole</a>), including text, icons, checkboxes, and tooltips.</p>
<p>The view provides virtual scrolling in both horizontal and vertical directions, and can therefore be used to display large data models (with large number of columns and rows).</p>
<p>The view may support editing of items, if the model indicates support (see the <a class="el" href="group__modelview.html#gga1d77c4de293aebfacbdde124de06b8b0a8664c482d721bbcb73539a924c7a9fab" title="Item can be edited.">Wt::ItemIsEditable</a> flag). You can define triggers that initiate editing of an item using <a class="el" href="classWt_1_1WAbstractItemView.html#a93d2efc8642a6b9c55b35b7665a13da5" title="Configures what actions should trigger editing.">setEditTriggers()</a>. The actual editing is provided by the item delegate (you can set an appropriate delegate for one column using <a class="el" href="classWt_1_1WAbstractItemView.html#a574bc36ec752012ba4a613e0e11e064e" title="Sets the delegate for a column.">setItemDelegateForColumn()</a>). Using <a class="el" href="classWt_1_1WAbstractItemView.html#a9a5506e031a514696c4050ccc1521b6c" title="Configures editing options.">setEditOptions()</a> you can customize if and how the view deals with multiple editors.</p>
<p>By default, all columns are given a width of 150px. Column widths of all columns can be set through the API method <a class="el" href="classWt_1_1WTableView.html#af37d27044e96919e2fa6af4e25f3ef67" title="Sets the column width.">setColumnWidth()</a>, and also by the user using handles provided in the header.</p>
<p>If the model supports sorting (<a class="el" href="classWt_1_1WAbstractItemModel.html#a133931424d4daa8422bcdea911cda713" title="Sorts the model according to a particular column.">WAbstractItemModel::sort()</a>), such as the <a class="el" href="classWt_1_1WStandardItemModel.html" title="A standard data model, which stores its data in memory.">WStandardItemModel</a>, then you can enable sorting buttons in the header, using <a class="el" href="classWt_1_1WAbstractItemView.html#ae1c86a0f37f97f63aed3b00fd8ffad7c" title="Enables or disables sorting for all columns.">setSortingEnabled()</a>.</p>
<p>You can allow selection on row or item level (using <a class="el" href="classWt_1_1WAbstractItemView.html#ad59b47cf9a1c5a65c5adc3e1900ceb5c" title="Changes the selection behaviour.">setSelectionBehavior()</a>), and selection of single or multiple items (using <a class="el" href="classWt_1_1WAbstractItemView.html#af6fcd9761e2f7a3b497d3563c849d320" title="Sets the selection mode.">setSelectionMode()</a>), and listen for changes in the selection using the <a class="el" href="classWt_1_1WAbstractItemView.html#ada37ffbe2d470dd227c8714645f150f0" title="Signal emitted when the selection is changed.">selectionChanged()</a> signal.</p>
<p>You may enable drag &amp; drop support for this view, whith awareness of the items in the model. When enabling dragging (see <a class="el" href="classWt_1_1WAbstractItemView.html#a0ca99b835708d990b90000917045738e" title="Enables the selection to be dragged (drag &amp; drop).">setDragEnabled()</a>), the current selection may be dragged, but only when all items in the selection indicate support for dragging (controlled by the <a class="el" href="group__modelview.html#gga1d77c4de293aebfacbdde124de06b8b0a2b0edddfd15d67a84723c9043479ced1">ItemIsDragEnabled</a> flag), and if the model indicates a mime-type (controlled by <a class="el" href="classWt_1_1WAbstractItemModel.html#a4c62d2cc18d133d7926a91b4f2eebe62" title="Returns a mime-type for dragging a set of indexes.">WAbstractItemModel::mimeType()</a>). Likewise, by enabling support for dropping (see <a class="el" href="classWt_1_1WAbstractItemView.html#a1eda46c8e9a21af7f6281e7096af8fbe" title="Enables drop operations (drag &amp; drop).">setDropsEnabled()</a>), the view may receive a drop event on a particular item, at least if the item indicates support for drops (controlled by the <a class="el" href="group__modelview.html#gga1d77c4de293aebfacbdde124de06b8b0a95d23063251001545d4bfab1308879a3">ItemIsDropEnabled</a> flag).</p>
<p>You may also react to mouse click events on any item, by connecting to one of the <a class="el" href="classWt_1_1WAbstractItemView.html#a3b72d5f8e5b0afdea83e224354d3e91b" title="Signal emitted when an item is clicked.">clicked()</a> or <a class="el" href="classWt_1_1WAbstractItemView.html#a14ac099f58621d66834aa5674ea8ecb5" title="Signal emitted when an item is double clicked.">doubleClicked()</a> signals.</p>
<h3>CSS</h3>
<p>The tableview is styled by the current CSS theme. The look can be overridden using the <code>Wt-tableview</code> CSS class and the following selectors.</p>
<p>Selectors that apply to the body: </p>
<div class="fragment"><pre class="fragment">
 .Wt-tableview .Wt-tv-contents : the main div used when javascript is available
 .Wt-tableview .Wt-plaintable  : the main table used when no javascript is 
                                 available
 .Wt-tableview .Wt-pagingbar   : the paging bar
 </pre></div><p> Selectors that apply to the header: </p>
<div class="fragment"><pre class="fragment">
 .Wt-tableview .Wt-header      : header background div
 .Wt-tableview .Wt-headertable : div in the .Wt-header div to enable the 
                                 header scrolling
 .Wt-tableview .Wt-label       : header label
 .Wt-tableview .Wt-tv-rh       : column resize handle
 .Wt-tableview .Wt-tv-sh-up    : column sort handle, no sorting
 .Wt-tableview .Wt-tv-sh-none  : column sort handle, sort up
 .Wt-tableview .Wt-tv-sh-down  : column sort handle, sort down
 .Wt-tableview .Wt-tv-br             : header border
 </pre></div><p> Selectors that apply to the table contents: </p>
<div class="fragment"><pre class="fragment">
 .Wt-tableview .Wt-spacer      : spacer for non-loaded content
 .Wt-tableview .Wt-selected    : selected item
 .Wt-tableview .Wt-drop-site   : possible drop site
 .Wt-tableview .Wt-tv-c        : cell style
 </pre></div> </div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ab07c6b2dfb77dcb785147de0c6ad4875"></a><!-- doxytag: member="Wt::WTableView::currentPage" ref="ab07c6b2dfb77dcb785147de0c6ad4875" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WTableView::currentPage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the current page. </p>
<p>When Ajax/JavaScript is not available, the view will use a paging navigation bar to allow scrolling through the data. This returns the current page (between 0 and <a class="el" href="classWt_1_1WTableView.html#a36d7e6c66548e8bd39036a878853e0ea" title="Returns the number of pages.">pageCount()</a> - 1).</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractItemView.html#a22303f489d5081d70b5bb8e8ff059948" title="Returns a page navigation widget.">createPageNavigationBar()</a>, <a class="el" href="classWt_1_1WAbstractItemView.html#a419257bb553d44423d4d4d5325d61ec7" title="Signal emitted when page information was updated.">pageChanged()</a> </dd></dl>

<p>Implements <a class="el" href="classWt_1_1WAbstractItemView.html#a66b3bd22b9d57d9c466280a2f96b44c3">Wt::WAbstractItemView</a>.</p>

</div>
</div>
<a class="anchor" id="ac5f93225e36cc02e7698f4cb7f361404"></a><!-- doxytag: member="Wt::WTableView::itemWidget" ref="ac5f93225e36cc02e7698f4cb7f361404" args="(const WModelIndex &amp;index) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WWidget.html">WWidget</a> * Wt::WTableView::itemWidget </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the widget that renders an item. </p>
<p>This returns the widget that renders the given item. This may return 0 if the item is currently not rendered.</p>
<p>This widget has been created by an item delegate, and usually an item delegate is involved when updating it. </p>

<p>Implements <a class="el" href="classWt_1_1WAbstractItemView.html#a5b7d40b94b5254b52417f5cf2200ec30">Wt::WAbstractItemView</a>.</p>

</div>
</div>
<a class="anchor" id="a36d7e6c66548e8bd39036a878853e0ea"></a><!-- doxytag: member="Wt::WTableView::pageCount" ref="a36d7e6c66548e8bd39036a878853e0ea" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WTableView::pageCount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the number of pages. </p>
<p>When Ajax/JavaScript is not available, the view will use a paging navigation bar to allow scrolling through the data. This returns the number of pages currently shown.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractItemView.html#a22303f489d5081d70b5bb8e8ff059948" title="Returns a page navigation widget.">createPageNavigationBar()</a>, <a class="el" href="classWt_1_1WAbstractItemView.html#a419257bb553d44423d4d4d5325d61ec7" title="Signal emitted when page information was updated.">pageChanged()</a> </dd></dl>

<p>Implements <a class="el" href="classWt_1_1WAbstractItemView.html#a370beb06a2e6c82659756ba63a516b14">Wt::WAbstractItemView</a>.</p>

</div>
</div>
<a class="anchor" id="a974c354a344dd0225dc81e6e0da94195"></a><!-- doxytag: member="Wt::WTableView::pageSize" ref="a974c354a344dd0225dc81e6e0da94195" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WTableView::pageSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the page size. </p>
<p>When Ajax/JavaScript is not available, the view will use a paging navigation bar to allow scrolling through the data. This returns the number of items per page.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractItemView.html#a22303f489d5081d70b5bb8e8ff059948" title="Returns a page navigation widget.">createPageNavigationBar()</a>, <a class="el" href="classWt_1_1WAbstractItemView.html#a419257bb553d44423d4d4d5325d61ec7" title="Signal emitted when page information was updated.">pageChanged()</a> </dd></dl>

<p>Implements <a class="el" href="classWt_1_1WAbstractItemView.html#a2cc5d8f54c95a4d8d45c86ea85b428e9">Wt::WAbstractItemView</a>.</p>

</div>
</div>
<a class="anchor" id="a921a3a6c489b584b261c6b7c7bf720d8"></a><!-- doxytag: member="Wt::WTableView::resize" ref="a921a3a6c489b584b261c6b7c7bf720d8" args="(const WLength &amp;width, const WLength &amp;height)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTableView::resize </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WLength.html">WLength</a> &amp;&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WLength.html">WLength</a> &amp;&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Resizes the widget. </p>
<p>Specifies a fixed size for this widget, setting CSS <code>width</code> and <code>height</code> properties. By default a widget has automatic width and height, which sets a size for the widget following CSS rules.</p>
<p>When the widget is not managed by a layout manager, the automatic (natural) size of a widget depends on whether they widget is a <em>block</em> or <em>inline</em> widget:</p>
<ul>
<li>a <em>block</em> widget takes by default the width of the parent, and the height that it needs based on its contents</li>
<li>an <em>inline</em> widget takes the width and height that it needs based on its contents (possibly wrapping over multiple lines). The width and height of an inline widget cannot be changed (by the letter of CSS, although most browsers will react to it in varying ways).</li>
</ul>
<p>When inserted in a layout manager, the size set will be used as a widget's preferred size, but the widget may be given a different size by the layout manager based on available space and stretch factors. The actual size given by a layout manager may be retrieved by making the widget "layout size aware", using <a class="el" href="classWt_1_1WWidget.html#a4f83592912a7f8fa4fd35dadde78ee74" title="Sets the widget to be aware of its size set by a layout manager.">setLayoutSizeAware()</a>. If you have defined a <code>"wtResize()"</code> JavaScript method for the widget, then this method will also be called.</p>
<p>The default width and height of a widget is <a class="el" href="classWt_1_1WLength.html#a0cf39ca4225776879d56ade60320c31a" title="An &#39;auto&#39; length.">WLength::Auto</a>.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WCompositeWidget.html#a3358bb9a93e5c7999c4f6d39d9880c8f" title="Returns the width.">width()</a>, <a class="el" href="classWt_1_1WCompositeWidget.html#ab20c559ba960c80be16572293df7fd96" title="Returns the height.">height()</a> </dd></dl>

<p>Reimplemented from <a class="el" href="classWt_1_1WCompositeWidget.html#a976e94e38c7a9cc0f212e13a9792912e">Wt::WCompositeWidget</a>.</p>

</div>
</div>
<a class="anchor" id="a6c66e72dff5811a1c14fbbd2e603c765"></a><!-- doxytag: member="Wt::WTableView::scrollTo" ref="a6c66e72dff5811a1c14fbbd2e603c765" args="(const WModelIndex &amp;index, ScrollHint hint=EnsureVisible)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTableView::scrollTo </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;&#160;</td>
          <td class="paramname"><em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classWt_1_1WAbstractItemView.html#af1f29928f9ba120153db2588b464730f">ScrollHint</a>&#160;</td>
          <td class="paramname"><em>hint</em> = <code>EnsureVisible</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Scrolls the view to an item. </p>
<p>Scrolls the view to ensure that the item which represents the provided <code>index</code> is visible. A <code>hint</code> may indicate how the item should appear in the viewport (if possible).</p>
<dl class="note"><dt><b>Note:</b></dt><dd>Currently only implemented to scroll to the correct row, not taking into account the column. </dd></dl>

<p>Implements <a class="el" href="classWt_1_1WAbstractItemView.html#a027a8ad4967a0e269bdabbffca15f489">Wt::WAbstractItemView</a>.</p>

</div>
</div>
<a class="anchor" id="afbc128d312f1d5aa75c65352cb43e4ca"></a><!-- doxytag: member="Wt::WTableView::setAlternatingRowColors" ref="afbc128d312f1d5aa75c65352cb43e4ca" args="(bool enable)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTableView::setAlternatingRowColors </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets if alternating row colors are to be used. </p>
<p>Configure whether rows get alternating background colors, defined by the current CSS theme.</p>
<p>The default value is <code>false</code>. </p>

<p>Reimplemented from <a class="el" href="classWt_1_1WAbstractItemView.html#a9d22f8c92ddf7259f32496f55d9d50ec">Wt::WAbstractItemView</a>.</p>

</div>
</div>
<a class="anchor" id="ab04b345ed42cca116230b8492872a833"></a><!-- doxytag: member="Wt::WTableView::setColumnBorder" ref="ab04b345ed42cca116230b8492872a833" args="(const WColor &amp;color)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTableView::setColumnBorder </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WColor.html">WColor</a> &amp;&#160;</td>
          <td class="paramname"><em>color</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the column border color. </p>
<p>The default border color is defined by the CSS theme. </p>

<p>Implements <a class="el" href="classWt_1_1WAbstractItemView.html#a6b58e9040dfbe9547cb737c7d5e71e0f">Wt::WAbstractItemView</a>.</p>

</div>
</div>
<a class="anchor" id="a1e27074ef479dbc2e35c957c3baea36f"></a><!-- doxytag: member="Wt::WTableView::setColumnHidden" ref="a1e27074ef479dbc2e35c957c3baea36f" args="(int column, bool hidden)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTableView::setColumnHidden </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>column</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>hide</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Changes the visibility of a column. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractItemView.html#ac7cd89d9f08ab3fa6493cae2b9f596fc" title="Returns if a column is hidden.">isColumnHidden()</a> </dd></dl>

<p>Reimplemented from <a class="el" href="classWt_1_1WAbstractItemView.html#a120156dc59eaf3608916b679d937c5b8">Wt::WAbstractItemView</a>.</p>

</div>
</div>
<a class="anchor" id="af37d27044e96919e2fa6af4e25f3ef67"></a><!-- doxytag: member="Wt::WTableView::setColumnWidth" ref="af37d27044e96919e2fa6af4e25f3ef67" args="(int column, const WLength &amp;width)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTableView::setColumnWidth </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>column</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WLength.html">WLength</a> &amp;&#160;</td>
          <td class="paramname"><em>width</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the column width. </p>
<p>The default column width is 150 pixels.</p>
<dl class="note"><dt><b>Note:</b></dt><dd>The actual space occupied by each column is the column width augmented by 7 pixels for internal padding and a border. </dd></dl>

<p>Implements <a class="el" href="classWt_1_1WAbstractItemView.html#aa80794ca5438e2b9971e8f85919353fd">Wt::WAbstractItemView</a>.</p>

</div>
</div>
<a class="anchor" id="a4efddbc531cafc180bc620b15d0420aa"></a><!-- doxytag: member="Wt::WTableView::setCurrentPage" ref="a4efddbc531cafc180bc620b15d0420aa" args="(int page)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTableView::setCurrentPage </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>page</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the current page. </p>
<p>When Ajax/JavaScript is not available, the view will use a paging navigation bar to allow scrolling through the data. This method can be used to change the current page.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractItemView.html#a22303f489d5081d70b5bb8e8ff059948" title="Returns a page navigation widget.">createPageNavigationBar()</a>, <a class="el" href="classWt_1_1WAbstractItemView.html#a419257bb553d44423d4d4d5325d61ec7" title="Signal emitted when page information was updated.">pageChanged()</a> </dd></dl>

<p>Implements <a class="el" href="classWt_1_1WAbstractItemView.html#a71585006c31128c3d606cc976b865008">Wt::WAbstractItemView</a>.</p>

</div>
</div>
<a class="anchor" id="ab9c024f1398f5a533294611b827c10b8"></a><!-- doxytag: member="Wt::WTableView::setHeaderHeight" ref="ab9c024f1398f5a533294611b827c10b8" args="(const WLength &amp;height)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTableView::setHeaderHeight </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WLength.html">WLength</a> &amp;&#160;</td>
          <td class="paramname"><em>height</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the header height. </p>
<p>The default value is 20 pixels. </p>

<p>Reimplemented from <a class="el" href="classWt_1_1WAbstractItemView.html#a0ab90f396e9cdb563e45a9a35f7dfc8a">Wt::WAbstractItemView</a>.</p>

</div>
</div>
<a class="anchor" id="a9e1f2fd7ab637cdbfbd05492046258f2"></a><!-- doxytag: member="Wt::WTableView::setHidden" ref="a9e1f2fd7ab637cdbfbd05492046258f2" args="(bool hidden, const WAnimation &amp;animation=WAnimation())" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTableView::setHidden </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>hidden</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WAnimation.html">WAnimation</a> &amp;&#160;</td>
          <td class="paramname"><em>animation</em> = <code><a class="el" href="classWt_1_1WAnimation.html">WAnimation</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Hides or shows the widget. </p>
<p>Hides or show the widget (including all its descendant widgets). When setting <code>hidden</code> = <code>false</code>, this widget and all descendant widgets that are not hidden will be shown. A widget is only visible if it and all its ancestors in the widget tree are visible, which may be checked using <a class="el" href="classWt_1_1WCompositeWidget.html#a1ae4501ce5807c22b71532d9fd564337" title="Returns whether the widget is visible.">isVisible()</a>. </p>

<p>Reimplemented from <a class="el" href="classWt_1_1WCompositeWidget.html#a2c905ba0dd649609a6a29b89b3438e1b">Wt::WCompositeWidget</a>.</p>

</div>
</div>
<a class="anchor" id="a2e3629fbaee86da21c77c4583efb79ed"></a><!-- doxytag: member="Wt::WTableView::setModel" ref="a2e3629fbaee86da21c77c4583efb79ed" args="(WAbstractItemModel *model)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTableView::setModel </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WAbstractItemModel.html">WAbstractItemModel</a> *&#160;</td>
          <td class="paramname"><em>model</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the model. </p>
<p>The View will display data of the given <code>model</code> and changes in the model are reflected by the View.</p>
<p>The initial model is <code>0</code>.</p>
<p>Ownership of the model is not transferred (and thus the previously set model is not deleted). A model may not be deleted as long as a view exists for it.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractItemView.html#a3f8ecef3dac343faa00efc801e4e4c1f" title="Sets the root index.">setRootIndex()</a> </dd></dl>

<p>Reimplemented from <a class="el" href="classWt_1_1WAbstractItemView.html#ab6a137595a1c6ddb9406d328a3cbf261">Wt::WAbstractItemView</a>.</p>

</div>
</div>
<a class="anchor" id="adb486ce9bc2e5f6771431c30a5277e24"></a><!-- doxytag: member="Wt::WTableView::setRowHeaderCount" ref="adb486ce9bc2e5f6771431c30a5277e24" args="(int count)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTableView::setRowHeaderCount </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>count</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Configures the number of columns that are used as row headers. </p>
<p>An item view does not use the vertical header data from the model in any way, but instead you can configure data in the first column(s) to be used as a row headers.</p>
<p>These columns will not scroll horizontally together with the rest of the model.</p>
<p>The default value is 0.</p>
<dl class="note"><dt><b>Note:</b></dt><dd>Currently, this property must be set before any other settings of the view and only a value of 0 or 1 is supported. </dd></dl>

<p>Reimplemented from <a class="el" href="classWt_1_1WAbstractItemView.html#adf338c1002ce189de836de6f5d445cc4">Wt::WAbstractItemView</a>.</p>

</div>
</div>
<a class="anchor" id="ab17c45b65e38c22c0230062696c36e61"></a><!-- doxytag: member="Wt::WTableView::setRowHeight" ref="ab17c45b65e38c22c0230062696c36e61" args="(const WLength &amp;rowHeight)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTableView::setRowHeight </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WLength.html">WLength</a> &amp;&#160;</td>
          <td class="paramname"><em>rowHeight</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the row height. </p>
<p>The view renders all rows with a same height. This method configures this row height.</p>
<p>The default value is 20 pixels.</p>
<dl class="note"><dt><b>Note:</b></dt><dd>The height must be specified in <a class="el" href="classWt_1_1WLength.html#a908caf5d6be7e244e24598e6d22cd4c0a0b1fa4c1bd7adb92e1a04d62b96d30ba" title="Pixel, relative to canvas resolution.">WLength::Pixel</a> units.</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTableView.html#af37d27044e96919e2fa6af4e25f3ef67" title="Sets the column width.">setColumnWidth()</a> </dd></dl>

<p>Reimplemented from <a class="el" href="classWt_1_1WAbstractItemView.html#a7ffe86a3f0b58272125abc2a20b997ad">Wt::WAbstractItemView</a>.</p>

</div>
</div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr size="1"><address style="text-align: right; margin: 3px"><small>
Generated on Thu Nov 1 2012 for <a href="http://www.webtoolkit.eu/wt">the
C++ Web Toolkit (Wt)</a> by&nbsp;<a
href="http://www.doxygen.org/index.html"><img src="doxygen.png"
alt="doxygen" border="0" style="vertical-align: middle; display:
inline-block; height: 2em"></a> 1.7.5.1</small></address>
</body>
</html>