use of jsinterop.annotations.JsOverlay in project flow by vaadin.
the class TestElementTemplateNode method doGetClassNames.
@JsOverlay
default JsonObject doGetClassNames() {
JsonObject classNames = getClassNames();
if (classNames == null) {
classNames = Json.createObject();
setClassNames(classNames);
}
return classNames;
}
use of jsinterop.annotations.JsOverlay in project activityinfo by bedatadriven.
the class PendingTransaction method create.
@JsOverlay
public static PendingTransaction create(RecordTransaction transaction, List<RecordUpdate> rollbacks) {
PendingTransaction p = new PendingTransaction();
p.id = transaction.getId();
p.status = READY;
p.time = new Date();
p.transaction = transaction;
p.rollbacks = rollbacks.toArray(new RecordUpdate[rollbacks.size()]);
return p;
}
use of jsinterop.annotations.JsOverlay in project vue-gwt by Axellience.
the class VueComponentOptions method addJavaComputed.
/**
* Add a computed property to this ComponentOptions.
* If the computed has both a getter and a setter, this will be called twice, once for each.
* @param javaMethodName Name of the method in the {@link VueComponent}
* @param computedPropertyName Name of the computed property in the Template and the
* ComponentOptions
* @param kind Kind of the computed method (getter or setter)
*/
@JsOverlay
public final void addJavaComputed(String javaMethodName, String computedPropertyName, ComputedKind kind) {
ComputedOptions computedDefinition = getComputedOptions(computedPropertyName);
if (computedDefinition == null) {
computedDefinition = new ComputedOptions();
addComputedOptions(computedPropertyName, computedDefinition);
}
Object method = getJavaComponentMethod(javaMethodName);
if (kind == ComputedKind.GETTER)
computedDefinition.get = method;
else if (kind == ComputedKind.SETTER)
computedDefinition.set = method;
}
use of jsinterop.annotations.JsOverlay in project gwt-cs by iSergio.
the class ParticleBurst method create.
@JsOverlay
public static ParticleBurst create(double time, double minimum, double maximum) {
ParticleBurstOptions options = new ParticleBurstOptions();
options.time = time;
options.minimum = minimum;
options.maximum = maximum;
return new ParticleBurst(options);
}
use of jsinterop.annotations.JsOverlay in project flow by vaadin.
the class TestElementTemplateNode method doGetProperties.
@JsOverlay
default JsonObject doGetProperties() {
JsonObject properties = getProperties();
if (properties == null) {
properties = Json.createObject();
setProperties(properties);
}
return properties;
}
Aggregations