Skip to content

Commit 3f996c2

Browse files
committed
Page getBody
1 parent 851827e commit 3f996c2

File tree

1 file changed

+37
-12
lines changed
  • src/main/java/com/jwebmp/core/base/html

1 file changed

+37
-12
lines changed

src/main/java/com/jwebmp/core/base/html/Html.java

Lines changed: 37 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,22 @@
1616
*/
1717
package com.jwebmp.core.base.html;
1818

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;
2429
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;
3035

3136
/**
3237
* The base HTML Component.<p>
@@ -125,6 +130,20 @@ protected StringBuilder renderBeforeTag()
125130
return sb;
126131
}
127132

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+
128147
/**
129148
* Returns the current browser or FireFox
130149
*
@@ -211,14 +230,20 @@ public Head<?> getHead()
211230
/*
212231
* Returns the body object on the HTML Tag
213232
*/
214-
public Body<?, ?> getBody()
233+
/*public Body<?, ?> getBody()
215234
{
216235
if (body == null)
217236
{
218237
body = new Body<>((IPage) this);
219238
}
220239
return body;
221-
}
240+
}*/
241+
242+
/* public Body<?, ?> getBody()
243+
{
244+
return body;
245+
}*/
246+
222247

223248
/**
224249
* Sets the body for this class

0 commit comments

Comments
 (0)