com.github.fluorumlabs.disconnect.vaadin.CrudForm Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of disconnect-vaadin Show documentation
Show all versions of disconnect-vaadin Show documentation
Vaadin components bindings for Disconnect Zero
The newest version!
package com.github.fluorumlabs.disconnect.vaadin;
import com.github.fluorumlabs.disconnect.core.annotations.WebComponent;
import com.github.fluorumlabs.disconnect.vaadin.elements.CrudFormElement;
import com.github.fluorumlabs.disconnect.vaadin.mixins.HasIncludedMixin;
import com.github.fluorumlabs.disconnect.zero.component.AbstractComponent;
import com.github.fluorumlabs.disconnect.zero.component.Component;
import com.github.fluorumlabs.disconnect.zero.component.HasComponents;
import com.github.fluorumlabs.disconnect.zero.component.HasStyle;
import js.lang.Any;
import javax.annotation.Nullable;
/**
* <vaadin-crud-form>
is a which automatically can configures all its items
* based
* on the JSON structure of the first item set.
*
* You cannot manually configure fields but you can still style the layout as it's described in
* <vaadin-form-layout>
* Documentation
*/
@WebComponent
public class CrudForm- extends AbstractComponent
>
implements HasIncludedMixin, CrudForm- >,
HasStyle
, CrudForm- >, HasComponents
, CrudForm- , Component>> {
public CrudForm() {
super(CrudFormElement.TAGNAME());
}
/**
* The item being edited.
*/
@Nullable
public ITEM item() {
return getNode().getItem();
}
/**
* The item being edited.
*/
public CrudForm
- item(ITEM item) {
getNode().setItem(item);
return this;
}
}