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

io.imunity.vaadin.elements.ComponentWithLabel Maven / Gradle / Ivy

/*
 * Copyright (c) 2021 Bixbit - Krzysztof Benedyczak. All rights reserved.
 * See LICENCE.txt file for licensing information.
 */
package io.imunity.vaadin.elements;

public interface ComponentWithLabel
{
	static String normalizeLabel(String label)
	{
		if (!(label != null && !label.isEmpty()))
			return label;
		
		String normalizedLabel = label;
		if (label.endsWith(":"))
			normalizedLabel = label.substring(0, label.length() - 1);
		return normalizedLabel;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy