|
16 | 16 | */
|
17 | 17 | package com.jwebmp.core.base.html;
|
18 | 18 |
|
19 |
| -import com.fasterxml.jackson.annotation.*; |
20 |
| -import com.jwebmp.core.*; |
21 |
| -import com.jwebmp.core.base.client.*; |
22 |
| -import com.jwebmp.core.base.html.attributes.*; |
23 |
| -import com.jwebmp.core.base.html.interfaces.*; |
| 19 | +import com.fasterxml.jackson.annotation.JsonIgnore; |
| 20 | +import com.fasterxml.jackson.annotation.JsonProperty; |
| 21 | +import com.jwebmp.core.Component; |
| 22 | +import com.jwebmp.core.base.client.Browsers; |
| 23 | +import com.jwebmp.core.base.client.HTMLVersions; |
| 24 | +import com.jwebmp.core.base.html.attributes.NoAttributes; |
| 25 | +import com.jwebmp.core.base.html.interfaces.HTMLFeatures; |
| 26 | +import com.jwebmp.core.base.html.interfaces.NoClassAttribute; |
| 27 | +import com.jwebmp.core.base.html.interfaces.NoIDTag; |
| 28 | +import com.jwebmp.core.base.html.interfaces.children.BodyChildren; |
24 | 29 | import com.jwebmp.core.base.html.interfaces.children.HtmlChildren;
|
25 |
| -import com.jwebmp.core.base.html.interfaces.events.*; |
26 |
| -import com.jwebmp.core.base.interfaces.CastableComponent; |
27 |
| -import com.jwebmp.core.base.servlets.enumarations.*; |
28 |
| -import com.jwebmp.core.services.IPage; |
29 |
| -import jakarta.validation.constraints.*; |
| 30 | +import com.jwebmp.core.base.html.interfaces.events.NoEvents; |
| 31 | +import com.jwebmp.core.base.interfaces.IComponentHierarchyBase; |
| 32 | +import com.jwebmp.core.base.servlets.enumarations.ComponentTypes; |
| 33 | +import com.jwebmp.core.base.servlets.enumarations.DevelopmentEnvironments; |
| 34 | +import jakarta.validation.constraints.NotNull; |
30 | 35 |
|
31 | 36 | /**
|
32 | 37 | * The base HTML Component.<p>
|
@@ -125,6 +130,20 @@ protected StringBuilder renderBeforeTag()
|
125 | 130 | return sb;
|
126 | 131 | }
|
127 | 132 |
|
| 133 | + /** |
| 134 | + * Returns the body object |
| 135 | + * |
| 136 | + * @return |
| 137 | + */ |
| 138 | + public IComponentHierarchyBase<BodyChildren, ?> getBody() |
| 139 | + { |
| 140 | + if (body == null) |
| 141 | + { |
| 142 | + body = new Body<>(); |
| 143 | + } |
| 144 | + return body; |
| 145 | + } |
| 146 | + |
128 | 147 | /**
|
129 | 148 | * Returns the current browser or FireFox
|
130 | 149 | *
|
@@ -211,14 +230,20 @@ public Head<?> getHead()
|
211 | 230 | /*
|
212 | 231 | * Returns the body object on the HTML Tag
|
213 | 232 | */
|
214 |
| - public Body<?, ?> getBody() |
| 233 | + /*public Body<?, ?> getBody() |
215 | 234 | {
|
216 | 235 | if (body == null)
|
217 | 236 | {
|
218 | 237 | body = new Body<>((IPage) this);
|
219 | 238 | }
|
220 | 239 | return body;
|
221 |
| - } |
| 240 | + }*/ |
| 241 | + |
| 242 | +/* public Body<?, ?> getBody() |
| 243 | + { |
| 244 | + return body; |
| 245 | + }*/ |
| 246 | + |
222 | 247 |
|
223 | 248 | /**
|
224 | 249 | * Sets the body for this class
|
|
0 commit comments