All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dominokit.domino.ui.style.WavesElement Maven / Gradle / Ivy

There is a newer version: 1.0.139
Show newest version
package org.dominokit.domino.ui.style;

import elemental2.dom.HTMLElement;
import org.dominokit.domino.ui.utils.BaseDominoElement;
import org.jboss.elemento.IsElement;

public abstract class WavesElement> extends BaseDominoElement implements HasWaveEffect {

    protected WavesSupport wavesSupport;

    @Override
    public void init(T element) {
        super.init(element);
        wavesSupport = WavesSupport.addFor(this.getWavesElement());
    }

    @Override
    public T initWaves() {
        wavesSupport.initWaves();
        return element;
    }

    @Override
    public T setWaveColor(WaveColor waveColor) {
        wavesSupport.setWavesColor(waveColor);
        return element;
    }

    @Override
    public T applyWaveStyle(WaveStyle waveStyle) {
        wavesSupport.applyWaveStyle(waveStyle);
        return element;
    }

    @Override
    public T removeWaves() {
        wavesSupport.removeWaves();
        return element;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy