Update WidgetImpl.java