Skip to content

Commit

Permalink
Move Data Binding to the Client
Browse files Browse the repository at this point in the history
  • Loading branch information
GedMarc committed Mar 2, 2024
1 parent fb72230 commit 4989eb6
Show file tree
Hide file tree
Showing 116 changed files with 422 additions and 1,190 deletions.
481 changes: 231 additions & 250 deletions src/main/java/com/jwebmp/core/Event.java

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main/java/com/jwebmp/core/Page.java
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ private void addVariablesScriptToPage()
.append(var)
.append(STRING_SEMICOLON);
}
if (variablesScriptBuilder.length() > 0)
if (!variablesScriptBuilder.isEmpty())
{
Script<?, ?> variablesScript = new Script<>();
variablesScript.setID("variables");
Expand Down
163 changes: 0 additions & 163 deletions src/main/java/com/jwebmp/core/databind/ClientVariableWatcher.java

This file was deleted.

26 changes: 0 additions & 26 deletions src/main/java/com/jwebmp/core/databind/IClientVariableWatcher.java

This file was deleted.

5 changes: 0 additions & 5 deletions src/main/java/com/jwebmp/core/databind/IConfiguration.java

This file was deleted.

16 changes: 0 additions & 16 deletions src/main/java/com/jwebmp/core/databind/IOnComponentAdded.java

This file was deleted.

14 changes: 0 additions & 14 deletions src/main/java/com/jwebmp/core/databind/IOnComponentHtmlRender.java

This file was deleted.

23 changes: 0 additions & 23 deletions src/main/java/com/jwebmp/core/databind/IOnDataBind.java

This file was deleted.

21 changes: 0 additions & 21 deletions src/main/java/com/jwebmp/core/databind/IOnDataBindCloak.java

This file was deleted.

18 changes: 0 additions & 18 deletions src/main/java/com/jwebmp/core/events/IOnEventServiceBase.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import com.jwebmp.core.base.ajax.AjaxResponse;
import com.jwebmp.core.base.html.interfaces.GlobalFeatures;
import com.jwebmp.core.base.html.interfaces.events.GlobalEvents;
import com.jwebmp.core.events.services.IOnActivateService;
import com.jwebmp.core.htmlbuilder.javascript.events.enumerations.EventTypes;
import com.jwebmp.core.plugins.ComponentInformation;
import lombok.extern.java.Log;
Expand Down Expand Up @@ -87,7 +88,7 @@ private void onCreate()
{
@SuppressWarnings("rawtypes")
Set<IOnActivateService> services = IGuiceContext.instance()
.getLoader(IOnActivateService.class, ServiceLoader.load(IOnActivateService.class));
.getLoader(IOnActivateService.class, ServiceLoader.load(IOnActivateService.class));
services.forEach(service -> service.onCreate(this));
}

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import com.jwebmp.core.base.ajax.AjaxResponse;
import com.jwebmp.core.base.html.interfaces.GlobalFeatures;
import com.jwebmp.core.base.html.interfaces.events.GlobalEvents;
import com.jwebmp.core.events.services.IOnBeforeActivateService;
import com.jwebmp.core.htmlbuilder.javascript.events.enumerations.EventTypes;
import com.jwebmp.core.plugins.ComponentInformation;
import lombok.extern.java.Log;
Expand Down Expand Up @@ -84,7 +85,7 @@ public void fireEvent(AjaxCall<?> call, AjaxResponse<?> response)
private void onCall()
{
Set<IOnBeforeActivateService> services = IGuiceContext.instance()
.getLoader(IOnBeforeActivateService.class, ServiceLoader.load(IOnBeforeActivateService.class));
.getLoader(IOnBeforeActivateService.class, ServiceLoader.load(IOnBeforeActivateService.class));
services.forEach(service -> service.onCall(this));
}

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import com.jwebmp.core.base.ajax.AjaxResponse;
import com.jwebmp.core.base.html.interfaces.GlobalFeatures;
import com.jwebmp.core.base.html.interfaces.events.GlobalEvents;
import com.jwebmp.core.events.services.IOnBeforeCloseService;
import com.jwebmp.core.htmlbuilder.javascript.events.enumerations.EventTypes;
import com.jwebmp.core.plugins.ComponentInformation;
import lombok.extern.java.Log;
Expand Down Expand Up @@ -85,7 +86,7 @@ public void fireEvent(AjaxCall<?> call, AjaxResponse<?> response)
private void onCall()
{
Set<IOnBeforeCloseService> services = IGuiceContext.instance()
.getLoader(IOnBeforeCloseService.class, ServiceLoader.load(IOnBeforeCloseService.class));
.getLoader(IOnBeforeCloseService.class, ServiceLoader.load(IOnBeforeCloseService.class));
services.forEach(service -> service.onCall(this));
}

Expand Down

This file was deleted.

Loading

0 comments on commit 4989eb6

Please sign in to comment.