Module: Redcar::Tree::Mirror::NodeMirror

Includes:
Observable
Included in:
Project::DirMirror::Node, Runnables::HelpItem, Runnables::Runnable, Runnables::RunnableGroup, Scm::ScmChangesMirror::Change, Scm::ScmChangesMirror::ChangesNode, Scm::ScmCommitsMirror::Commit, Scm::ScmCommitsMirror::CommitsNode, Redcar::Textmate::BundleNode, Redcar::Textmate::EmptyTree, Redcar::Textmate::SnippetGroup, Redcar::Textmate::SnippetNode, WebBookmarks::Bookmark, WebBookmarks::BookmarkReloadItem
Defined in:
plugins/application/lib/application/tree/mirror.rb

Overview

This is the required interface of a ROW in a TreeView.

Constant Summary

Constant Summary

Constants included from Observable

Observable::ASPECTS

Instance Method Summary (collapse)

Methods included from Observable

#add_listener, #notify_listeners, #remove_listener

Instance Method Details

- (Array<NodeMirror>) children

This node's children

Returns:



100
101
102
# File 'plugins/application/lib/application/tree/mirror.rb', line 100

def children
  []
end

- (Object) icon

Which icon to show next to the text



93
94
95
# File 'plugins/application/lib/application/tree/mirror.rb', line 93

def icon
  nil
end

- (Boolean) leaf?

Whether this node is a leaf node or not (different to whether or not it has children.)

Returns:

  • (Boolean)


108
109
110
# File 'plugins/application/lib/application/tree/mirror.rb', line 108

def leaf?
  true
end

- (String) text

Which text to show in the tree

Returns:



88
89
90
# File 'plugins/application/lib/application/tree/mirror.rb', line 88

def text
  raise "not implemented"
end

- (String or nil) tooltip_text

The text for the tooltip, or nil if no tooltip

Returns:



115
116
117
# File 'plugins/application/lib/application/tree/mirror.rb', line 115

def tooltip_text
  nil
end