Class SpreadsheetLinker
- java.lang.Object
-
- com.google.gwt.core.ext.Linker
-
- com.google.gwt.core.ext.linker.AbstractLinker
-
- com.google.gwt.core.ext.linker.impl.SelectionScriptLinker
-
- com.google.gwt.core.linker.SingleScriptLinker
-
- com.vaadin.component.spreadsheet.client.SpreadsheetLinker
-
@LinkerOrder(PRIMARY) @Shardable public class SpreadsheetLinker extends com.google.gwt.core.linker.SingleScriptLinkerCustomized version ofSingleScriptLinkerwhich uses a modified version of the single script template ("com/vaadin/component/spreadsheet/client/SpreadsheetSingleScriptTemplate.js"). This is because the template fromSingleScriptLinkeruses a computeScriptBase function which does adocument.writeand thus cannot be called deferredly.- Since:
- 1.0
- See Also:
SingleScriptLinker
-
-
Constructor Summary
Constructors Constructor Description SpreadsheetLinker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Collection<com.google.gwt.core.ext.linker.Artifact<?>>doEmitCompilation(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.LinkerContext context, com.google.gwt.core.ext.linker.CompilationResult result, com.google.gwt.core.ext.linker.ArtifactSet artifacts)protected com.google.gwt.core.ext.linker.EmittedArtifactemitSelectionScript(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.LinkerContext context, com.google.gwt.core.ext.linker.ArtifactSet artifacts)protected StringfillSelectionScriptTemplate(StringBuffer selectionScript, com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.LinkerContext context, com.google.gwt.core.ext.linker.ArtifactSet artifacts, com.google.gwt.core.ext.linker.CompilationResult result)StringgetDescription()protected StringgetSelectionScriptTemplate(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.LinkerContext context)com.google.gwt.core.ext.linker.ArtifactSetlink(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.LinkerContext context, com.google.gwt.core.ext.linker.ArtifactSet artifacts, boolean onePermutation)-
Methods inherited from class com.google.gwt.core.linker.SingleScriptLinker
getCompilationExtension, getModulePrefix
-
Methods inherited from class com.google.gwt.core.ext.linker.impl.SelectionScriptLinker
charsPerChunk, emitSelectionInformation, generateDeferredFragment, generatePrimaryFragment, generatePrimaryFragmentString, generateSelectionScript, generateSelectionScript, getDeferredFragmentPrefix, getDeferredFragmentSuffix2, getFragmentSubdir, getHostedFilename, getModulePrefix, getModuleSuffix2, getScriptChunkSeparator, link, maybeAddHostedModeFile, maybeOutputPropertyMap, readFileToStringBuffer, replaceAll, splitPrimaryJavaScript, supportsDevModeInJunit, wrapDeferredFragment, wrapPrimaryFragment
-
-
-
-
Method Detail
-
getDescription
public String getDescription()
- Overrides:
getDescriptionin classcom.google.gwt.core.linker.SingleScriptLinker
-
doEmitCompilation
protected Collection<com.google.gwt.core.ext.linker.Artifact<?>> doEmitCompilation(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.LinkerContext context, com.google.gwt.core.ext.linker.CompilationResult result, com.google.gwt.core.ext.linker.ArtifactSet artifacts) throws com.google.gwt.core.ext.UnableToCompleteException
- Overrides:
doEmitCompilationin classcom.google.gwt.core.linker.SingleScriptLinker- Throws:
com.google.gwt.core.ext.UnableToCompleteException
-
emitSelectionScript
protected com.google.gwt.core.ext.linker.EmittedArtifact emitSelectionScript(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.LinkerContext context, com.google.gwt.core.ext.linker.ArtifactSet artifacts) throws com.google.gwt.core.ext.UnableToCompleteException- Overrides:
emitSelectionScriptin classcom.google.gwt.core.linker.SingleScriptLinker- Throws:
com.google.gwt.core.ext.UnableToCompleteException
-
fillSelectionScriptTemplate
protected String fillSelectionScriptTemplate(StringBuffer selectionScript, com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.LinkerContext context, com.google.gwt.core.ext.linker.ArtifactSet artifacts, com.google.gwt.core.ext.linker.CompilationResult result) throws com.google.gwt.core.ext.UnableToCompleteException
- Overrides:
fillSelectionScriptTemplatein classcom.google.gwt.core.ext.linker.impl.SelectionScriptLinker- Throws:
com.google.gwt.core.ext.UnableToCompleteException
-
getSelectionScriptTemplate
protected String getSelectionScriptTemplate(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.LinkerContext context) throws com.google.gwt.core.ext.UnableToCompleteException
- Overrides:
getSelectionScriptTemplatein classcom.google.gwt.core.linker.SingleScriptLinker- Throws:
com.google.gwt.core.ext.UnableToCompleteException
-
link
public com.google.gwt.core.ext.linker.ArtifactSet link(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.LinkerContext context, com.google.gwt.core.ext.linker.ArtifactSet artifacts, boolean onePermutation) throws com.google.gwt.core.ext.UnableToCompleteException- Overrides:
linkin classcom.google.gwt.core.ext.linker.impl.SelectionScriptLinker- Throws:
com.google.gwt.core.ext.UnableToCompleteException
-
-