JX Application Framework
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
JTreeList Class Reference

#include <JTreeList.h>

Inheritance diagram for JTreeList:
[legend]

Classes

class  NodeChanged
 
class  NodeClosed
 
class  NodeInserted
 
class  NodeMessage
 
class  NodeOpened
 
class  NodeRemoved
 

Public Member Functions

 JTreeList (JTree *tree)
 
 ~JTreeList () override
 
JTreeGetTree ()
 
const JTreeGetTree () const
 
bool IndexValid (const JIndex index) const
 
JTreeNodeGetNode (const JIndex index)
 
const JTreeNodeGetNode (const JIndex index) const
 
bool FindNode (const JTreeNode *node, JIndex *index) const
 
bool IsVisible (const JTreeNode *node) const
 
void MakeVisible (const JTreeNode *node)
 
bool IsOpen (const JIndex index) const
 
bool IsOpen (const JTreeNode *node) const
 
bool Open (const JIndex index)
 
bool Open (const JTreeNode *node)
 
void Close (const JIndex index)
 
void Close (const JTreeNode *node)
 
void Toggle (const JIndex index)
 
void Toggle (const JTreeNode *node)
 
void OpenSiblings (const JIndex index)
 
void OpenSiblings (const JTreeNode *node)
 
void CloseSiblings (const JIndex index)
 
void CloseSiblings (const JTreeNode *node)
 
bool OpenDescendants (const JIndex index, const JSize maxDepth)
 
bool OpenDescendants (const JTreeNode *node, const JSize maxDepth)
 
void CloseDescendants (const JIndex index)
 
void CloseDescendants (const JTreeNode *node)
 
- Public Member Functions inherited from JContainer
 JContainer ()
 
 JContainer (const JContainer &source)
 
JContaineroperator= (const JContainer &source)
 
- Public Member Functions inherited from JCollection
 JCollection ()
 
 JCollection (const JCollection &source)
 
 ~JCollection () override
 
JCollectionoperator= (const JCollection &source)
 
JSize GetItemCount () const
 
bool IsEmpty () const
 
bool IndexValid (const JIndex index) const
 
JIndex GetIndexFromEnd (const JIndex index) const
 
JString ToString () const override
 
- Public Member Functions inherited from JBroadcaster
 JBroadcaster ()
 
virtual ~JBroadcaster ()
 
JBroadcasteroperator= (const JBroadcaster &source)
 
bool HasSenders () const
 
JSize GetSenderCount () const
 
bool HasRecipients () const
 
JSize GetRecipientCount () const
 
template<class T >
void ListenTo (const JBroadcaster *sender, const std::function< void(const T &)> &f)
 

Static Public Attributes

static const JUtf8BytekNodeInserted = "NodeInserted::JTreeList"
 
static const JUtf8BytekNodeRemoved = "NodeRemoved::JTreeList"
 
static const JUtf8BytekNodeChanged = "NodeChanged::JTreeList"
 
static const JUtf8BytekNodeOpened = "NodeOpened::JTreeList"
 
static const JUtf8BytekNodeClosed = "NodeClosed::JTreeList"
 

Protected Member Functions

virtual bool ShouldOpenSibling (const JTreeNode *node)
 
virtual bool ShouldOpenDescendant (const JTreeNode *node)
 
void Receive (JBroadcaster *sender, const Message &message) override
 
- Protected Member Functions inherited from JContainer
void InstallCollection (JCollection *list)
 
const JCollectionGetList () const
 
- Protected Member Functions inherited from JCollection
void ItemAdded ()
 
void ItemRemoved ()
 
void SetItemCount (const JSize newItemCount)
 
- Protected Member Functions inherited from JBroadcaster
 JBroadcaster (const JBroadcaster &source)
 
void ListenTo (const JBroadcaster *sender)
 
void StopListening (const JBroadcaster *sender)
 
void ClearWhenGoingAway (const JBroadcaster *sender, void *pointerToMember)
 
void StopListening (const JBroadcaster *sender, const std::type_info &messageType)
 
template<class T >
void Send (JBroadcaster *recipient, const T &message)
 
template<class T >
void Broadcast (const T &message)
 
void SendWithFeedback (JBroadcaster *recipient, Message *message)
 
void BroadcastWithFeedback (Message *message)
 
virtual void ReceiveWithFeedback (JBroadcaster *sender, Message *message)
 
virtual void ReceiveGoingAway (JBroadcaster *sender)
 

Detailed Description

Converts a JTree into a linear list for display in a table.

Constructor & Destructor Documentation

◆ JTreeList()

JTreeList::JTreeList ( JTree tree)

◆ ~JTreeList()

JTreeList::~JTreeList ( )
override

Member Function Documentation

◆ Close() [1/2]

void JTreeList::Close ( const JIndex  index)
inline

◆ Close() [2/2]

void JTreeList::Close ( const JTreeNode node)

◆ CloseDescendants() [1/2]

void JTreeList::CloseDescendants ( const JIndex  index)
inline

◆ CloseDescendants() [2/2]

void JTreeList::CloseDescendants ( const JTreeNode node)

Closes the node and its descendants.

◆ CloseSiblings() [1/2]

void JTreeList::CloseSiblings ( const JIndex  index)
inline

◆ CloseSiblings() [2/2]

void JTreeList::CloseSiblings ( const JTreeNode node)

Closes the node and its siblings.

◆ FindNode()

bool JTreeList::FindNode ( const JTreeNode node,
JIndex index 
) const
inline

◆ GetNode() [1/2]

JTreeNode * JTreeList::GetNode ( const JIndex  index)
inline

◆ GetNode() [2/2]

const JTreeNode * JTreeList::GetNode ( const JIndex  index) const
inline

◆ GetTree() [1/2]

JTree * JTreeList::GetTree ( )
inline

◆ GetTree() [2/2]

const JTree * JTreeList::GetTree ( ) const
inline

◆ IndexValid()

bool JTreeList::IndexValid ( const JIndex  index) const
inline

◆ IsOpen() [1/2]

bool JTreeList::IsOpen ( const JIndex  index) const
inline

◆ IsOpen() [2/2]

bool JTreeList::IsOpen ( const JTreeNode node) const
inline

◆ IsVisible()

bool JTreeList::IsVisible ( const JTreeNode node) const
inline

◆ MakeVisible()

void JTreeList::MakeVisible ( const JTreeNode node)

◆ Open() [1/2]

bool JTreeList::Open ( const JIndex  index)
inline

◆ Open() [2/2]

bool JTreeList::Open ( const JTreeNode node)

◆ OpenDescendants() [1/2]

bool JTreeList::OpenDescendants ( const JIndex  index,
const JSize  maxDepth 
)
inline

◆ OpenDescendants() [2/2]

bool JTreeList::OpenDescendants ( const JTreeNode node,
const JSize  maxDepth 
)

Opens the node and its descendants, down to maxDepth. If maxDepth == 1, only the node itself is opened.

◆ OpenSiblings() [1/2]

void JTreeList::OpenSiblings ( const JIndex  index)
inline

◆ OpenSiblings() [2/2]

void JTreeList::OpenSiblings ( const JTreeNode node)

Opens the node and its siblings.

◆ Receive()

void JTreeList::Receive ( JBroadcaster sender,
const Message message 
)
overrideprotectedvirtual

Keep the number of items up to date.

Reimplemented from JContainer.

◆ ShouldOpenDescendant()

bool JTreeList::ShouldOpenDescendant ( const JTreeNode node)
protectedvirtual

Returns true if sibling should be opened.

◆ ShouldOpenSibling()

bool JTreeList::ShouldOpenSibling ( const JTreeNode node)
protectedvirtual

Returns true if sibling should be opened.

◆ Toggle() [1/2]

void JTreeList::Toggle ( const JIndex  index)

◆ Toggle() [2/2]

void JTreeList::Toggle ( const JTreeNode node)

Member Data Documentation

◆ kNodeChanged

const JUtf8Byte * JTreeList::kNodeChanged = "NodeChanged::JTreeList"
static

◆ kNodeClosed

const JUtf8Byte * JTreeList::kNodeClosed = "NodeClosed::JTreeList"
static

◆ kNodeInserted

const JUtf8Byte * JTreeList::kNodeInserted = "NodeInserted::JTreeList"
static

◆ kNodeOpened

const JUtf8Byte * JTreeList::kNodeOpened = "NodeOpened::JTreeList"
static

◆ kNodeRemoved

const JUtf8Byte * JTreeList::kNodeRemoved = "NodeRemoved::JTreeList"
static

The documentation for this class was generated from the following files: