easter-egg
Simple component allowing to add easter eggs
Component watching the user's key strokes to trigger event
Sample code
EasterEgg konamiEgg = new EasterEgg( e -> Notification.show("konami", 2000, Position.MIDDLE) ); EasterEgg vaadinEgg = new EasterEgg( e -> Notification.show("vaadin", 2000, Position.MIDDLE), KeyCode.V, KeyCode.A, KeyCode.A, KeyCode.D, KeyCode.I, KeyCode.N ); add(new Button("add konami", e -> UI.getCurrent().add(konamiEgg))); add(new Button("remove konami", e -> UI.getCurrent().remove(konamiEgg))); add(new Button("add vaadin", e -> UI.getCurrent().add(vaadinEgg))); add(new Button("remove vaadin", e -> UI.getCurrent().remove(vaadinEgg)));
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
- Released
- 2019-09-08
- Maturity
- STABLE
- License
- Apache License 2.0
Compatibility
- Framework
- Vaadin 10+
- Browser
- N/A
easter-egg - Vaadin Add-on Directory
Simple component allowing to add easter eggsComponent watching the user's key strokes to trigger event