
com.vaadin.ui.StyleGenerator Maven / Gradle / Ivy
/*
* Copyright (C) 2000-2024 Vaadin Ltd
*
* This program is available under Vaadin Commercial License and Service Terms.
*
* See for the full
* license.
*/
package com.vaadin.ui;
import com.vaadin.server.SerializableFunction;
/**
* A callback interface for generating custom CSS class names for items.
*
* @param
* the item type
*
* @since 8.0
* @author Vaadin Ltd
*/
@FunctionalInterface
public interface StyleGenerator extends SerializableFunction {
/**
* Gets a class name for the {@code item}.
*
* @param item
* the item to get the class name for
* @return the generated class name
*/
@Override
String apply(T item);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy