1 class:: SCContainerView
2 summary:: An abstract superclass for container views
3 categories:: GUI>Kits>Cocoa
4 related:: Classes/CompositeView, Classes/HLayoutView, Classes/VLayoutView, Classes/ScrollView, Classes/SCTopView, Classes/SCScrollTopView
7 Users will not normally directly create instances of ContainerView, but only use it through its subclasses. It provides the basic mechanisms for container views of various kinds, which are used for placing and grouping widgets in a window.
11 subsection:: Some Important Issues Regarding ContainerView
13 Container views are meant for placing and grouping child views and widgets. While they accept key actions, many do not accept mouse clicks or drags. The exception is SCTopView and its subclasses.
20 subsection:: Accessing Instance and Class Variables
23 An automatic layout management for a container. Currently the only one existing is link::Classes/FlowLayout::.
24 note::Crucial Library also has a useful layout tool called GridLayout.::
27 method:: addFlowLayout(margin, gap)
28 A convenience utility which sets decorator to link::Classes/FlowLayout:: and returns the decorator. See link::Classes/FlowLayout:: for examples.
30 An instance of link::Classes/Point::.
32 An instance of link::Classes/Point::.
35 An array containing all the views (children) contained in the the container.
39 subsection:: Adding and Removing Subviews
42 Adds a view to children. The placement of the child view will depend on the the decorator, and the child's bounds. Normally you don't need to call this directly, since subviews call it automatically when you create them.
46 Removes all children from the view.
50 subsection:: Subclassing and Internal Methods
52 The following methods are usually not used directly or are called by a primitive. Programmers can still call or override these as needed.
58 method:: prRemoveChild