class Alf::IAlfContainerWidget : public Alf::IAlfWidget |
The interface for container widget.
Container widget maintains it's own control group. When a widget control is set to container widget throught the IAlfWidget::setControl() - method the control is automatically appended to the container widget's control group. If the control that is being set to the container widget is already part of another control group it will be removed from the previous control group and appended to the container widget's control group.
Public Member Functions | |
---|---|
~IAlfContainerWidget () | |
void | addWidget ( IAlfWidget &) |
void | applyLayout ( IAlfLayoutManager &) |
IAlfWidget * | getWidget (int) |
int | getWidgetIndex ( IAlfWidget &) |
void | removeWidget (int) |
const IfId & | type () |
int | widgetCount () |
void | addWidget | ( | IAlfWidget & | aWidget | ) | [pure virtual] |
Adds a child widget to the container.
This will throw an osncore::AlfException exception with error code osncore::EInvalidArgument if the aWidget is the same widget that the container widget itself or if user tries to add a view widget into a container widget.
Adding a widget instance that is already added will be silently ignored.
osncore::AlfException |
with error code osncore::EInvalidArgument if the aWidget is the same widget as the container widget or when a view widget is attempted to be added to a container. |
IAlfWidget & aWidget | Child widget to be added to container. |
void | applyLayout | ( | IAlfLayoutManager & | aLayout | ) | [pure virtual] |
Sets the base layout of container widget. Ownership of the layout manager is transferred to container widget.
IAlfLayoutManager & aLayout | New base layout of container widget. |
IAlfWidget * | getWidget | ( | int | aIndex | ) | const [pure virtual] |
Returns child widget at given index. If index is not found return null.
int aIndex | Index of widget to be returned. |
int | getWidgetIndex | ( | IAlfWidget & | aWidget | ) | const [pure virtual] |
Returns the child index, when given the child widget.
IAlfWidget & aWidget | child widget, which index is returned |
void | removeWidget | ( | int | aIndex | ) | [pure virtual] |
Removes the child widget from given index.
If widget for the given index is not found then the call is silently ignored.
int aIndex | Index from which widget has to be removed. |
int | widgetCount | ( | ) | const [pure virtual] |
Returns total number of widgets contained by this container.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.