I have created a dashboard that is Singleton. But I want to refresh(reload the default values) it every time a button is clicked. What could be best possible way to achieve this?
Code for the class:
public class UserDashboard extends Composite{ private static UserDashboard userDash= new UserDashboard(); private UserDashboard(){ initWidget(uiBinder.createAndBindUi(this)); } public static UserDashboard getDashInstance(){ return userDash; }}