Updates this element to use a new Widget configuration.
void update(Widget newWidget) { widget = newWidget; }