FileTreeTableNode Class Reference
[File Explorer example]

A single node in a file tree table. More...

#include <FileTreeTableNode.h>

Inheritance diagram for FileTreeTableNode:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 FileTreeTableNode (const boost::filesystem::path &path)
 Construct a new node for the given file.

Private Member Functions

virtual void populate ()
 Reimplements WTreeNode::populate to read files within a directory.
virtual bool expandable ()
 Reimplements WTreeNode::expandable.

Static Private Member Functions

static Wt::WIconPaircreateIcon (const boost::filesystem::path &path)
 Create the iconpair for representing the path.

Private Attributes

boost::filesystem::path path_
 The path.


Detailed Description

A single node in a file tree table.

The node manages the details about one file, and if the file is a directory, populates a subtree with nodes for every directory item.

The tree node reimplements Wt::WTreeTableNode::populate() to populate a directory node only when the node is expanded. In this way, only directories that are actually browsed are loaded from disk.

Definition at line 28 of file FileTreeTableNode.h.


Constructor & Destructor Documentation

FileTreeTableNode::FileTreeTableNode ( const boost::filesystem::path &  path  ) 

Construct a new node for the given file.

Definition at line 22 of file FileTreeTableNode.C.


Member Function Documentation

void FileTreeTableNode::populate (  )  [private, virtual]

Reimplements WTreeNode::populate to read files within a directory.

Reimplemented from Wt::WTreeNode.

Definition at line 64 of file FileTreeTableNode.C.

bool FileTreeTableNode::expandable (  )  [private, virtual]

Reimplements WTreeNode::expandable.

Reimplemented from Wt::WTreeNode.

Definition at line 83 of file FileTreeTableNode.C.

WIconPair * FileTreeTableNode::createIcon ( const boost::filesystem::path &  path  )  [static, private]

Create the iconpair for representing the path.

Definition at line 53 of file FileTreeTableNode.C.


Member Data Documentation

boost::filesystem::path FileTreeTableNode::path_ [private]

The path.

Definition at line 37 of file FileTreeTableNode.h.


The documentation for this class was generated from the following files:
Generated on Fri Jul 25 17:06:01 2008 for Wt by doxygen 1.5.3