當前位置: 首頁>>代碼示例>>Java>>正文


Java CommandRequest類代碼示例

本文整理匯總了Java中org.geomajas.command.CommandRequest的典型用法代碼示例。如果您正苦於以下問題:Java CommandRequest類的具體用法?Java CommandRequest怎麽用?Java CommandRequest使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


CommandRequest類屬於org.geomajas.command包,在下文中一共展示了CommandRequest類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: setRequest

import org.geomajas.command.CommandRequest; //導入依賴的package包/類
protected void setRequest(CommandRequest request) {
	if (request instanceof SearchFeatureRequest || request instanceof SearchByLocationRequest) {
		this.request = request;
	} else {
		throw new IllegalArgumentException(
				"Please provide a request (SearchFeatureRequest or SearchByLocationRequest)");
	}
}
 
開發者ID:geomajas,項目名稱:geomajas-project-client-gwt,代碼行數:9,代碼來源:ExportSearchToCsvHandler.java

示例2: getRequest

import org.geomajas.command.CommandRequest; //導入依賴的package包/類
protected CommandRequest getRequest() {
	return request;
}
 
開發者ID:geomajas,項目名稱:geomajas-project-client-gwt,代碼行數:4,代碼來源:ExportSearchToCsvHandler.java

示例3: getEmptyCommandRequest

import org.geomajas.command.CommandRequest; //導入依賴的package包/類
@Override
public CommandRequest getEmptyCommandRequest() {
	// empty interface anonymous instantiation
	return new CommandRequest() {};
}
 
開發者ID:geomajas,項目名稱:geomajas-project-server,代碼行數:6,代碼來源:SecurityTestCommand.java

示例4: execute

import org.geomajas.command.CommandRequest; //導入依賴的package包/類
@Override
public void execute(CommandRequest request, CommandResponse response) throws Exception {
	if (test != null) {
		test.run();
	}
}
 
開發者ID:geomajas,項目名稱:geomajas-project-server,代碼行數:7,代碼來源:SecurityTestCommand.java

示例5: getCommandRequest

import org.geomajas.command.CommandRequest; //導入依賴的package包/類
/**
 * Get the specific request for the command you wish to execute.
 *
 * @return request object for command
 */
public CommandRequest getCommandRequest() {
	return commandRequest;
}
 
開發者ID:geomajas,項目名稱:geomajas-project-client-gwt2,代碼行數:9,代碼來源:GwtCommand.java

示例6: setCommandRequest

import org.geomajas.command.CommandRequest; //導入依賴的package包/類
/**
 * Set the specific request for the command you wish to execute.
 * 
 * @param commandRequest request object
 */
public void setCommandRequest(CommandRequest commandRequest) {
	this.commandRequest = commandRequest;
}
 
開發者ID:geomajas,項目名稱:geomajas-project-client-gwt2,代碼行數:9,代碼來源:GwtCommand.java


注:本文中的org.geomajas.command.CommandRequest類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。