org.dominokit.domino.ui.loaders.NoneLoader Maven / Gradle / Ivy
package org.dominokit.domino.ui.loaders;
import elemental2.dom.HTMLDivElement;
import org.dominokit.domino.ui.utils.BaseDominoElement;
import org.jboss.gwt.elemento.core.IsElement;
import org.jboss.gwt.elemento.template.DataElement;
import org.jboss.gwt.elemento.template.Templated;
import javax.annotation.PostConstruct;
@Templated
public abstract class NoneLoader extends BaseLoader implements IsElement {
@DataElement
HTMLDivElement loadingText;
@PostConstruct
void init() {
init(this);
}
public static NoneLoader create() {
return new Templated_NoneLoader();
}
@Override
public void setLoadingText(String text) {
loadingText.textContent = text;
}
@Override
public void setSize(String width, String height) {
}
@Override
public void removeLoadingText() {
onAttached(mutationRecord -> loadingText.remove());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy