VCF::AbstractContainer Class Reference
AbstractContainer implements the basics of a container with the exception of actual layout rules, therefore resizeChildren is not implemented. More...
#include <vcf/ApplicationKit/AbstractContainer.h>
Inheritance diagram for VCF::AbstractContainer:

Public Member Functions | |
| AbstractContainer () | |
| AbstractContainer (Component *owner) | |
| virtual | ~AbstractContainer () |
| void | init () |
| This is going to be removed from the bext release. | |
| virtual void | add (Control *child) |
| adds a child control to this container | |
| virtual void | add (Control *child, const AlignmentType &alignment) |
| adds a child control using the specified AlignmentType. | |
| virtual void | remove (Control *child) |
| removes the child control from the container - does NOT delete the control | |
| virtual void | paintChildren (GraphicsContext *context) |
| Paints all children of this container. | |
| virtual Enumerator< Control * > * | getChildren () |
| returns an Enumerator of controls that represents all the children in this container. | |
| virtual uint32 | getChildCount () |
| returns the numer of child controls that this container has. | |
| virtual Control * | findControl (const String &controlName) |
| searches through all the child controls of this container. | |
| virtual Control * | getControlAtIndex (const uint32 &index) |
| virtual int32 | getControlIndex (Control *control) |
| virtual void | updateTabOrder (Control *child, uint32 &newTabOrder) |
| virtual void | getTabList (std::vector< Control * > &tabList) |
| virtual void | insertBeforeControl (Control *child, const AlignmentType &alignment, Control *afterControl) |
| inserts a child control into this container before the control specified in beforeControl. | |
| virtual void | insertAtIndex (Control *child, const AlignmentType &alignment, const uint32 &index) |
| inserts a child control into this container after the specified index. | |
| virtual void | clear () |
| removes all child controls | |
| virtual void | sendControlToFront (Control *child) |
| Sends the specified child to the first position in containers list. | |
| virtual void | sendControlToBack (Control *child) |
| Sends the specified child to the last position in containers list. | |
| virtual void | setContainerControl (Control *control) |
| Sets the control that this container is attached to and responds to events from. | |
| virtual Control * | getContainerControl () |
Protected Member Functions | |
| void | containerResized (ControlEvent *event) |
| void | onMouseEvent (MouseEvent *event) |
Protected Attributes | |
| std::vector< Control * > | controls_ |
| EnumeratorContainer< std::vector< Control * >, Control * > | controlsContainer_ |
| std::map< int32, Control * > | tabOrderMap_ |
| int32 | currentTabControlIndex_ |
| Control * | controlContainer_ |
| EventHandler * | controlHandler_ |
| EventHandler * | mouseHandler_ |
Detailed Description
AbstractContainer implements the basics of a container with the exception of actual layout rules, therefore resizeChildren is not implemented.It is left to implementers to decide on their own what the layout rules for resizeChildren() are.
It responds to all mouse and paint events of the Control to which is attached to, and forwards them correctly to the child controls. This event forwarding only takes place if the child control is a lighweight control.
When the attached control is resized, the AbstractContainer will detect this as well and call resizeChildren() where appropriate.
Constructor & Destructor Documentation
|
|
|
|
|
|
|
|
|
Member Function Documentation
|
||||||||||||
|
adds a child control using the specified AlignmentType. The child's alignment also will get set to this value.
Implements VCF::Container. |
|
|
adds a child control to this container
Implements VCF::Container. |
|
|
removes all child controls
Implements VCF::Container. |
|
|
|
|
|
searches through all the child controls of this container. The first child control whose name matches the name passed in is returned as a result of the search. If the container ahs no children, or none of the child controls have a name that matches then NULL is returned.
Implements VCF::Container. |
|
|
returns the numer of child controls that this container has.
Implements VCF::Container. |
|
|
returns an Enumerator of controls that represents all the children in this container.
Implements VCF::Container. |
|
|
Implements VCF::Container. |
|
|
Implements VCF::Container. |
|
|
Implements VCF::Container. |
|
|
Implements VCF::Container. |
|
|
This is going to be removed from the bext release.
Reimplemented from VCF::Object. |
|
||||||||||||||||
|
inserts a child control into this container after the specified index. If the child is already present then it's order in the container list is modified accordingly. If the index specified is not within the container list's bounds then the child is added at the end of the list Implements VCF::Container. |
|
||||||||||||||||
|
inserts a child control into this container before the control specified in beforeControl. If the child is already present then it's order in the container list is modified accordingly. If the beforeControl control is not found in the list of children then the child is added at the beginning of the list Implements VCF::Container. |
|
|
|
|
|
Paints all children of this container.
Implements VCF::Container. |
|
|
removes the child control from the container - does NOT delete the control
Implements VCF::Container. |
|
|
Sends the specified child to the last position in containers list.
Implements VCF::Container. |
|
|
Sends the specified child to the first position in containers list.
Implements VCF::Container. |
|
|
Sets the control that this container is attached to and responds to events from.
Implements VCF::Container. |
|
||||||||||||
|
Implements VCF::Container. |
Member Data Documentation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The documentation for this class was generated from the following file:
- vcf/ApplicationKit/AbstractContainer.h
