本文整理匯總了Java中org.geomajas.plugin.printing.command.dto.PrintGetTemplateResponse類的典型用法代碼示例。如果您正苦於以下問題:Java PrintGetTemplateResponse類的具體用法?Java PrintGetTemplateResponse怎麽用?Java PrintGetTemplateResponse使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
PrintGetTemplateResponse類屬於org.geomajas.plugin.printing.command.dto包,在下文中一共展示了PrintGetTemplateResponse類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: runAsync
import org.geomajas.plugin.printing.command.dto.PrintGetTemplateResponse; //導入依賴的package包/類
private void runAsync(final Callback<PrintFinishedInfo, Void> callback, PrintRequestInfo printRequestInfo) {
// prepare common url and parameters
final PrintFinishedInfo printFinishedInfo = prepareInfo(printRequestInfo);
// method = GET
printFinishedInfo.setMethod(HttpMethod.GET);
// run the command
PrintGetTemplateRequest request = new PrintGetTemplateRequest();
request.setTemplate(printRequestInfo.getPrintTemplateInfo());
final GwtCommand command = new GwtCommand(PrintGetTemplateRequest.COMMAND);
command.setCommandRequest(request);
GeomajasServerExtension.getInstance().getCommandService()
.execute(command, new AbstractCommandCallback<PrintGetTemplateResponse>() {
public void execute(PrintGetTemplateResponse response) {
// add the document id
printFinishedInfo.addParam(PrintUrlParameterKey.URL_DOCUMENT_ID, response.getDocumentId());
callback.onSuccess(printFinishedInfo);
}
});
}
示例2: execute
import org.geomajas.plugin.printing.command.dto.PrintGetTemplateResponse; //導入依賴的package包/類
@Override
public void execute(PrintGetTemplateRequest request, PrintGetTemplateResponse response) throws Exception {
PrintGetTemplateExtRequest extRequest = new PrintGetTemplateExtRequest(request);
PrintGetTemplateExtResponse extResponse = new PrintGetTemplateExtResponse();
LayoutAsSinglePageDoc.execute(extRequest, extResponse, converterService, printService);
response.setDocumentId(extResponse.getDocumentId());
}
示例3: getEmptyCommandResponse
import org.geomajas.plugin.printing.command.dto.PrintGetTemplateResponse; //導入依賴的package包/類
@Override
public PrintGetTemplateResponse getEmptyCommandResponse() {
return new PrintGetTemplateResponse();
}