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

io.imunity.vaadin.auth.services.layout.ui.PaletteButton Maven / Gradle / Ivy

There is a newer version: 4.0.3
Show newest version
/*
 * Copyright (c) 2021 Bixbit - Krzysztof Benedyczak. All rights reserved.
 * See LICENCE.txt file for licensing information.
 */

package io.imunity.vaadin.auth.services.layout.ui;

import java.util.function.Supplier;

import com.vaadin.flow.component.button.Button;
import com.vaadin.flow.component.dnd.DragSource;
import com.vaadin.flow.component.dnd.EffectAllowed;
import com.vaadin.flow.component.icon.Icon;
import com.vaadin.flow.component.icon.VaadinIcon;

/**
 * Button which can be drag and drop on column component
 * 
 * @author P.Piernik
 *
 */
public class PaletteButton extends Button
{

	public PaletteButton(String title, VaadinIcon icon, Runnable dragStart, Runnable dragStop,
			Supplier layoutElementSupplier)
	{
		setText(title);
		setIcon(new Icon(icon));

//		DragSourceExtension




© 2015 - 2024 Weber Informatics LLC | Privacy Policy