use of org.apache.wicket.markup.head.HeaderItem in project wicket by apache.
the class ConcatResourceBundleReference method getDependencies.
@Override
public List<HeaderItem> getDependencies() {
Set<HeaderItem> ret = new LinkedHashSet<>();
for (HeaderItem curProvided : providedResources) {
for (HeaderItem curDependency : curProvided.getDependencies()) ret.add(curDependency);
}
for (HeaderItem curProvided : providedResources) {
ret.remove(curProvided);
}
List<HeaderItem> dependencies = super.getDependencies();
dependencies.addAll(ret);
return dependencies;
}
use of org.apache.wicket.markup.head.HeaderItem in project wicket by apache.
the class JQueryPluginResourceReference method getDependencies.
@Override
public List<HeaderItem> getDependencies() {
final ResourceReference backingLibraryReference;
if (Application.exists()) {
backingLibraryReference = Application.get().getJavaScriptLibrarySettings().getJQueryReference();
} else {
backingLibraryReference = DynamicJQueryResourceReference.get();
}
List<HeaderItem> dependencies = super.getDependencies();
dependencies.add(JavaScriptHeaderItem.forReference(backingLibraryReference));
return dependencies;
}
use of org.apache.wicket.markup.head.HeaderItem in project wicket by apache.
the class FilteredHeaderItem method getDependencies.
@Override
public List<HeaderItem> getDependencies() {
List<FilteredHeaderItem> ret = new ArrayList<>();
for (HeaderItem curDependency : getWrapped().getDependencies()) {
ret.add(wrap(curDependency));
}
List<HeaderItem> dependencies = super.getDependencies();
dependencies.addAll(ret);
return dependencies;
}
use of org.apache.wicket.markup.head.HeaderItem in project wicket by apache.
the class WicketAjaxDebugJQueryResourceReference method getDependencies.
@Override
public List<HeaderItem> getDependencies() {
final ResourceReference wicketAjaxReference;
if (Application.exists()) {
wicketAjaxReference = Application.get().getJavaScriptLibrarySettings().getWicketAjaxReference();
} else {
wicketAjaxReference = WicketAjaxJQueryResourceReference.get();
}
List<HeaderItem> dependencies = super.getDependencies();
dependencies.add(JavaScriptHeaderItem.forReference(wicketAjaxReference));
return dependencies;
}
use of org.apache.wicket.markup.head.HeaderItem in project wicket by apache.
the class WicketAjaxJQueryResourceReference method getDependencies.
@Override
public List<HeaderItem> getDependencies() {
final ResourceReference jqueryReference;
if (Application.exists()) {
jqueryReference = Application.get().getJavaScriptLibrarySettings().getJQueryReference();
} else {
jqueryReference = JQueryResourceReference.getV2();
}
List<HeaderItem> dependencies = super.getDependencies();
dependencies.add(JavaScriptHeaderItem.forReference(jqueryReference));
return dependencies;
}
Aggregations