Wt  3.2.1
Public Member Functions | Protected Member Functions
Wt::Ext::Component Class Reference

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

#include <Wt/Ext/Component>

Inheritance diagram for Wt::Ext::Component:
Inheritance graph
[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 Files Functions Variables Typedefs Enumerations Enumerator

Generated on Fri Mar 30 2012 for the C++ Web Toolkit (Wt) by doxygen 1.7.5.1