io.imunity.vaadin.auth.services.layout.ui.components.LastUsedOptionColumnComponent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unity-server-vaadin-authentication Show documentation
Show all versions of unity-server-vaadin-authentication Show documentation
Vaadin login view and components
/*
* Copyright (c) 2021 Bixbit - Krzysztof Benedyczak. All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package io.imunity.vaadin.auth.services.layout.ui.components;
import java.util.function.Consumer;
import com.vaadin.flow.component.icon.VaadinIcon;
import io.imunity.vaadin.auth.services.layout.configuration.elements.AuthnElementConfiguration;
import io.imunity.vaadin.auth.services.layout.configuration.elements.LastUsedConfig;
import io.imunity.vaadin.auth.services.layout.ui.ColumnComponent;
import io.imunity.vaadin.auth.services.layout.ui.ColumnComponentBase;
import pl.edu.icm.unity.base.message.MessageSource;
/**
*
* @author P.Piernik
*
*/
public class LastUsedOptionColumnComponent extends ColumnComponentBase
{
public LastUsedOptionColumnComponent(MessageSource msg, Consumer removeElementListener,
Runnable dragStart, Runnable dragStop)
{
super(msg, msg.getMessage("AuthnColumnLayoutElement.lastUsedOption"), VaadinIcon.STAR,
dragStart, dragStop, removeElementListener);
}
@Override
public void setConfigState(AuthnElementConfiguration state)
{
}
@Override
public LastUsedConfig getConfigState()
{
return new LastUsedConfig();
}
}