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
Instance Method Summary (collapse)
-
- (Array<NodeMirror>) children
This node's children.
-
- (Object) icon
Which icon to show next to the text.
-
- (Boolean) leaf?
Whether this node is a leaf node or not (different to whether or not it has children.).
-
- (String) text
Which text to show in the tree.
-
- (String or nil) tooltip_text
The text for the tooltip, or nil if no tooltip.
Methods included from Observable
#add_listener, #notify_listeners, #remove_listener
Instance Method Details
- (Array<NodeMirror>) children
This node's children
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.)
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
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
115 116 117 |
# File 'plugins/application/lib/application/tree/mirror.rb', line 115 def tooltip_text nil end |