karibu-dsl-v10

Karibu-DSL, Kotlin extensions/DSL for Vaadin

License

License

GroupId

GroupId

com.github.mvysny.karibudsl
ArtifactId

ArtifactId

karibu-dsl-v10
Last Version

Last Version

0.7.5
Release Date

Release Date

Type

Type

jar
Description

Description

karibu-dsl-v10
Karibu-DSL, Kotlin extensions/DSL for Vaadin
Project URL

Project URL

https://github.com/mvysny/karibu-dsl
Source Code Management

Source Code Management

https://github.com/mvysny/karibu-dsl

Download karibu-dsl-v10

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.mvysny.karibudsl/karibu-dsl-v10/ -->
<dependency>
    <groupId>com.github.mvysny.karibudsl</groupId>
    <artifactId>karibu-dsl-v10</artifactId>
    <version>0.7.5</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.mvysny.karibudsl/karibu-dsl-v10/
implementation 'com.github.mvysny.karibudsl:karibu-dsl-v10:0.7.5'
// https://jarcasting.com/artifacts/com.github.mvysny.karibudsl/karibu-dsl-v10/
implementation ("com.github.mvysny.karibudsl:karibu-dsl-v10:0.7.5")
'com.github.mvysny.karibudsl:karibu-dsl-v10:jar:0.7.5'
<dependency org="com.github.mvysny.karibudsl" name="karibu-dsl-v10" rev="0.7.5">
  <artifact name="karibu-dsl-v10" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.mvysny.karibudsl', module='karibu-dsl-v10', version='0.7.5')
)
libraryDependencies += "com.github.mvysny.karibudsl" % "karibu-dsl-v10" % "0.7.5"
[com.github.mvysny.karibudsl/karibu-dsl-v10 "0.7.5"]

Dependencies

compile (5)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-stdlib-jdk8 jar 1.3.61
com.intellij : annotations jar 12.0
javax.validation : validation-api jar 2.0.1.Final
org.hibernate.validator : hibernate-validator jar 6.1.0.Final
org.glassfish : javax.el jar 3.0.1-b08

Project Modules

There are no modules declared in this project.

Powered By Vaadin on Kotlin Join the chat at https://gitter.im/vaadin/vaadin-on-kotlin GitHub tag Maven Central Heroku

Karibu-DSL (Vaadin Kotlin Extensions)

This is a Kotlin extensions and DSL library for the Vaadin framework. Please visit Vaadin-on-Kotlin pages for the Getting Started guide.

This library:

  • Allows you to create Vaadin UI designs in the structured code way; the idea behind the library is explained in the DSLs: Explained for Vaadin article (or for older Vaadin 8: DSLs: Explained for Vaadin 8). The general DSL idea is explained in Kotlin Type-Safe Builders.
  • (Vaadin 8 only): Auto-discovery and auto-mapping of Views via a custom Navigator
  • Additional useful methods which Vaadin lacks

The documentation differs for Vaadin 14 and for older Vaadin 8:

The origins of the word Karibu: it's a term for North American subspecies of the reindeer; that connects to Vaadin (which is a Finnish word for a female reindeer). A nice connotation comes from Swahili where Karibu means welcome.

Note: For Groovy Vaadin DSL please see the Vaadin Groovy Builder library.

Why DSL?

Just compare the Kotlin-based CommonElementsView with the original Java CommonParts. Both render the Common UI Elements page, yet with Kotlin DSL:

  • The UI structure is immediately visible
  • The code is more readable and much shorter and concise
  • You can more easily copy parts of the UI and paste it into your project

Supports:

Example Projects

Vaadin 14:

Vaadin 8:

Upgrading

To upgrade to 1.0.0 from 0.x.y:

  • Change the karibu-dsl-v10 dependency to just karibu-dsl.

License

Licensed under the MIT License.

Copyright (c) 2017-2020 Martin Vysny

All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Contributing

See Contributing.

Versions

Version
0.7.5
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
0.6.3
0.6.2
0.6.1
0.6.0
0.5.3
0.5.2
0.5.1
0.5.0