Package honeycrm.server.test.small.mocks

Source Code of honeycrm.server.test.small.mocks.LoadViewMock

package honeycrm.server.test.small.mocks;

import honeycrm.client.mvp.presenters.LoadPresenter.Display;

import com.google.gwt.user.client.ui.HasText;

public class LoadViewMock implements Display {
  private final HasText indicator;
  private boolean visible = false;

  public LoadViewMock() {
    this.indicator = new HasText() {
      private String text = "";

      @Override
      public void setText(String text) {
        this.text  = text;
      }
     
      @Override
      public String getText() {
        return text;
      }
    };
  }
 
  @Override
  public void showLoadingIndicator(boolean isVisible) {
    this.visible = isVisible;
  }

}
TOP

Related Classes of honeycrm.server.test.small.mocks.LoadViewMock

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.