Skip to content

Vaadin 8 and 14 example of Button that needs to be hold down before event

License

Notifications You must be signed in to change notification settings

samie/specialbuttons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Specialized buttons add-on for Vaadin 14

This addon implements some specialized buttons:

  • HoldButton - a Button that needs to be pressed for a specified time.
  • SlideButton - a Button simulating "swipe to unlock" style.
  • DelayedButton - a Button that becomes active only after a delay. Shows a countdown in caption.
  • CancellableButton - a Button that you can cancel during given period. Shows a countdown in caption.

Development instructions

  1. Import to your favourite IDE
  2. Run the Maven goal mvn jetty:run http://localhost:8099
  3. Code and test
  • create UI's for various use cases for your add-ons, see examples. These can also work as usage examples for your add-on users.
  • create browser level and integration tests under src/test/java/
  • Browser level tests are executed manually from IDE (JUnit case) or with Maven profile "it" (mvn verify -Pit).
  1. Test also in real world projects, e.g. create a demo project, build a snapshot release ("mvn install") and use the snapshot build in it.

Creating releases

  1. Push your changes to e.g. Github
  2. Update pom.xml to contain proper SCM coordinates (first time only)
  3. Use Maven release plugin (mvn versions:set -DnewVersion=4.0.3; mvn install -Pdirectory)
  4. Upload the ZIP file generated to target/checkout/target directory to https://vaadin.com/directory service (and/or optionally publish your add-on to Maven central)

About

Vaadin 8 and 14 example of Button that needs to be hold down before event

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project