Location: PHPKode > projects > Aukyla Platform > aukyla/doc/html/a00096.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <title>Aukyla PHP Framework</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="StyleSheet" href="auton.css" type="text/css" media="screen">
  </head>

  <body>
    <div id="mainmenu">
      <a href="http://www.auton.nl/" class="home">Home</a>
    </div>
    <div id="submenu">
      <a class="logo" href="http://www.auton.nl/"></a>

      <div class="head">Ads</div>
      <a href="http://sourceforge.net/"><img src="http://sourceforge.net/sflogo.php?group_id=116358&amp;type=1" alt="SourceForge.net Logo" style="padding: 2px 4px; width: 88px; height: 31px; border: 0px"></a>
      <a href="http://getfirefox.com/" title="Get Firefox - The Browser, Reloaded."><img src="http://www.mozilla.org/products/firefox/buttons/getfirefox_small.png" alt="Get Firefox" style="width: 110px; height: 32px; border: 0px"></a>
    </div>
    <div id="main">
<!-- Generated by Doxygen 1.3.9.1 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
<h1>Container Class Reference</h1><p>Inheritance diagram for Container:
<p><center><img src="a00096.png" usemap="#Container_map" border="0" alt=""></center>
<map name="Container_map">
<area href="a00166.html" alt="Widget" shape="rect" coords="0,0,151,24">
<area href="a00088.html" alt="Box" shape="rect" coords="161,112,312,136">
<area href="a00094.html" alt="ConfigEditorRadioOption" shape="rect" coords="161,168,312,192">
<area href="a00095.html" alt="ConfigTab" shape="rect" coords="161,224,312,248">
<area href="a00103.html" alt="DocumentViewer" shape="rect" coords="161,280,312,304">
<area href="a00106.html" alt="Form" shape="rect" coords="161,336,312,360">
<area href="a00114.html" alt="Input" shape="rect" coords="161,392,312,416">
<area href="a00116.html" alt="Label" shape="rect" coords="161,448,312,472">
<area href="a00123.html" alt="LoginForm" shape="rect" coords="161,504,312,528">
<area href="a00126.html" alt="Menu" shape="rect" coords="161,560,312,584">
<area href="a00140.html" alt="RadioGroup" shape="rect" coords="161,616,312,640">
<area href="a00141.html" alt="RawContainer" shape="rect" coords="161,672,312,696">
<area href="a00143.html" alt="RootContainer" shape="rect" coords="161,728,312,752">
<area href="a00149.html" alt="Section" shape="rect" coords="161,784,312,808">
<area href="a00155.html" alt="Table" shape="rect" coords="161,840,312,864">
<area href="a00157.html" alt="TableRow" shape="rect" coords="161,896,312,920">
<area href="a00164.html" alt="View" shape="rect" coords="161,952,312,976">
<area href="a00165.html" alt="ViewContainer" shape="rect" coords="161,1008,312,1032">
</map>
<a href="a00077.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
A widget that can contain other widgets. 
<p>

<p>
Definition at line <a class="el" href="a00239.html#l00240">240</a> of file <a class="el" href="a00239.html">Widgets.php</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">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00096.html#a0">__construct</a> (<a class="el" href="a00096.html">Container</a> $parent, $id= '')</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00096.html#a1">addWidget</a> (<a class="el" href="a00166.html">Widget</a> $widget)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00096.html#a2">show</a> ()</td></tr>

<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00096.html#b0">reparentChildrenTo</a> (<a class="el" href="a00096.html">Container</a> $container)</td></tr>

<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00096.html#p0">$children</a></td></tr>

</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="a0" doxytag="Container::__construct"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">Container::__construct           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a00096.html">Container</a> $&nbsp;</td>
          <td class="mdname" nowrap> <em>parent</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>id</em> = <code>''</code></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Constructor.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>parent</em>&nbsp;</td><td>The parent widget this container should be added to. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>The ID of this container.</td></tr>
  </table>
</dl>

<p>
Reimplemented from <a class="el" href="a00166.html#a0">Widget</a>.
<p>
Reimplemented in <a class="el" href="a00106.html#a0">Form</a>, <a class="el" href="a00114.html#a0">Input</a>, <a class="el" href="a00161.html#a0">TextInput</a>, <a class="el" href="a00138.html#a0">PasswordInput</a>, <a class="el" href="a00105.html#a0">FileInput</a>, <a class="el" href="a00091.html#a0">CheckboxInput</a>, <a class="el" href="a00151.html#a0">SelectInput</a>, <a class="el" href="a00159.html#a0">TextArea</a>, <a class="el" href="a00111.html#a0">HiddenInput</a>, <a class="el" href="a00089.html#a0">Button</a>, <a class="el" href="a00088.html#a0">Box</a>, <a class="el" href="a00109.html#a0">GroupBox</a>, <a class="el" href="a00117.html#a0">Line</a>, <a class="el" href="a00162.html#a0">Tooltip</a>, <a class="el" href="a00126.html#a0">Menu</a>, <a class="el" href="a00108.html#a0">GridLayout</a>, <a class="el" href="a00165.html#a0">ViewContainer</a>, <a class="el" href="a00141.html#a0">RawContainer</a>, and <a class="el" href="a00116.html#a0">Label</a>.
<p>
Definition at line <a class="el" href="a00239.html#l00248">248</a> of file <a class="el" href="a00239.html">Widgets.php</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a1" doxytag="Container::addWidget"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">Container::addWidget           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a00166.html">Widget</a> $&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>widget</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Adds a widget to the children list.<p>
<dl compact><dt><b>Note:</b></dt><dd>You shouldn't have to call this function directly as the constructor of child widgets will already call this function for you.</dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>widget</em>&nbsp;</td><td>The widget to add to the children list.</td></tr>
  </table>
</dl>

<p>
Reimplemented in <a class="el" href="a00093.html#a1">ConfigEditor</a>, <a class="el" href="a00106.html#a13">Form</a>, <a class="el" href="a00157.html#a1">TableRow</a>, and <a class="el" href="a00108.html#a2">GridLayout</a>.
<p>
Definition at line <a class="el" href="a00239.html#l00263">263</a> of file <a class="el" href="a00239.html">Widgets.php</a>.
<p>
Referenced by <a class="el" href="a00239.html#l00056">Widget::reparent()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="b0" doxytag="Container::reparentChildrenTo"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">Container::reparentChildrenTo           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a00096.html">Container</a> $&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>container</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [protected]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Reparents all children to another container. Be careful if you try reparent your children to their children, this can result in infinite loops.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>container</em>&nbsp;</td><td>The container to reparent the children to.</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="a00239.html#l00286">286</a> of file <a class="el" href="a00239.html">Widgets.php</a>.
<p>
References <a class="el" href="a00239.html#l00056">Widget::reparent()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a2" doxytag="Container::show"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">Container::show           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Shows this widget and all child widgets.
<p>
Reimplemented from <a class="el" href="a00166.html#a10">Widget</a>.
<p>
Reimplemented in <a class="el" href="a00093.html#a2">ConfigEditor</a>, <a class="el" href="a00106.html#a1">Form</a>, <a class="el" href="a00091.html#a2">CheckboxInput</a>, <a class="el" href="a00140.html#a0">RadioGroup</a>, <a class="el" href="a00159.html#a3">TextArea</a>, <a class="el" href="a00111.html#a1">HiddenInput</a>, <a class="el" href="a00089.html#a2">Button</a>, <a class="el" href="a00123.html#a1">LoginForm</a>, <a class="el" href="a00149.html#a1">Section</a>, <a class="el" href="a00088.html#a3">Box</a>, <a class="el" href="a00110.html#a0">Header</a>, <a class="el" href="a00136.html#a0">Paragraph</a>, <a class="el" href="a00118.html#a3">Link</a>, <a class="el" href="a00109.html#a3">GroupBox</a>, <a class="el" href="a00117.html#a1">Line</a>, <a class="el" href="a00126.html#a2">Menu</a>, <a class="el" href="a00127.html#a4">MenuEntry</a>, <a class="el" href="a00154.html#a2">SubMenu</a>, <a class="el" href="a00155.html#a10">Table</a>, <a class="el" href="a00165.html#a3">ViewContainer</a>, <a class="el" href="a00141.html#a2">RawContainer</a>, <a class="el" href="a00116.html#a2">Label</a>, <a class="el" href="a00168.html#a2">WindowManager</a>, and <a class="el" href="a00167.html#a13">Window</a>.
<p>
Definition at line <a class="el" href="a00239.html#l00271">271</a> of file <a class="el" href="a00239.html">Widgets.php</a>.
<p>
Referenced by <a class="el" href="a00223.html#l00235">SubMenu::show()</a>, <a class="el" href="a00223.html#l00163">MenuEntry::show()</a>, and <a class="el" href="a00215.html#l00905">Button::show()</a>.    </td>
  </tr>
</table>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="p0" doxytag="Container::$children"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">Container::$children<code> [protected]</code>          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Registered children of the class.
<p>
Reimplemented in <a class="el" href="a00106.html#p0">Form</a>, <a class="el" href="a00089.html#p0">Button</a>, <a class="el" href="a00126.html#p0">Menu</a>, <a class="el" href="a00154.html#p0">SubMenu</a>, <a class="el" href="a00157.html#p0">TableRow</a>, <a class="el" href="a00165.html#p0">ViewContainer</a>, <a class="el" href="a00143.html#p0">RootContainer</a>, and <a class="el" href="a00168.html#p0">WindowManager</a>.
<p>
Definition at line <a class="el" href="a00239.html#l00311">311</a> of file <a class="el" href="a00239.html">Widgets.php</a>.    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="a00239.html">Widgets.php</a></ul>
    </div>
  </body>
</html>
Return current item: Aukyla Platform