This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BeanItemContainer<P> container = new BeanItemContainer<P>(P.class, ps); | |
final GeneratedPropertyContainer gp = new GeneratedPropertyContainer( | |
container); | |
gp.addGeneratedProperty("Col1", new PropertyValueGenerator<String>() { | |
@Override | |
public SortOrder[] getSortProperties(SortOrder order) { | |
return new SortOrder[] { new SortOrder("Col1", order | |
.getDirection()) }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Directive, ViewContainerRef} from 'angular2/core'; | |
/* | |
* This directive aims to overcome the current issues in integrating vaadin-bar-chart to an Angular 2 app. | |
*/ | |
@Directive({ | |
selector: 'vaadin-bar-chart' | |
}) | |
export class VaadinBarChart { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class MyUIServlet extends VaadinServlet { | |
@Override | |
protected void service(HttpServletRequest request, HttpServletResponse response) | |
throws ServletException, IOException { | |
String pathInfo = request.getPathInfo(); | |
if (pathInfo.endsWith("sw.js")) { | |
try (InputStream in = getClass().getResourceAsStream("/sw.js")) { | |
if (in == null) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="/js/app.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
navigator.serviceWorker.register('../sw.js', { scope: '/' }).then((reg) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@JavaScript("vaadin://js/app.js") | |
public class MyUI extends UI { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
navigator.serviceWorker.register('./sw.js', { scope: './' }).then((reg) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var filesToCache = [ | |
'/', | |
'/index.html', | |
'/css/styles.css', | |
'/js/app.js', | |
'/images/yeoman.png', | |
'/images/touch/chrome-touch-icon-192x192.png' | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var filesToCache = [ | |
'./', | |
'./VAADIN/themes/mytheme/styles.css?v=7.7.6', | |
'./VAADIN/js/app.js', | |
'./VAADIN/images/touch/chrome-touch-icon-192x192.png' | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@JavaScript("vaadin://js/app.js") | |
@Link(rel="manifest", href="VAADIN/manifest.json") | |
public class MyUI extends UI { |
OlderNewer