Package org.geomajas.configuration.client

Examples of org.geomajas.configuration.client.ClientUserDataInfo


    Assert.assertEquals(-2.0037508342789236E7, mapMaxExtent.getY(), DOUBLE_TOLERANCE);
    Assert.assertEquals(1.8935696632026553E7, mapMaxExtent.getWidth(), DOUBLE_TOLERANCE);
    Assert.assertEquals(4.007501596344786E7, mapMaxExtent.getHeight(), DOUBLE_TOLERANCE);

    // user data
    ClientUserDataInfo info = mapInfo.getUserData();
    Assert.assertNotNull(info);
    Assert.assertTrue(info instanceof ClientApplicationInfo.DummyClientUserDataInfo);
    Assert.assertEquals("some data", ((ClientApplicationInfo.DummyClientUserDataInfo) info).getDummy());

    // widget data
View Full Code Here


    Assert.assertEquals(-2.0037508342789236E7, mapMaxExtent.getY(), DOUBLE_TOLERANCE);
    Assert.assertEquals(1.8935696632026553E7, mapMaxExtent.getWidth(), DOUBLE_TOLERANCE);
    Assert.assertEquals(4.007501596344786E7, mapMaxExtent.getHeight(), DOUBLE_TOLERANCE);

    // user data
    ClientUserDataInfo info = mapInfo.getUserData();
    Assert.assertNotNull(info);
    Assert.assertTrue(info instanceof ClientApplicationInfo.DummyClientUserDataInfo);
    Assert.assertEquals("some data", ((ClientApplicationInfo.DummyClientUserDataInfo) info).getDummy());

    // widget data
View Full Code Here

  public void execute(GetClientUserDataRequest request, GetClientUserDataResponse response) throws Exception {
    if (request != null && request.getClassName() != null && request.getIdentifier() != null) {
      Class<?> clazz = Class.forName(request.getClassName());
      Object bean = context.getBean(request.getIdentifier(), clazz);
      if (bean != null) {
        ClientUserDataInfo information = (ClientUserDataInfo) bean;
        response.setInformation(information);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.geomajas.configuration.client.ClientUserDataInfo

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.