Package org.jboss.hal.core.mbui
Class ResourceElement
- java.lang.Object
-
- org.jboss.hal.core.mbui.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 typeOBJECTand one complex attribute of typeLIST.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 typeLISTare supported. - All CRUD actions are delegated to
CrudOperationsandComplexAttributeOperations
Multiple complex attributes of type
LISTor nested complex attributes are not supported.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResourceElement.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattach()elemental2.dom.HTMLElementelement()Form<NamedNode>getForm()Form<ModelNode>getFormComplexList()Table<NamedNode>getTable()voidupdate(List<NamedNode> nodes)-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.hal.ballroom.Attachable
detach
-
-
-
-
Method Detail
-
element
public elemental2.dom.HTMLElement element()
- Specified by:
elementin interfaceorg.jboss.elemento.IsElement<elemental2.dom.HTMLElement>
-
attach
public void attach()
- Specified by:
attachin interfaceAttachable
-
-