Wt
3.2.0
|
An abstract base class for widgets that can be visually disabled. More...
#include <Wt/Ext/Component>
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. |
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.
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.