Control.getAcceptsChildren

Overview | Methods | Fields | This Package | All Packages

Control.getAcceptsChildren

Retrieves a boolean value indicating whether this control can contain child controls.

Syntax

public final boolean getAcceptsChildren()

Return Value

Returns true if this control can contain children; otherwise, returns false.

Remarks

Derived control classes can specify whether they accept children by passing STYLE_ACCEPTSCHILDREN as the flag parameter to the setStyle method as shown in the following line of code.

setStyle(STYLE_ACCEPTSCHILDREN, true);