19 package org.turro.elephant.web.context;
22 import java.util.TreeMap;
23 import org.turro.string.Strings;
24 import org.turro.elephant.context.IElement;
25 import org.turro.elephant.impl.context.AttributeItem;
26 import org.turro.elephant.impl.context.AttributeSupport;
27 import org.turro.elephant.impl.context.DefaultElement;
28 import org.turro.elephant.layout.IManageable;
29 import org.turro.reflection.Reflections;
37 private String elementClass, role;
38 private Map<String, String> attributes =
new TreeMap<>();
45 this.elementClass = elementClass;
61 this.attributes = attributes;
67 return Strings.isBlank(elementClass);
76 attributes.forEach((k, v) -> {
static final int STRING_ATTR
void addAttribute(AttributeItem attr)
Map< String, String > getAttributes()
void setRole(String role)
void setAttributes(Map< String, String > attributes)
void setElementClass(String elementClass)
IElement getInstance(WebContext context)