Search in sources :

Example 1 with JsOverlay

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;
}
Also used : JsonObject(elemental.json.JsonObject) JsOverlay(jsinterop.annotations.JsOverlay)

Example 2 with JsOverlay

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;
}
Also used : RecordUpdate(org.activityinfo.model.resource.RecordUpdate) Date(java.util.Date) JsOverlay(jsinterop.annotations.JsOverlay)

Example 3 with JsOverlay

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;
}
Also used : JsObject(elemental2.core.JsObject) ComputedOptions(com.axellience.vuegwt.core.client.component.options.computed.ComputedOptions) JsOverlay(jsinterop.annotations.JsOverlay)

Example 4 with JsOverlay

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);
}
Also used : ParticleBurstOptions(org.cesiumjs.cs.scene.particle.options.ParticleBurstOptions) JsOverlay(jsinterop.annotations.JsOverlay)

Example 5 with JsOverlay

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;
}
Also used : JsonObject(elemental.json.JsonObject) JsOverlay(jsinterop.annotations.JsOverlay)

Aggregations

JsOverlay (jsinterop.annotations.JsOverlay)19 JsonObject (elemental.json.JsonObject)4 PropOptions (com.axellience.vuegwt.core.client.component.options.props.PropOptions)3 JsPropertyMap (jsinterop.base.JsPropertyMap)3 JsObject (elemental2.core.JsObject)2 EllipsoidSurfaceAppearanceOptions (org.cesiumjs.cs.scene.apperances.options.EllipsoidSurfaceAppearanceOptions)2 ComputedOptions (com.axellience.vuegwt.core.client.component.options.computed.ComputedOptions)1 HandlerRegistration (com.google.gwt.event.shared.HandlerRegistration)1 Function (elemental2.core.Function)1 Date (java.util.Date)1 RecordUpdate (org.activityinfo.model.resource.RecordUpdate)1 PolylineGlowMaterialPropertyOptions (org.cesiumjs.cs.datasources.properties.options.PolylineGlowMaterialPropertyOptions)1 PerInstanceColorAppearanceOptions (org.cesiumjs.cs.scene.apperances.options.PerInstanceColorAppearanceOptions)1 ParticleBurstOptions (org.cesiumjs.cs.scene.particle.options.ParticleBurstOptions)1 Event (org.jboss.errai.common.client.dom.Event)1 EventListener (org.jboss.errai.common.client.dom.EventListener)1 HTMLElement (org.jboss.errai.common.client.dom.HTMLElement)1