use of com.googlecode.wicket.jquery.ui.settings.JQueryUILibrarySettings in project webanno by webanno.
the class WicketApplicationBase method initJQueryUI.
protected void initJQueryUI() {
JQueryUILibrarySettings jqueryUiCfg = JQueryUILibrarySettings.get();
// Here we ensure that bootstrap is loaded before JQuery UI such that the
// JQuery UI tooltip that we use e.g. on the annotation page takes precedence over
// the less powerful Bootstrap tooltip (both are JQuery plugins using the same name!)
jqueryUiCfg.setJavaScriptReference(BootstrapAwareJQueryUIJavaScriptResourceReference.get());
getComponentInstantiationListeners().add(component -> {
if (component instanceof Page) {
component.add(new JQueryUIResourceBehavior());
}
});
}
use of com.googlecode.wicket.jquery.ui.settings.JQueryUILibrarySettings in project webanno by webanno.
the class WicketApplicationBase method addJQueryUIResourcesToAllPages.
protected void addJQueryUIResourcesToAllPages() {
JQueryUILibrarySettings jqueryUiCfg = JQueryUILibrarySettings.get();
// Here we ensure that bootstrap is loaded before JQuery UI such that the
// JQuery UI tooltip that we use e.g. on the annotation page takes precedence over
// the less powerful Bootstrap tooltip (both are JQuery plugins using the same name!)
jqueryUiCfg.setJavaScriptReference(BootstrapAwareJQueryUIJavaScriptResourceReference.get());
getComponentInstantiationListeners().add(component -> {
if (component instanceof Page) {
component.add(new JQueryUIResourceBehavior());
}
});
}
Aggregations