
com.jwebmp.examples.undertow.angularvariablewatcher.DemoVariableEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of angularvariablewatcherdemo Show documentation
Show all versions of angularvariablewatcherdemo Show documentation
An example Angular Variable Change Catcher for Undertow in the JWebSwing Framework
The newest version!
package com.jwebmp.examples.undertow.angularvariablewatcher;
import com.jwebmp.core.Component;
import com.jwebmp.core.base.ajax.AjaxCall;
import com.jwebmp.core.base.ajax.AjaxResponse;
import com.jwebmp.core.base.ajax.AjaxResponseReaction;
import com.jwebmp.core.base.angular.AngularChangeDto;
import com.jwebmp.core.base.angular.AngularChangeEvent;
public class DemoVariableEvent
extends AngularChangeEvent
{
public DemoVariableEvent(Component component)
{
super(component);
}
public DemoVariableEvent()
{
}
@Override
public void onChange(AjaxCall call, AjaxResponse response)
{
AngularChangeDto change = getChangeDto(call);
response.addReaction(new AjaxResponseReaction("Event Variable Changed", "New Value : " + change.getNewValue()));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy