/[cvs]/nfo/php/libs/org.netfrag.patches/phphtmllib/widgets/navigation/SelectNav.inc
ViewVC logotype

Diff of /nfo/php/libs/org.netfrag.patches/phphtmllib/widgets/navigation/SelectNav.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by joko, Fri Jun 6 04:18:03 2003 UTC revision 1.2 by joko, Wed Jul 7 02:38:45 2004 UTC
# Line 4  Line 4 
4  ##  $Id$  ##  $Id$
5  ## -------------------------------------------------------------------------  ## -------------------------------------------------------------------------
6  ##  $Log$  ##  $Log$
7    ##  Revision 1.2  2004/07/07 02:38:45  joko
8    ##  now independent of Data::Lift
9    ##
10  ##  Revision 1.1  2003/06/06 04:18:03  joko  ##  Revision 1.1  2003/06/06 04:18:03  joko
11  ##  rearranged widgets  ##  rearranged widgets
12  ##  ##
# Line 33  Line 36 
36  //  It inherits from phpHtmlLib's BaseWidget to be transparently spooled  //  It inherits from phpHtmlLib's BaseWidget to be transparently spooled
37  //  down when rendering (->render!).  //  down when rendering (->render!).
38    
39  //  It uses phpHtmlLib::TreeNav::PearHtmlTreeMenuBridge to access  //  It uses some fine component libraries from PEAR to get things done.
 //  some fine component libraries from PEAR to get things done.  
40    
41  //  Please also visit its sister class phpHtmlLib::TreeNav::DHTMLTreeNav,  //  Please also visit its sister class phpHtmlLib::TreeNav::DHTMLTreeNav,
42  //  which displays a navigatable tree (expand, collapse) using JavaScript.  //  which displays a navigatable tree (expand, collapse) using JavaScript.
43    
44    require_once('HTML/TreeMenu.php');
45    
46  class SelectNav extends BaseWidget {  class SelectNav extends BaseWidget {
47    
   var $pearbridge;  
48    var $menuobject;    var $menuobject;
49    
50    function SelectNav(&$payload) {    function SelectNav(&$payload) {
51    
52      $args[payload] = &$payload;      $params = array(
53      $args[type] = 'Listbox';        type => 'kriesing',
54          structure => $payload
55      // NEW [2003-04-20]: use HTML_TreeMenu's builtin PEAR::Tree structure handler      );
56      $args[converter] = 'builtin.kriesing';      $treemenu = HTML_TreeMenu::createFromStructure($params);
57            
58      $this->pearbridge = new TreeNav_PearHtmlTreeMenuBridge(&$args);      // menu style: select box, children indented
59      $this->menuobject = $this->pearbridge->getMenuObject();      $this->menuobject = new HTML_TreeMenu_Listbox($treemenu, array('linkTarget' => '_self'));
60    
61      // initialize output the phpHtmlLib way      // initialize output the phpHtmlLib way
62        $this->_init_output();      $this->_init_output();
63    
64    }    }
65    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed