本文整理匯總了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;
}