Class ResourceElement

  • All Implemented Interfaces:
    org.jboss.elemento.IsElement<elemental2.dom.HTMLElement>, Attachable

    public class ResourceElement
    extends Object
    implements org.jboss.elemento.IsElement<elemental2.dom.HTMLElement>, Attachable
    Master detail element for a resource with support for n complex attributes of type OBJECT and one complex attribute of type LIST.

    This class provides the following features:

    • Table for the main resource with add and remove buttons.
    • Form with all simple configuration attributes of the main resource.
    • A tab for each complex attribute of type OBJECT. The tab contains a form to add, save, reset and remove the complex attribute (remove is only available if the complex attribute is not required).
    • If there's a complex attribute of type LIST, the table contains a link to a sub-page. The sub-page contains a table and a form to CRUD the elements of the complex attribute. Only simple attributes in the complex attribute of type LIST are supported.
    • All CRUD actions are delegated to CrudOperations and ComplexAttributeOperations

    Multiple complex attributes of type LIST or nested complex attributes are not supported.

    • Method Detail

      • element

        public elemental2.dom.HTMLElement element()
        Specified by:
        element in interface org.jboss.elemento.IsElement<elemental2.dom.HTMLElement>
      • getFormComplexList

        public Form<ModelNode> getFormComplexList()
        Returns:
        The form that represents the complex attribute of type LIST