|
Wt examples
3.3.0
|
A single node in a file tree table. More...
#include <FileTreeTableNode.h>

Public Member Functions | |
| FileTreeTableNode (const boost::filesystem::path &path) | |
| Construct a new node for the given file. More... | |
Public Member Functions inherited from Wt::WTreeTableNode | |
| WTreeTableNode (const WString &labelText, WIconPair *labelIcon=0, WTreeTableNode *parentNode=0) | |
| void | setColumnWidget (int column, WWidget *item) |
| WWidget * | columnWidget (int column) |
| WTreeTable * | table () const |
| virtual void | insertChildNode (int index, WTreeNode *node) |
Public Member Functions inherited from Wt::WTreeNode | |
| WTreeNode (const WString &labelText, WIconPair *labelIcon=0, WTreeNode *parentNode=0) | |
| ~WTreeNode () | |
| virtual WTree * | tree () const |
| WText * | label () const |
| WIconPair * | labelIcon () const |
| void | setLabelIcon (WIconPair *labelIcon) |
| void | addChildNode (WTreeNode *node) |
| void | removeChildNode (WTreeNode *node) |
| const std::vector< WTreeNode * > & | childNodes () const |
| virtual int | displayedChildCount () const |
| void | setChildCountPolicy (ChildCountPolicy policy) |
| ChildCountPolicy | childCountPolicy () const |
| void | setImagePack (const std::string &url) |
| void | setLoadPolicy (LoadPolicy loadPolicy) |
| bool | isExpanded () const |
| void | setSelectable (bool selectable) |
| virtual bool | isSelectable () const |
| WTreeNode * | parentNode () const |
| void | setNodeVisible (bool visible) |
| void | setChildrenDecorated (bool decorated) |
| void | setInteractive (bool interactive) |
| void | expand () |
| void | collapse () |
| EventSignal< WMouseEvent > & | expanded () |
| EventSignal< WMouseEvent > & | collapsed () |
| Signal< bool > & | selected () |
Private Member Functions | |
| virtual void | populate () |
| Reimplements WTreeNode::populate to read files within a directory. More... | |
| virtual bool | expandable () |
| Reimplements WTreeNode::expandable. More... | |
Static Private Member Functions | |
| static Wt::WIconPair * | createIcon (const boost::filesystem::path &path) |
| Create the iconpair for representing the path. More... | |
Private Attributes | |
| boost::filesystem::path | path_ |
| The path. More... | |
Additional Inherited Members | |
Public Types inherited from Wt::WTreeNode | |
| enum | LoadPolicy |
| enum | ChildCountPolicy |
Public Attributes inherited from Wt::WTreeNode | |
| LazyLoading | |
| PreLoading | |
| NextLevelLoading | |
| Disabled | |
| Enabled | |
| Lazy | |
Protected Member Functions inherited from Wt::WTreeTableNode | |
| virtual void | setTable (WTreeTable *table) |
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.
| FileTreeTableNode::FileTreeTableNode | ( | const boost::filesystem::path & | path) |
|
staticprivate |
Create the iconpair for representing the path.
Definition at line 60 of file FileTreeTableNode.C.
|
privatevirtual |
Reimplements WTreeNode::expandable.
Reimplemented from Wt::WTreeNode.
Definition at line 90 of file FileTreeTableNode.C.
|
privatevirtual |
Reimplements WTreeNode::populate to read files within a directory.
Reimplemented from Wt::WTreeNode.
Definition at line 71 of file FileTreeTableNode.C.
|
private |
The path.
Definition at line 37 of file FileTreeTableNode.h.
1.8.4