Package honeycrm.client.mvp.presenters

Examples of honeycrm.client.mvp.presenters.DetailPresenter$Display


            }
            return 0;
        }
        public boolean isPressed(int keycode, int location) {
            X11 lib = X11.INSTANCE;
            Display dpy = lib.XOpenDisplay(null);
            if (dpy == null) {
                throw new Error("Can't open X Display");
            }
            try {
                byte[] keys = new byte[32];
View Full Code Here


            if (didCheck) {
                return alphaVisualIDs;
            }
            didCheck = true;
            X11 x11 = X11.INSTANCE;
            Display dpy = x11.XOpenDisplay(null);
            if (dpy == null)
                return alphaVisualIDs;
            XVisualInfo info = null;
            try {
                int screen = x11.XDefaultScreen(dpy);
View Full Code Here

                throw new UnsupportedOperationException("This X11 display does not provide a 32-bit visual");
            }
            Runnable action = new Runnable() {
                public void run() {
                    X11 x11 = X11.INSTANCE;
                    Display dpy = x11.XOpenDisplay(null);
                    if (dpy == null)
                        return;
                    try {
                        X11.Window win = getDrawable(w);
                        if (alpha == 1f) {
View Full Code Here

        private void setWindowShape(final Window w, final PixmapSource src) {
            Runnable action = new Runnable() {
                public void run() {
                    X11 x11 = X11.INSTANCE;
                    Display dpy = x11.XOpenDisplay(null);
                    if (dpy == null) {
                        return;
                    }
                    Pixmap pm = null;
                    try {
View Full Code Here

    expect(view.getData()).andReturn(d);

    replay(view);
    replay(createService);

    this.presenter = new DetailPresenter(eventBus, module, readService, updateService, createService, view);
    presenter.onSave();
  }
View Full Code Here

    });
   
    replay(view);
    replay(updateService);
   
    presenter = new DetailPresenter(eventBus, module, readService, updateService, createService, view);
    presenter.onSave();
  }
View Full Code Here

    presenter.onSave();
  }
   
  public void testOpenEvent() {
    replay(view);
    presenter = new DetailPresenter(eventBus, module, readService, updateService, createService, view);
   
    final Dto d = new Dto("Contact");
    d.setId(23L);
    eventBus.fireEvent(new OpenEvent(d));
  }
View Full Code Here

    eventBus.fireEvent(new OpenEvent(d));
  }
 
  public void testCreateEventForNonExistingModule() {
    replay(view);
    presenter = new DetailPresenter(eventBus, module, readService, updateService, createService, view);
    eventBus.fireEvent(new CreateEvent(module + module + module));
  }
View Full Code Here

    eventBus.fireEvent(new CreateEvent(module + module + module));
  }
 
  public void testCreateEventForExistingModule() {
    replay(view);
    presenter = new DetailPresenter(eventBus, module, readService, updateService, createService, view);
    eventBus.fireEvent(new CreateEvent(module));
  }
View Full Code Here

    eventBus.fireEvent(new CreateEvent(module));
  }
 
  public void testCreateEventForExistingModuleWithPrefilling() {
    replay(view);
    presenter = new DetailPresenter(eventBus, module, readService, updateService, createService, view);
    final HashMap<String, Object> prefilledFields = new HashMap<String, Object>();
    prefilledFields.put("name", "Vicky");
    eventBus.fireEvent(new CreateEvent(module, prefilledFields));
  }
View Full Code Here

TOP

Related Classes of honeycrm.client.mvp.presenters.DetailPresenter$Display

Copyright © 2018 www.massapicom. 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.