コード例 #1
0
 @Override
 public List<HeaderItem> getDependencies() {
   return Dependencies.combine(
       super.getDependencies(),
       JavaScriptHeaderItem.forReference(
           ABaseWebApplication.get().getJavaScriptLibrarySettings().getJQueryReference()));
 }
コード例 #2
0
 @Override
 public Iterable<? extends HeaderItem> getDependencies() {
   final ResourceReference backingLibraryReference;
   if (Application.exists()) {
     backingLibraryReference =
         Application.get().getJavaScriptLibrarySettings().getJQueryReference();
   } else {
     backingLibraryReference = JQueryResourceReference.get();
   }
   return Dependencies.combine(
       super.getDependencies(), JavaScriptHeaderItem.forReference(backingLibraryReference));
 }
 @Override
 public Iterable<? extends HeaderItem> getDependencies() {
   return Dependencies.combine(
       super.getDependencies(),
       JavaScriptHeaderItem.forReference(Bootstrap.getSettings().getJsResourceReference()));
 }