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

org.ikasan.dashboard.ui.general.component.TableButton Maven / Gradle / Ivy

There is a newer version: 4.0.1
Show newest version
package org.ikasan.dashboard.ui.general.component;

import com.vaadin.flow.component.ClickEvent;
import com.vaadin.flow.component.Component;
import com.vaadin.flow.component.ComponentEventListener;
import com.vaadin.flow.component.button.Button;

public class TableButton extends Button
{
    public TableButton()
    {
        this.init();
    }

    public TableButton(String text)
    {
        super(text);
        this.init();
    }

    public TableButton(Component icon)
    {
        super(icon);
        this.init();
    }

    public TableButton(String text, Component icon)
    {
        super(text, icon);
        this.init();
    }

    public TableButton(String text, ComponentEventListener> clickListener)
    {
        super(text, clickListener);
        this.init();
    }

    public TableButton(Component icon, ComponentEventListener> clickListener)
    {
        super(icon, clickListener);
        this.init();
    }

    public TableButton(String text, Component icon, ComponentEventListener> clickListener)
    {
        super(text, icon, clickListener);
        this.init();
    }

    protected void init()
    {
        this.getStyle().set("width", "30px");
        this.getStyle().set("height", "30px");
        this.getStyle().set("font-size", "12pt");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy