3.5.4. Non-Visual Components

A screen can contain non-visual components defined in the facets element of the XML descriptor. The framework provides the following non-visual components:

The application or an add-on can provide its own non-visual components. In order to create a custom facet, follow the steps below:

  1. Create an interface extending com.haulmont.cuba.gui.components.Facet.

  2. Create implementation class based on com.haulmont.cuba.web.gui.WebAbstractFacet.

  3. Create a Spring bean implementing the com.haulmont.cuba.gui.xml.FacetProvider interface parameterized by the type of your facet.

  4. Create an XSD to be used in screens XML.

Classes ClipboardTrigger, WebClipboardTrigger and ClipboardTriggerFacetProvider of the framework can be a good example of creating a facet.