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

io.imunity.furms.ui.components.layout.FurmsAppLayoutUtils Maven / Gradle / Ivy

There is a newer version: 4.3.1
Show newest version
/*
 * Copyright (c) 2021 Bixbit s.c. All rights reserved.
 *  See LICENSE file for licensing information.
 */

package io.imunity.furms.ui.components.layout;

import com.vaadin.flow.component.Component;
import com.vaadin.flow.component.UI;
import io.imunity.furms.ui.components.FurmsViewComponent;
import io.imunity.furms.ui.components.PageTitle;

import static io.imunity.furms.ui.utils.VaadinTranslator.getTranslation;

public class FurmsAppLayoutUtils {

	public static String getPageTitle(Class componentClass) {
		String key = componentClass.getAnnotation(PageTitle.class).key();
		return getTranslation(key);
	}

	public static void callReloadLogo(final Class source) {
		UI.getCurrent().navigate(source);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy