Esempio n. 1
0
 @Override
 public void renderHead(IHeaderResponse response) {
   response.render(JavaScriptHeaderItem.forReference(WidgetJavaScriptResourceReference.get()));
   response.render(JavaScriptHeaderItem.forReference(MouseJavaScriptResourceReference.get()));
   response.render(JavaScriptHeaderItem.forReference(SliderJavaScriptResourceReference.get()));
   response.render(OnDomReadyHeaderItem.forScript(statement().render()));
 }
Esempio n. 2
0
 @Override
 public void renderHead(IHeaderResponse response) {
   response.renderJavaScriptReference(WidgetJavaScriptResourceReference.get());
   response.renderJavaScriptReference(MouseJavaScriptResourceReference.get());
   response.renderJavaScriptReference(PositionJavaScriptResourceReference.get());
   response.renderJavaScriptReference(DialogJavaScriptResourceReference.get());
   response.renderJavaScriptReference(DraggableJavaScriptResourceReference.get());
   response.renderJavaScriptReference(ResizableJavaScriptResourceReference.get());
 }
 @Override
 public Iterable<? extends HeaderItem> getDependencies() {
   return JavaScriptHeaderItems.forReferences(
       CoreUIJavaScriptResourceReference.get(), MouseJavaScriptResourceReference.get());
 }