AbstractWidget implemented. Fixes #502.