All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.fluorumlabs.disconnect.vaadin.CrudForm Maven / Gradle / Ivy

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; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy