Package org.geomajas.configuration.client

Examples of org.geomajas.configuration.client.ClientWidgetInfo


  }

  @SuppressWarnings("unchecked")
  public static <T extends ClientWidgetInfo> T getClientWidgetInfo(String id, Class<T> clazz, Layer<?> layer) {
    if (layer != null) {
      ClientWidgetInfo cli;
      if (layer instanceof VectorLayer) {
        cli = ((VectorLayer) layer).getLayerInfo().getWidgetInfo(id);
      } else {
        cli = ((RasterLayer) layer).getLayerInfo().getWidgetInfo(id);
      }
View Full Code Here


  public static <T extends ClientWidgetInfo> T getClientWidgetInfo(String id, MapWidget mapWidget) {
    if (mapWidget != null) {
      if (mapWidget.getMapModel().getMapInfo() == null) {
        GWT.log("MapInfo not found, has mapWidget been initialized?");
      }
      ClientWidgetInfo cli = mapWidget.getMapModel().getMapInfo().getWidgetInfo(id);
      if (cli != null) {
        try {
          // cannot check because of type erasure
          return (T) cli;
        } catch (Exception e) {
View Full Code Here

TOP

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

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.