• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java SelectHandler类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler的典型用法代码示例。如果您正苦于以下问题:Java SelectHandler类的具体用法?Java SelectHandler怎么用?Java SelectHandler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



SelectHandler类属于com.sencha.gxt.widget.core.client.event.SelectEvent包,在下文中一共展示了SelectHandler类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: createLegendAnchor

import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler; //导入依赖的package包/类
private TextButton createLegendAnchor() {
	TextButton legendButton = new TextButton();
	legendButton.setIcon(ImageProvider.INSTANCE.mapLegend24());
	legendButton.setTitle(UIMessages.INSTANCE.mapLegendTitle());
	legendButton.addSelectHandler(new SelectHandler() {
		@Override
		public void onSelect(SelectEvent event) {
			if (mapLegend != null && mapLegend.isVisible()) {
				mapLegend.getElement().<FxElement> cast().fadeToggle();
				RootPanel.get().remove(mapLegend);
			} else {
				mapLegend = new SimpleMapVerticalLegend(layerManager);
				RootPanel.get().add(mapLegend);
				mapLegend.getElement().<FxElement> cast().fadeToggle();
				mapLegend.setVisible(true);
			}
		}
	});
	return legendButton;
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:21,代码来源:LinksWidget.java


示例2: createUrlToShare

import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler; //导入依赖的package包/类
private SelectHandler createUrlToShare(final VerticalPanel geoDataContainer) {
	return new SelectHandler() {
		@Override
		public void onSelect(SelectEvent event) {
			urlToShareAnchor.setHref(getHref());
			urlToShareAnchor.setText(
					UIMessages.INSTANCE.seeOtherWindow("GeoWE Project"),
					Direction.LTR);

			urlShared.setText(getHref());
			urlPanel.setVisible(true);
			urlShared.setVisible(true);
		}

		private String getHref() {
			String baseUrl = GWT.getHostPageBaseURL();

			baseUrl += "?projectUrl="
					+ URL.encodeQueryString(urlTextField.getValue());

			return baseUrl;
		}
	};
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:25,代码来源:OpenProjectDialog.java


示例3: showDialog

import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler; //导入依赖的package包/类
private void showDialog(final HTML htmlReport) {
	final Dialog simple = new Dialog();
	simple.setHeadingText(project.getTitle());
	simple.setSize("420px", "420px");
	simple.setResizable(true);
	simple.setHideOnButtonClick(true);
	simple.setPredefinedButtons(PredefinedButton.CLOSE);
	simple.setBodyStyleName("pad-text");
	simple.getBody().addClassName("pad-text");
	simple.add(getPanel(htmlReport));
	simple.addButton(new TextButton(UIMessages.INSTANCE.download(),
			new SelectHandler() {
				@Override
				public void onSelect(SelectEvent event) {
					FileExporter.saveAs(htmlReport.getHTML(),
							project.getTitle() + ".html");
				}
			}));
	simple.show();
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:21,代码来源:InfoProjectTool.java


示例4: addDialogListener

import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler; //导入依赖的package包/类
private void addDialogListener() {
	saveProjectDialog.getButton(PredefinedButton.OK).addSelectHandler(
			new SelectHandler() {
				@Override
				public void onSelect(final SelectEvent event) {
					
					if(saveProjectDialog.getName().trim().isEmpty()) {
						 showAlert("filename is required");
						return;
					}

					taskManager.execute(new Runnable() {

						@Override
						public void run() {
							saveProject();
						}

					});
				}
			});
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:23,代码来源:SaveProjectTool.java


示例5: showDialog

import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler; //导入依赖的package包/类
private void showDialog(final HTML htmlReport) {
	final Dialog simple = new Dialog();
	simple.setHeadingText("GeoWe Report");
	simple.setSize("420px", "420px");
	simple.setResizable(true);
	simple.setHideOnButtonClick(true);
	simple.setPredefinedButtons(PredefinedButton.CLOSE);
	simple.setBodyStyleName("pad-text");
	simple.getBody().addClassName("pad-text");
	simple.add(getPanel(htmlReport));
	simple.addButton(new TextButton(UIMessages.INSTANCE.download(),
			new SelectHandler() {
				@Override
				public void onSelect(SelectEvent event) {
					FileExporter.saveAs(htmlReport.getHTML(),
							getSelectedVectorLayer().getName() + ".html");
				}
			}));
	simple.show();
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:21,代码来源:HtmlReportLayerTool.java


示例6: registerListeners

import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler; //导入依赖的package包/类
@PostConstruct
private void registerListeners() {
	layerTreeWidget.addChangeLayerListener(this);
	
	vectorLayerStyleWidget.asWidget();
	vectorLayerStyleWidget.getApplyButton().addSelectHandler(
			new SelectHandler() {
				@Override
				public void onSelect(final SelectEvent event) {
					onApplyButtonSelected(event);
				}
			});
	
	//Exportacion de la funcion stringToRGB al inicio para su
	//posterior uso al crear los estilos de color tematico
	StyleFactory.exportStringToRGB();
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:18,代码来源:ChangeStyleTool.java


示例7: initialize

import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler; //导入依赖的package包/类
@PostConstruct
private void initialize() {

	copyElementDialog.getButton(PredefinedButton.OK).addSelectHandler(
			new SelectHandler() {
				@Override
				public void onSelect(SelectEvent event) {

					VectorLayer targetLayer = (VectorLayer) copyElementDialog
							.getLayerCombo1().getValue().getLayer();

					for (VectorFeature feature : selectedFeatures) {
						VectorFeature newVectorFeature = feature.clone();
						targetLayer.addFeature(newVectorFeature);
					}

					targetLayer.redraw();
				}
			});
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:21,代码来源:CopyElementTool.java


示例8: confirm

import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler; //导入依赖的package包/类
private void confirm(final VectorLayer layer) {

		ConfirmMessageBox messageBox = new ConfirmMessageBox(
				UIMessages.INSTANCE.dtMessageBoxTitle(),
				UIMessages.INSTANCE.confirmValidationTool(layer.getName()));
		messageBox.setModal(true);
		messageBox.setIcon(ImageProvider.INSTANCE.buffer32());
		messageBox.getButton(PredefinedButton.YES).addSelectHandler(
				new SelectHandler() {
					@Override
					public void onSelect(SelectEvent event) {
						geometryValidator.requestValidate(layer, layerManager);
					}
				});
		messageBox.show();
	}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:17,代码来源:GeometryValidationTool.java


示例9: confirm

import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler; //导入依赖的package包/类
private void confirm(final VectorLayer layer) {

		final ConfirmMessageBox messageBox = messageDialogBuilder.createConfirm(
				UIMessages.INSTANCE.dtMessageBoxTitle(),
				UIMessages.INSTANCE.centroidToolConfirmText(),
				ImageProvider.INSTANCE.centroid32());

		messageBox.getButton(PredefinedButton.YES).addSelectHandler(
				new SelectHandler() {
					@Override
					public void onSelect(final SelectEvent event) {
						calculateCentroid(layer, layer.getFeatures());
					}
				});
		messageBox.show();
	}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:17,代码来源:CentroidTool.java


示例10: confirmBufferSelectedElements

import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler; //导入依赖的package包/类
private void confirmBufferSelectedElements(final VectorFeature... vectorFeatures) {

		final PromptMessageBox messageBox = new PromptMessageBox(
				UIMessages.INSTANCE.btMessageBoxPromptTitle(),
				UIMessages.INSTANCE.btMessageBoxPromptLabel());
		messageBox.getButton(PredefinedButton.OK).addSelectHandler(
				new SelectHandler() {
					@Override
					public void onSelect(final SelectEvent event) {

						final String value = messageBox.getValue();
						applyBuffer(Double.parseDouble(value), vectorFeatures);
					}
				});
		messageBox.show();
	}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:17,代码来源:BufferTool.java


示例11: confirmBufferLayer

import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler; //导入依赖的package包/类
private void confirmBufferLayer(final VectorLayer layer) {

		final ConfirmMessageBox messageBox = new ConfirmMessageBox(
				UIMessages.INSTANCE.dtMessageBoxTitle(),
				UIMessages.INSTANCE.bufferToolConfirmText());
		messageBox.setModal(true);
		messageBox.setIcon(ImageProvider.INSTANCE.buffer32());
		messageBox.getButton(PredefinedButton.YES).addSelectHandler(
				new SelectHandler() {
					@Override
					public void onSelect(final SelectEvent event) {
						calculateBuffer(layer);
					}
				});
		messageBox.show();
	}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:17,代码来源:BufferTool.java


示例12: calculateBuffer

import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler; //导入依赖的package包/类
private void calculateBuffer(final VectorLayer layer) {

		final PromptMessageBox messageBox = new PromptMessageBox(
				UIMessages.INSTANCE.btMessageBoxPromptTitle(),
				UIMessages.INSTANCE.btMessageBoxPromptLabel());
		messageBox.getButton(PredefinedButton.OK).addSelectHandler(
				new SelectHandler() {
					@Override
					public void onSelect(final SelectEvent event) {

						final String value = messageBox.getValue();
						calculateBuffer(layer, Double.parseDouble(value));
					}
				});
		messageBox.show();
	}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:17,代码来源:BufferTool.java


示例13: GeoprocessDialog

import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler; //导入依赖的package包/类
@Inject
public GeoprocessDialog(final Geoprocesses spatialOperation) {
	super();
	this.setHeadingText(UIMessages.INSTANCE.sodHeadingText());
	this.setPredefinedButtons(PredefinedButton.OK, PredefinedButton.CANCEL);
	this.setPixelSize(500, 370);
	this.setModal(false);
	this.setResizable(false);
	add(createPanel(spatialOperation));
	this.spatialOperationComboBox.setValue(null);
	getButton(PredefinedButton.CANCEL).addSelectHandler(
			new SelectHandler() {
				@Override
				public void onSelect(SelectEvent event) {
					GeoprocessDialog.this.hide();
					geoprocessHelpDialog.hide();
				}
			});
	
	final ToolButton helpToolButton = new ToolButton(ToolButton.QUESTION);
	setHelpToolTip(helpToolButton);
	addHelpSelectHandler(helpToolButton);

	getHeader().addTool(helpToolButton);

}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:27,代码来源:GeoprocessDialog.java


示例14: getValidationSelectHandler

import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler; //导入依赖的package包/类
private SelectHandler getValidationSelectHandler(final int layer) {
	return new SelectHandler() {

		@Override
		public void onSelect(final SelectEvent event) {

			taskManager.execute(new Runnable() {

				@Override
				public void run() {
					VectorLayer layerToValidate = spatialOperationDialog.getLayer1();
					if (layer == LAYER_2) {
						layerToValidate = spatialOperationDialog.getLayer2();
					}
					
					if(geoprocessValidator.isValid(layerToValidate)) {
						geometryValidator.requestValidate(layerToValidate, layerManager);
					}																							
				}
			});
		}
	};
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:24,代码来源:GeoprocessingTool.java


示例15: confirmSetMaxExtent

import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler; //导入依赖的package包/类
private void confirmSetMaxExtent(final boolean value) {

		ConfirmMessageBox messageBox = messageDialogBuilder.createConfirm(
				UIMessages.INSTANCE.edtAlertDialogTitle(),
				UIMessages.INSTANCE.confirmSetMaxExtent(),
				ImageProvider.INSTANCE.currentExtent24());
		messageBox.getButton(PredefinedButton.YES).addSelectHandler(
				new SelectHandler() {
					@Override
					public void onSelect(SelectEvent event) {
						getGeoMap().getMap().setRestrictedExtent(
								getGeoMap().getMap().getExtent());
						getGeoMap().getMap().setMaxExtent(
								getGeoMap().getMap().getExtent());
						setText(UIMessages.INSTANCE.nameUnlockCurrentExtentTool());
						setIcon(ImageProvider.INSTANCE.lockedExtension24());
						createVectorLayer(getGeoMap().getMap().getExtent());
					}
				});

		messageBox.getButton(PredefinedButton.NO).addSelectHandler(
				getNoSelectHandler(value));
		messageBox.show();
	}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:25,代码来源:LockCurrentExtentTool.java


示例16: initialize

import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler; //导入依赖的package包/类
@PostConstruct
private void initialize() {

	customExtentDialog.getAddToMapButton().addSelectHandler(
			new SelectHandler() {

				@Override
				public void onSelect(SelectEvent event) {
					if (!isBBoxEmpty() && has4Coordinates()) {
						Bounds bounds = getBounds();

						Geometry geom = bounds.toGeometry();
						geom.transform(new Projection("EPSG:4326"),
								new Projection(geoMap.getMap()
										.getProjection()));
						VectorFeature vf = new VectorFeature(geom);

						VectorLayer bboxLayer = VectorLayerFactory
								.createEmptyVectorLayer(createBBoxLayerConfig());
						bboxLayer.addFeature(vf);

						layerManager.addVector(bboxLayer);
					}
				}
			});
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:27,代码来源:CustomExtentTool.java


示例17: createPrompt

import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler; //导入依赖的package包/类
private void createPrompt() {
	final TextField epsgTextField = new TextField();
	epsgTextField.setText(layer.getProjection().getProjectionCode());
	epsgTextField.setEnabled(false);
	final PromptMessageBox messageBox = new PromptMessageBox(
			 UIMessages.INSTANCE.celtPromptTitle(), UIMessages.INSTANCE.celtPromptLabel());

	messageBox.add(epsgTextField);
	messageBox.getButton(PredefinedButton.OK).addSelectHandler(
			new SelectHandler() {
				@Override
				public void onSelect(final SelectEvent event) {
					final String value = messageBox.getValue();
					layerManagerWidget.addVector(createVectorLayer(
							selectedFeatures, value));
				}
			});
	messageBox.show();
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:20,代码来源:CreateNewLayerTool.java


示例18: getClearButton

import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler; //导入依赖的package包/类
private TextButton getClearButton() {
	TextButton clearButton = new TextButton(
			UIMessages.INSTANCE.clearButtonText());
	clearButton.setToolTip(UIMessages.INSTANCE.clearButtonTooltip());
	clearButton.addSelectHandler(new SelectHandler() {
		@Override
		public void onSelect(SelectEvent event) {
			gridEditing.cancelEditing();

			for (FeatureAttributeBean featureAttributeBean : featureAttributes
					.getAll()) {
				featureAttributeBean.setAttributeValue("");
				featureAttributes.update(featureAttributeBean);
			}
		}
	});
	return clearButton;
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:19,代码来源:FeatureInfoToolBar.java


示例19: getExportCSVButton

import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler; //导入依赖的package包/类
private TextButton getExportCSVButton() {
	TextButton exportButton = new TextButton(
			UIMessages.INSTANCE.exportCsvButtonText());
	exportButton.setToolTip(UIMessages.INSTANCE.exportCsvButtonTooltip());
	exportButton.addSelectHandler(new SelectHandler() {
		@Override
		public void onSelect(SelectEvent event) {

			StringBuffer csv = new StringBuffer();

			for (FeatureAttributeBean featureAttributeBean : featureAttributes
					.getAll()) {
				csv.append(featureAttributeBean.getAttributeName() + ";"
						+ featureAttributeBean.getAttributeValue() + "\n");
			}

			FileExporter.saveAs(csv.toString(), "geowe-feature-"
					+ vectorFeature.getFeatureId() + ".csv");
		}
	});
	return exportButton;
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:23,代码来源:FeatureInfoToolBar.java


示例20: publishJS

import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler; //导入依赖的package包/类
@PostConstruct
private void publishJS() {
	bridge(this);
	geolocate();
	coordinateGeolocationDialog.getButton(PredefinedButton.OK).addSelectHandler(new SelectHandler() {
		@Override
		public void onSelect(final SelectEvent event) {
			if (coordinateGeolocationDialog.isCorrectFilled()) {
				startProgressBar();
				final Double latitud = Double.parseDouble(coordinateGeolocationDialog.getLatitud());
				final Double longitud = Double.parseDouble(coordinateGeolocationDialog.getLongitud());

				updateMap(latitud, longitud, 20, coordinateGeolocationDialog.getEPSG());
			} else {
				showDialog(UIMessages.INSTANCE.fail(), UIMessages.INSTANCE.gcBadCoord());
			}
		}
	});
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:20,代码来源:GeocodingPanelWidget.java



注:本文中的com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java VFilePropertyChangeEvent类代码示例发布时间:2022-05-23
下一篇:
Java GroupObject类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap