@PostConstruct public void init() { model = new DefaultDashboardModel(); DashboardColumn column1 = new DefaultDashboardColumn(); DashboardColumn column2 = new DefaultDashboardColumn(); DashboardColumn column3 = new DefaultDashboardColumn(); column1.addWidget("sports"); column1.addWidget("finance"); column2.addWidget("lifestyle"); column2.addWidget("weather"); column3.addWidget("politics"); model.addColumn(column1); model.addColumn(column2); model.addColumn(column3); }
public PortalController() { model = new DefaultDashboardModel(); DashboardColumn column1 = new DefaultDashboardColumn(); DashboardColumn column2 = new DefaultDashboardColumn(); DashboardColumn column3 = new DefaultDashboardColumn(); DashboardColumn column4 = new DefaultDashboardColumn(); column1.addWidget("users"); column1.addWidget("distribuicaoClientes"); column2.addWidget("boletos"); column2.addWidget("danf"); column3.addWidget("pedidos"); model.addColumn(column1); model.addColumn(column2); model.addColumn(column3); model.addColumn(column4); }