setType

public final Unit setType(Control.DefaultType type)

Changes the current control to one defined in the package.

If you also want to change the background for the type, use setTypeAndBackground instead.

Parameters

type

The new control type.