linkki Databinding and Core Framework for Vaadin 8 Incubator

Vaadin 8 Modules for linkki

License

License

Categories

Categories

Vaadin User Interface Web Frameworks
GroupId

GroupId

org.linkki-framework
ArtifactId

ArtifactId

linkki-core-vaadin8-incubator
Last Version

Last Version

1.2.2
Release Date

Release Date

Type

Type

jar
Description

Description

linkki Databinding and Core Framework for Vaadin 8 Incubator
Vaadin 8 Modules for linkki
Project Organization

Project Organization

Faktor Zehn GmbH

Download linkki-core-vaadin8-incubator

How to add to project

<!-- https://jarcasting.com/artifacts/org.linkki-framework/linkki-core-vaadin8-incubator/ -->
<dependency>
    <groupId>org.linkki-framework</groupId>
    <artifactId>linkki-core-vaadin8-incubator</artifactId>
    <version>1.2.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.linkki-framework/linkki-core-vaadin8-incubator/
implementation 'org.linkki-framework:linkki-core-vaadin8-incubator:1.2.2'
// https://jarcasting.com/artifacts/org.linkki-framework/linkki-core-vaadin8-incubator/
implementation ("org.linkki-framework:linkki-core-vaadin8-incubator:1.2.2")
'org.linkki-framework:linkki-core-vaadin8-incubator:jar:1.2.2'
<dependency org="org.linkki-framework" name="linkki-core-vaadin8-incubator" rev="1.2.2">
  <artifact name="linkki-core-vaadin8-incubator" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.linkki-framework', module='linkki-core-vaadin8-incubator', version='1.2.2')
)
libraryDependencies += "org.linkki-framework" % "linkki-core-vaadin8-incubator" % "1.2.2"
[org.linkki-framework/linkki-core-vaadin8-incubator "1.2.2"]

Dependencies

compile (1)

Group / Artifact Type Version
org.linkki-framework : linkki-core-vaadin8 jar 1.2.2

provided (1)

Group / Artifact Type Version
com.github.spotbugs : spotbugs-annotations jar 3.1.12

test (7)

Group / Artifact Type Version
org.linkki-framework : linkki-test jar 1.2.2
org.linkki-framework : linkki-vaadin8-test jar 1.2.2
org.junit.jupiter : junit-jupiter-api jar 5.6.0
org.junit.jupiter : junit-jupiter-engine jar 5.6.0
org.junit.jupiter : junit-jupiter-params jar 5.6.0
org.mockito : mockito-junit-jupiter jar 3.2.4
org.hamcrest : hamcrest jar 2.2

Project Modules

There are no modules declared in this project.

linkki

License Maven Central

linkki is a data binding framework that makes building UI in vaadin applications easier and faster.

Features

Applications often consist of a variety of input elements that closely mirror objects and properties of a domain model. Creating such user interfaces and implementing the synchronization with the domain model is often a repetitive task. linkki automates most of the data binding tasks, enabling developers to focus on the domain and UI logic.

  • Fast UI development

  • Declarative UI definition (with annotations)

  • UI logic implementation using the presentation model pattern (PMO)

  • Automatic data binding between (P)MO and UI elements

  • Dynamic binding of other UI properties, including

    • Visibility

    • Enabled-state

    • List of available values

Examples

Model Binding
    @ModelObject
    public Report getReport() {
        return report;
    }
Textfield/Textarea
    @UITextArea(position = 10, label = "Description", modelAttribute = "description", required = RequiredType.REQUIRED, rows = 5, width = "50em")
    public void description() {
        /* Use description from report (model object) directly */
    }
ComboBox
    @UIComboBox(position = 20, label = "Type", modelAttribute = "type", required = RequiredType.REQUIRED)
    public void type() {
        /*
         * - bind value to the property "type" from report - use enum constants from ReportType as
         * available values
         */
    }
Button
    @UIButton(position = 30, caption = "Send", icon = VaadinIcons.SEND, showIcon = true, enabled = EnabledType.DYNAMIC)
    public void send() {
        report.save();
        Notification.show(
                          String.format("Report with id %d filed!", report.getId()),
                          "Thank you for reporting!",
                          Notification.Type.TRAY_NOTIFICATION);
    }

    /**
     * Enable button only if description and type is present.
     *
     * @return {@code true} if button is enabled otherwise {@code false}
     */
    public boolean isSendEnabled() {
        String description = report.getDescription();
        return description != null && !description.isEmpty()
                && report.getType() != null;
    }
}
report disabled
Figure 1. Report with disabled send button
report enabled
Figure 2. Report with enabled send button
Note
The complete example can be found at Getting Started - 'Error report' tutorial.

Installation

linkki is available from Maven Central and can be included via Maven/Gradle:

Maven dependency
<dependency>
  <groupId>org.linkki-framework</groupId>
  <artifactId>linkki-core-vaadin8</artifactId>
  <version>${linkki.version}</version>
</dependency>

Contribution

  • Bug reports, new ideas and improvements can be created in the GitHub issue tracker

  • Collaboration on issues/tasks via pull requests

Documentation

Documentation for linkki can be found at doc.linkki-framework.org.

License

Copyright Faktor Zehn GmbH.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

org.linkki-framework

Versions

Version
1.2.2
1.2.1
1.2.0
1.2.0-rc02
1.2.0-rc01
1.2.0-m02
1.2.0-m01