UIGadget uiGadget = event.getSource().createUIComponent(context, UIGadget.class, null, null);
uiGadget.setState(new TransientApplicationState<Gadget>(application.getApplicationName()));
UIDashboardContainer uiDashboardContainer = uiDashboard.getChild(UIDashboardContainer.class);
uiDashboardContainer.addUIGadget(uiGadget, col, row);
uiDashboardContainer.save();
context.addUIComponentToUpdateByAjax(uiDashboardContainer);
}
}
public static class MoveGadgetActionListener extends EventListener<UIDashboard> {
@Override