Wt: Wt::Ext::Component Class Reference

Wt 3.3.0

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Hierarchy
- Class Members

Public Member Functions | Protected Member Functions
Wt::Ext::Component Class Reference
Ext widgets (Wt::Ext, deprecated)

An abstract base class for widgets that can be visually disabled. More...

`#include <Wt/Ext/Component>`

Inheritance diagram for Wt::Ext::Component:
[legend]

List of all members.

## Public Member Functions
void | setEnabled (bool how)
| Enables or disables the widget.
void | enable ()
| Enables the widget.
void | disable ()
| Disables the widget.
## Protected Member Functions
virtual void | propagateSetEnabled (bool enabled)
| Propagates that a widget was enabled or disabled through children.

## Detailed Description

An abstract base class for widgets that can be visually disabled.

Component is the abstract base class of all major Ext widgets, and offers an API to enable or disable a widget.

## Member Function Documentation

void Wt::Ext::Component::propagateSetEnabled | ( | bool | enabled | ) | `[protected, virtual]`

Propagates that a widget was enabled or disabled through children.

When enabling or disabling a widget, you usually also want to disable contained children. This method is called by setDisabled() to propagate its state to all children.

You may want to reimplement this method if they wish to render differently when a widget is disabled. The default implementation will propagate the signal to all children.

Reimplemented from Wt::WWebWidget.

void Wt::Ext::Component::setEnabled | ( | bool | how | ) |

Enables or disables the widget.

See also:
  setDisabled()

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator