本文整理了Java中com.smartgwt.client.widgets.Window.draw()
方法的一些代码示例,展示了Window.draw()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.draw()
方法的具体详情如下:
包路径:com.smartgwt.client.widgets.Window
类名称:Window
方法名:draw
暂无
代码示例来源:origin: org.geomajas.widget/geomajas-widget-featureinfo-gwt
private void showFeatureInfo(Map<String, List<org.geomajas.layer.feature.Feature>> featureMap) {
if (featureMap.size() > 0) {
if (featureMap.size() == 1 && featureMap.values().iterator().next().size() == 1) {
Layer<?> layer = (mapWidget.getMapModel().getLayer(featureMap.keySet().iterator().next()));
if (null != layer) {
org.geomajas.layer.feature.Feature featDTO = featureMap.values().iterator().next().get(0);
Feature feature;
if (layer instanceof VectorLayer) {
feature = new Feature(featDTO, (VectorLayer) layer);
} else {
feature = new Feature(featDTO, null);
}
Window window = FeatureDetailWidgetFactory.createFeatureDetailWindow(feature, layer, false);
window.setPageTop(mapWidget.getAbsoluteTop() + 25);
window.setPageLeft(mapWidget.getAbsoluteLeft() + 25);
window.setKeepInParentRect(true);
window.draw();
} else {
Notify.error(MESSAGES.multiLayerFeatureInfoLayerNotFound());
}
} else {
Window window = new MultiLayerFeatureInfoWindow(mapWidget, featureMap, featuresListLabels);
window.setPageTop(mapWidget.getAbsoluteTop() + 10);
window.setPageLeft(mapWidget.getAbsoluteLeft() + 50);
window.draw();
}
} else {
Notify.info(MESSAGES.multiLayerFeatureInfoNoResult());
}
}
代码示例来源:origin: org.geomajas.widget/geomajas-widget-searchandfilter-gwt
public static void showFeatureDetailWindow(final MapWidget mapWidget, final Feature feature) {
Window window = FeatureDetailWidgetFactory.createFeatureDetailWindow(feature, false);
window.setPageTop(mapWidget.getAbsoluteTop() + 10);
window.setPageLeft(mapWidget.getAbsoluteLeft() + 10);
window.draw();
}
代码示例来源:origin: org.geomajas.widget/geomajas-widget-featureinfo-gwt
public void onClick(Feature feature, Layer layer) {
Window window = FeatureDetailWidgetFactory.createFeatureDetailWindow(feature, layer, false);
window.setPageTop(mapWidget.getAbsoluteTop() + 25);
window.setPageLeft(mapWidget.getAbsoluteLeft() + 25);
window.setKeepInParentRect(true);
window.draw();
}
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
window.draw();
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
window.draw();
内容来源于网络,如有侵权,请联系作者删除!