Sophie

Sophie

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

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::WLineEdit 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_1WLineEdit.html">WLineEdit</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Wt::WLineEdit Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Wt::WLineEdit" --><!-- doxytag: inherits="Wt::WFormWidget" -->
<p>A widget that provides a single line edit.  
 <a href="classWt_1_1WLineEdit.html#details">More...</a></p>

<p><code>#include &lt;Wt/WLineEdit&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Wt::WLineEdit:</div>
<div class="dyncontent">
<div class="center"><img src="classWt_1_1WLineEdit__inherit__graph.png" border="0" usemap="#Wt_1_1WLineEdit_inherit__map" alt="Inheritance graph"/></div>
<map name="Wt_1_1WLineEdit_inherit__map" id="Wt_1_1WLineEdit_inherit__map">
<area shape="rect" href="classWt_1_1WAbstractSpinBox.html" title="An abstract spin box." alt="" coords="75,453,232,480"/><area shape="rect" href="classWt_1_1WFormWidget.html" title="An abstract widget that corresponds to an HTML form element." alt="" coords="88,304,219,331"/><area shape="rect" href="classWt_1_1WInteractWidget.html" title="An abstract widget that can receive user&#45;interface interaction." alt="" coords="81,229,225,256"/><area shape="rect" href="classWt_1_1WWebWidget.html" title="A base class for widgets with an HTML counterpart." alt="" coords="89,155,217,181"/><area shape="rect" href="classWt_1_1WWidget.html" title="The abstract base class for a user&#45;interface component." alt="" coords="104,80,203,107"/><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="105,5,201,32"/><area shape="rect" href="classWt_1_1WDoubleSpinBox.html" title="An input control for fixed point numbers." alt="" coords="5,528,152,555"/><area shape="rect" href="classWt_1_1WSpinBox.html" title="An input control for integer numbers." alt="" coords="176,528,283,555"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classWt_1_1WLineEdit-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLineEdit.html#a2654d590e41b758cca16739d4bf0159c">EchoMode</a> { <a class="el" href="classWt_1_1WLineEdit.html#a2654d590e41b758cca16739d4bf0159ca4ebd4885d3cb474d78a43c414d71181d">Normal</a>, 
<a class="el" href="classWt_1_1WLineEdit.html#a2654d590e41b758cca16739d4bf0159cad8804194006eac81d4072805a0d74666">Password</a>
 }</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Enumeration that describes how the contents is displayed.  <a href="classWt_1_1WLineEdit.html#a2654d590e41b758cca16739d4bf0159c">More...</a><br/></td></tr>
<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="a287f11cd278eccfd293c7cc715f72b65"></a><!-- doxytag: member="Wt::WLineEdit::WLineEdit" ref="a287f11cd278eccfd293c7cc715f72b65" args="(WContainerWidget *parent=0)" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLineEdit.html#a287f11cd278eccfd293c7cc715f72b65">WLineEdit</a> (<a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *parent=0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a line edit with empty content and optional parent. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a40fe6e402a904911e7389e4e16498b05"></a><!-- doxytag: member="Wt::WLineEdit::WLineEdit" ref="a40fe6e402a904911e7389e4e16498b05" args="(const WString &amp;content, WContainerWidget *parent=0)" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLineEdit.html#a40fe6e402a904911e7389e4e16498b05">WLineEdit</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;content, <a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *parent=0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a line edit with given content and optional parent. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLineEdit.html#a4c6c5a52deefa5a246e0638f1572d0d8">setTextSize</a> (int chars)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Specifies the width of the line edit in number of characters.  <a href="#a4c6c5a52deefa5a246e0638f1572d0d8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLineEdit.html#af2886f31812bd56dea9897606546f5f6">textSize</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current width of the line edit in number of characters.  <a href="#af2886f31812bd56dea9897606546f5f6"></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_1WLineEdit.html#addb99c6ab5483836adf44a2706a410af">setText</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;text)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the content of the line edit.  <a href="#addb99c6ab5483836adf44a2706a410af"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLineEdit.html#ac74b58779cb635898cac13e81d8b0c7a">text</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current content.  <a href="#ac74b58779cb635898cac13e81d8b0c7a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLineEdit.html#aaeca334d8a47be029b6a44912b01ed5d">setMaxLength</a> (int length)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Specifies the maximum length of text that can be entered.  <a href="#aaeca334d8a47be029b6a44912b01ed5d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLineEdit.html#a0f5d01ba6e862a856b283d600e65e6ff">maxLength</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the maximum length of text that can be entered.  <a href="#a0f5d01ba6e862a856b283d600e65e6ff"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLineEdit.html#a27c9bc232bea0ab76ee266be3325a10e">setEchoMode</a> (<a class="el" href="classWt_1_1WLineEdit.html#a2654d590e41b758cca16739d4bf0159c">EchoMode</a> echoMode)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the echo mode.  <a href="#a27c9bc232bea0ab76ee266be3325a10e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WLineEdit.html#a2654d590e41b758cca16739d4bf0159c">EchoMode</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLineEdit.html#a7454516e7195cecf2f990af35b1470d7">echoMode</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the echo mode.  <a href="#a7454516e7195cecf2f990af35b1470d7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLineEdit.html#adb99191dd8589416f75060e73799eddb">selectionStart</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current selection start.  <a href="#adb99191dd8589416f75060e73799eddb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WString.html">WString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLineEdit.html#a838b9d03e94a86be02476bb32044fc75">selectedText</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the currently selected text.  <a href="#a838b9d03e94a86be02476bb32044fc75"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLineEdit.html#a2376aae9311b5e658e44e52b1ffe38fd">hasSelectedText</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns whether there is selected text.  <a href="#a2376aae9311b5e658e44e52b1ffe38fd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLineEdit.html#a5b6904686629a61be78396dc47dcfe05">cursorPosition</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current cursor position.  <a href="#a5b6904686629a61be78396dc47dcfe05"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classWt_1_1WString.html">WString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLineEdit.html#aa4214d114b118083522ffa60fffc21ed">valueText</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current value.  <a href="#aa4214d114b118083522ffa60fffc21ed"></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_1WLineEdit.html#a7e1c637181cc280810d51e3af45c4642">setValueText</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;value)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the current value.  <a href="#a7e1c637181cc280810d51e3af45c4642"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></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_1WLineEdit.html#af347d0ad651b76abea5ee5dcae295db1">boxPadding</a> (<a class="el" href="namespaceWt.html#a2a8d45559e16a0185bf61bfad0a67912">Orientation</a> orientation) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the widget's built-in padding.  <a href="#af347d0ad651b76abea5ee5dcae295db1"></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_1WLineEdit.html#a337dcba8f79f886b86c0d9bf7b721c75">boxBorder</a> (<a class="el" href="namespaceWt.html#a2a8d45559e16a0185bf61bfad0a67912">Orientation</a> orientation) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the widget's built-in border width.  <a href="#a337dcba8f79f886b86c0d9bf7b721c75"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A widget that provides a single line edit. </p>
<p>To act upon text changes, connect a slot to the <a class="el" href="classWt_1_1WFormWidget.html#a5216ba1594b5dc525cc47cad593c7ba8" title="Signal emitted when the value was changed.">changed()</a> signal. This signal is emitted when the user changed the content, and subsequently removes the focus from the line edit.</p>
<p>To act upon editing, connect a slot to the <a class="el" href="classWt_1_1WInteractWidget.html#a7602bfbe38090d4acca674afc02f15c8" title="Event signal emitted when a keyboard key is released.">keyWentUp()</a> signal because the <a class="el" href="classWt_1_1WInteractWidget.html#a6d4c957a92eb6ffec59a638dd384c6c9" title="Event signal emitted when a &quot;character&quot; was entered.">keyPressed()</a> signal is fired before the line edit has interpreted the keypress to change its text.</p>
<p>At all times, the current content may be accessed with the <a class="el" href="classWt_1_1WLineEdit.html#ac74b58779cb635898cac13e81d8b0c7a" title="Returns the current content.">text()</a> method.</p>
<p>You may specify a maximum length for the input using <a class="el" href="classWt_1_1WLineEdit.html#aaeca334d8a47be029b6a44912b01ed5d" title="Specifies the maximum length of text that can be entered.">setMaxLength()</a>. If you wish to provide more detailed input validation, you may set a validator using the <a class="el" href="classWt_1_1WFormWidget.html#aa773d16013d6959149ce5081e84b259c" title="Sets a validator for this field.">setValidator(WValidator *)</a> method. Validators provide, in general, both client-side validation (as visual feed-back only) and server-side validation when calling <a class="el" href="classWt_1_1WFormWidget.html#a7960606393d6158abb4a2d8c9d8fd2ef" title="Validates the field.">validate()</a>.</p>
<p>Usage example: </p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classWt_1_1WContainerWidget.html" title="A widget that holds and manages child widgets.">Wt::WContainerWidget</a> *w = <span class="keyword">new</span> <a class="code" href="classWt_1_1WContainerWidget.html" title="A widget that holds and manages child widgets.">Wt::WContainerWidget</a>();
 <a class="code" href="classWt_1_1WLabel.html" title="A label for a form field.">Wt::WLabel</a> *label = <span class="keyword">new</span> <a class="code" href="classWt_1_1WLabel.html" title="A label for a form field.">Wt::WLabel</a>(<span class="stringliteral">&quot;Age:&quot;</span>, w);
 <a class="code" href="classWt_1_1WLineEdit.html" title="A widget that provides a single line edit.">Wt::WLineEdit</a> *edit = <span class="keyword">new</span> <a class="code" href="classWt_1_1WLineEdit.html#a287f11cd278eccfd293c7cc715f72b65" title="Creates a line edit with empty content and optional parent.">Wt::WLineEdit</a>(<span class="stringliteral">&quot;13&quot;</span>, w);
 edit-&gt;<a class="code" href="classWt_1_1WFormWidget.html#aa773d16013d6959149ce5081e84b259c" title="Sets a validator for this field.">setValidator</a>(<span class="keyword">new</span> <a class="code" href="classWt_1_1WIntValidator.html" title="A validator that validates integer user input.">Wt::WIntValidator</a>(0, 200));
 label-&gt;<a class="code" href="classWt_1_1WLabel.html#af468c613eab7d184c68fd6ae20978de5" title="Sets the buddy of this label.">setBuddy</a>(edit);
</pre></div><p>The widget corresponds to the HTML <code>&lt;input type="text"&gt;</code> or <code>&lt;input type="password"&gt;</code> tag.</p>
<p>WLineEdit is an <a class="el" href="classWt_1_1WWidget.html#ac78e3af143883334c82031790c87416e">inline </a> widget.</p>
<h3>CSS</h3>
<p>The emptyText style can be configured via .Wt-edit-emptyText, other styling can be done using inline or external CSS as appropriate.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTextArea.html" title="A widget that provides a multi-line edit.">WTextArea</a> </dd></dl>
</div><hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="a2654d590e41b758cca16739d4bf0159c"></a><!-- doxytag: member="Wt::WLineEdit::EchoMode" ref="a2654d590e41b758cca16739d4bf0159c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classWt_1_1WLineEdit.html#a2654d590e41b758cca16739d4bf0159c">Wt::WLineEdit::EchoMode</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Enumeration that describes how the contents is displayed. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WLineEdit.html#a27c9bc232bea0ab76ee266be3325a10e" title="Sets the echo mode.">setEchoMode(EchoMode)</a> </dd></dl>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a2654d590e41b758cca16739d4bf0159ca4ebd4885d3cb474d78a43c414d71181d"></a><!-- doxytag: member="Normal" ref="a2654d590e41b758cca16739d4bf0159ca4ebd4885d3cb474d78a43c414d71181d" args="" -->Normal</em>&nbsp;</td><td>
<p>Characters are shown. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a2654d590e41b758cca16739d4bf0159cad8804194006eac81d4072805a0d74666"></a><!-- doxytag: member="Password" ref="a2654d590e41b758cca16739d4bf0159cad8804194006eac81d4072805a0d74666" args="" -->Password</em>&nbsp;</td><td>
<p>Hide the contents as for a password. </p>
</td></tr>
</table>
</dd>
</dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a337dcba8f79f886b86c0d9bf7b721c75"></a><!-- doxytag: member="Wt::WLineEdit::boxBorder" ref="a337dcba8f79f886b86c0d9bf7b721c75" args="(Orientation orientation) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WLineEdit::boxBorder </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceWt.html#a2a8d45559e16a0185bf61bfad0a67912">Orientation</a>&#160;</td>
          <td class="paramname"><em>orientation</em></td><td>)</td>
          <td> const<code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the widget's built-in border width. </p>
<p>This is used by the layout managers to correct for a built-in border which interferes with setting a widget's width (or height) to 100%.</p>
<p>A layout manager needs to set the width to 100% only for form widgets (<a class="el" href="classWt_1_1WTextArea.html" title="A widget that provides a multi-line edit.">WTextArea</a>, <a class="el" href="classWt_1_1WLineEdit.html" title="A widget that provides a single line edit.">WLineEdit</a>, <a class="el" href="classWt_1_1WComboBox.html" title="A widget that provides a drop-down combo-box control.">WComboBox</a>, etc...). Therefore, only for those widgets this needs to return the border width (the default implementation returns 0).</p>
<p>For form widgets, the border width depends on the specific browser/platform combination, unless an explicit border is set for the widget.</p>
<p>When setting an explicit border for the widget using a style class, you will want to reimplement this method to return this border width, in case you want to set the widget inside a layout manager.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WLineEdit.html#af347d0ad651b76abea5ee5dcae295db1" title="Returns the widget&#39;s built-in padding.">boxPadding()</a> </dd></dl>

<p>Reimplemented from <a class="el" href="classWt_1_1WWidget.html#a6bd6a9d01afbc4f96c4ec7dd48db9126">Wt::WWidget</a>.</p>

</div>
</div>
<a class="anchor" id="af347d0ad651b76abea5ee5dcae295db1"></a><!-- doxytag: member="Wt::WLineEdit::boxPadding" ref="af347d0ad651b76abea5ee5dcae295db1" args="(Orientation orientation) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WLineEdit::boxPadding </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceWt.html#a2a8d45559e16a0185bf61bfad0a67912">Orientation</a>&#160;</td>
          <td class="paramname"><em>orientation</em></td><td>)</td>
          <td> const<code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the widget's built-in padding. </p>
<p>This is used by the layout managers to correct for a built-in padding which interferes with setting a widget's width (or height) to 100%.</p>
<p>A layout manager needs to set the width to 100% only for form widgets (<a class="el" href="classWt_1_1WTextArea.html" title="A widget that provides a multi-line edit.">WTextArea</a>, <a class="el" href="classWt_1_1WLineEdit.html" title="A widget that provides a single line edit.">WLineEdit</a>, <a class="el" href="classWt_1_1WComboBox.html" title="A widget that provides a drop-down combo-box control.">WComboBox</a>, etc...). Therefore, only for those widgets this needs to return the padding (the default implementation returns 0).</p>
<p>For form widgets, the padding depends on the specific browser/platform combination, unless an explicit padding is set for the widget.</p>
<p>When setting an explicit padding for the widget using a style class, you will want to reimplement this method to return this padding in case you want to set the widget inside a layout manager.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WLineEdit.html#a337dcba8f79f886b86c0d9bf7b721c75" title="Returns the widget&#39;s built-in border width.">boxBorder()</a> </dd></dl>

<p>Reimplemented from <a class="el" href="classWt_1_1WWidget.html#ab4cfd6bd5bea1a6182731ec79a78792c">Wt::WWidget</a>.</p>

<p>Reimplemented in <a class="el" href="classWt_1_1WAbstractSpinBox.html#aa55e6a2ea1a13091e65b22c0118a900b">Wt::WAbstractSpinBox</a>.</p>

</div>
</div>
<a class="anchor" id="a5b6904686629a61be78396dc47dcfe05"></a><!-- doxytag: member="Wt::WLineEdit::cursorPosition" ref="a5b6904686629a61be78396dc47dcfe05" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WLineEdit::cursorPosition </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the current cursor position. </p>
<p>Returns -1 if the widget does not have the focus. </p>

</div>
</div>
<a class="anchor" id="a7454516e7195cecf2f990af35b1470d7"></a><!-- doxytag: member="Wt::WLineEdit::echoMode" ref="a7454516e7195cecf2f990af35b1470d7" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WLineEdit.html#a2654d590e41b758cca16739d4bf0159c">EchoMode</a> Wt::WLineEdit::echoMode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the echo mode. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WLineEdit.html#a27c9bc232bea0ab76ee266be3325a10e" title="Sets the echo mode.">setEchoMode(EchoMode)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a2376aae9311b5e658e44e52b1ffe38fd"></a><!-- doxytag: member="Wt::WLineEdit::hasSelectedText" ref="a2376aae9311b5e658e44e52b1ffe38fd" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Wt::WLineEdit::hasSelectedText </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns whether there is selected text. </p>
<dl class="see"><dt><b>See also:</b></dt><dd>selectedtext() </dd></dl>

</div>
</div>
<a class="anchor" id="a0f5d01ba6e862a856b283d600e65e6ff"></a><!-- doxytag: member="Wt::WLineEdit::maxLength" ref="a0f5d01ba6e862a856b283d600e65e6ff" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WLineEdit::maxLength </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the maximum length of text that can be entered. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WLineEdit.html#aaeca334d8a47be029b6a44912b01ed5d" title="Specifies the maximum length of text that can be entered.">setMaxLength(int)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a838b9d03e94a86be02476bb32044fc75"></a><!-- doxytag: member="Wt::WLineEdit::selectedText" ref="a838b9d03e94a86be02476bb32044fc75" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WString.html">WString</a> Wt::WLineEdit::selectedText </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the currently selected text. </p>
<p>Returns an empty string if there is currently no selected text.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WLineEdit.html#a2376aae9311b5e658e44e52b1ffe38fd" title="Returns whether there is selected text.">hasSelectedText()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="adb99191dd8589416f75060e73799eddb"></a><!-- doxytag: member="Wt::WLineEdit::selectionStart" ref="adb99191dd8589416f75060e73799eddb" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WLineEdit::selectionStart </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the current selection start. </p>
<p>Returns -1 if there is no selected text.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WLineEdit.html#a2376aae9311b5e658e44e52b1ffe38fd" title="Returns whether there is selected text.">hasSelectedText()</a>, <a class="el" href="classWt_1_1WLineEdit.html#a838b9d03e94a86be02476bb32044fc75" title="Returns the currently selected text.">selectedText()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a27c9bc232bea0ab76ee266be3325a10e"></a><!-- doxytag: member="Wt::WLineEdit::setEchoMode" ref="a27c9bc232bea0ab76ee266be3325a10e" args="(EchoMode echoMode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WLineEdit::setEchoMode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WLineEdit.html#a2654d590e41b758cca16739d4bf0159c">EchoMode</a>&#160;</td>
          <td class="paramname"><em>echoMode</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the echo mode. </p>
<p>The default echo mode is Normal. </p>

</div>
</div>
<a class="anchor" id="aaeca334d8a47be029b6a44912b01ed5d"></a><!-- doxytag: member="Wt::WLineEdit::setMaxLength" ref="aaeca334d8a47be029b6a44912b01ed5d" args="(int length)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WLineEdit::setMaxLength </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>length</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Specifies the maximum length of text that can be entered. </p>
<p>A value &lt;= 0 indicates that there is no limit.</p>
<p>The default value is -1. </p>

</div>
</div>
<a class="anchor" id="addb99c6ab5483836adf44a2706a410af"></a><!-- doxytag: member="Wt::WLineEdit::setText" ref="addb99c6ab5483836adf44a2706a410af" args="(const WString &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WLineEdit::setText </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the content of the line edit. </p>
<p>The default value is "".</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WLineEdit.html#ac74b58779cb635898cac13e81d8b0c7a" title="Returns the current content.">text()</a> </dd></dl>

<p>Reimplemented in <a class="el" href="classWt_1_1WAbstractSpinBox.html#ad47216be4a24336445d770cee9c82b5c">Wt::WAbstractSpinBox</a>.</p>

</div>
</div>
<a class="anchor" id="a4c6c5a52deefa5a246e0638f1572d0d8"></a><!-- doxytag: member="Wt::WLineEdit::setTextSize" ref="a4c6c5a52deefa5a246e0638f1572d0d8" args="(int chars)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WLineEdit::setTextSize </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>chars</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Specifies the width of the line edit in number of characters. </p>
<p>This specifies the width of the line edit that is roughly equivalent with <code>chars</code> characters. This does not limit the maximum length of a string that may be entered, which may be set using <a class="el" href="classWt_1_1WLineEdit.html#aaeca334d8a47be029b6a44912b01ed5d" title="Specifies the maximum length of text that can be entered.">setMaxLength(int)</a>.</p>
<p>The default value is 10. </p>

</div>
</div>
<a class="anchor" id="a7e1c637181cc280810d51e3af45c4642"></a><!-- doxytag: member="Wt::WLineEdit::setValueText" ref="a7e1c637181cc280810d51e3af45c4642" args="(const WString &amp;value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WLineEdit::setValueText </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the current value. </p>
<p>Calls <a class="el" href="classWt_1_1WLineEdit.html#addb99c6ab5483836adf44a2706a410af" title="Sets the content of the line edit.">setText()</a>. </p>

<p>Implements <a class="el" href="classWt_1_1WFormWidget.html#a129d31b145f2614f608a852ca4e91731">Wt::WFormWidget</a>.</p>

</div>
</div>
<a class="anchor" id="ac74b58779cb635898cac13e81d8b0c7a"></a><!-- doxytag: member="Wt::WLineEdit::text" ref="ac74b58779cb635898cac13e81d8b0c7a" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classWt_1_1WString.html">WString</a>&amp; Wt::WLineEdit::text </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the current content. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WLineEdit.html#addb99c6ab5483836adf44a2706a410af" title="Sets the content of the line edit.">setText()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="af2886f31812bd56dea9897606546f5f6"></a><!-- doxytag: member="Wt::WLineEdit::textSize" ref="af2886f31812bd56dea9897606546f5f6" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WLineEdit::textSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the current width of the line edit in number of characters. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WLineEdit.html#a4c6c5a52deefa5a246e0638f1572d0d8" title="Specifies the width of the line edit in number of characters.">setTextSize(int)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aa4214d114b118083522ffa60fffc21ed"></a><!-- doxytag: member="Wt::WLineEdit::valueText" ref="aa4214d114b118083522ffa60fffc21ed" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WString.html">WString</a> Wt::WLineEdit::valueText </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 value. </p>
<p>Returns <a class="el" href="classWt_1_1WLineEdit.html#ac74b58779cb635898cac13e81d8b0c7a" title="Returns the current content.">text()</a>. </p>

<p>Implements <a class="el" href="classWt_1_1WFormWidget.html#a9e1ffd440abc07ce883d0a7b1a3883f6">Wt::WFormWidget</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>