本文整理汇总了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)");
}
}
示例2: getRequest
import org.geomajas.command.CommandRequest; //导入依赖的package包/类
protected CommandRequest getRequest() {
return request;
}
示例3: getEmptyCommandRequest
import org.geomajas.command.CommandRequest; //导入依赖的package包/类
@Override
public CommandRequest getEmptyCommandRequest() {
// empty interface anonymous instantiation
return new CommandRequest() {};
}
示例4: execute
import org.geomajas.command.CommandRequest; //导入依赖的package包/类
@Override
public void execute(CommandRequest request, CommandResponse response) throws Exception {
if (test != null) {
test.run();
}
}
示例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;
}
示例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;
}