eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HierarchicalItem':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: HierarchicalItem


Inheritance:

   Object
   |
   +--AbstractHierarchicalItem
      |
      +--AbstractHierarchicalItemWithModel
         |
         +--HierarchicalItem
            |
            +--Bookmark
            |
            +--HierarchicalFileList::HierarchicalFileItem
            |
            +--HierarchicalItem::Example
            |
            +--HierarchicalItemWithLabel
            |
            +--HierarchicalItemWithValue
            |
            +--Tools::ChangeList::ListEntry
            |
            +--Tools::HierarchicalChangesetDialog::Change
            |
            +--Tools::LintRuleList::ListEntry
            |
            +--Tools::ProfilerInfoItem
            |
            +--Tools::TestRunner2::ResultList::ListEntry
            |
            +--Tools::VisualProfilerCanvas::CallTreeItem
            |
            +--VersionDiffBrowser::ClassChangeSet

Package:
stx:libwidg2
Category:
Views-Support
Version:
rev: 1.123 date: 2021/01/20 13:13:53
user: cg
file: HierarchicalItem.st directory: libwidg2
module: stx stc-classLibrary: libwidg2

Description:


Hierarchical Items are mostly like Models, but the list of
dependencies are kept by its HierarchicalList.
Instances of (subclasses of) me are used to build up hierarchical trees.
This class is usually subclassed, to add label, icon or value (reference to some info)
to the tree item.

[Instance variables:]
    parent      <Item, List or nil>         parent or my HierarchicalList.
    children    <Collection or nil>         list of children
    isExpanded  <Boolean>                   indicates whether the item is
                                            expanded or collapsed
    width       <Integer>                   cached width of displayed label
    height      <Integer>                   cached height of displayed label

copyright

COPYRIGHT (c) 1999 by eXept Software AG All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

Instance protocol:

accessing
o  height
return the cached height

o  height: something
set the cached height

o  width
return the cached width

o  width: something
set the cached width

o  width: w height: h

o  width: w height: h isExpanded: expanded

private
o  fetchChildren
should compute the list of children via the model.
The default here is to ask the model for the children.
*** to optimize: redefine in subClass

o  makeWidthAndHeightUnknown

o  setExpanded: aBoolean
set expanded flag without any computation or notification

protocol-displaying
o  heightOn: aGC
return the height of the receiver, if it is to be displayed on aGC

o  widthOn: aGC
return the width of the receiver, if it is to be displayed on aGC

queries
o  isExpanded
returns true if the item is expanded


Private classes:

    Example


ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Fri, 27 Dec 2024 00:07:54 GMT