/*
- * Copyright (C) 2016 Roland Haeder
+ * Copyright (C) 2016 - 2020 Free Software Foundation
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
import java.io.Serializable;
import java.util.Locale;
-import org.mxchange.jusercore.events.login.UserLoggedInEvent;
-import org.mxchange.jusercore.events.logout.ObserveableUserLogoutEvent;
/**
* An interface for localization change beans
* <p>
- * @author Roland Haeder<roland@mxchange.org>
+ * @author Roland Hรคder<roland@mxchange.org>
*/
public interface JobsLocalizationSessionController extends Serializable {
/**
- * Event observer for logged-in user
+ * Formats a float into a currency, depending on current locale
* <p>
- * @param event Event instance
- */
- void afterUserLoginEvent (final UserLoggedInEvent event);
-
- /**
- * Event observer for logged-out user
+ * @param amount Amount (price) to format
* <p>
- * @param event Event instance
+ * @return Formatted string
*/
- void afterUserLogoutEvent (final ObserveableUserLogoutEvent event);
+ String formatCurrency (final Float amount);
/**
* Getter for locale
*/
Locale getLocale ();
- /**
- * Setter for locale
- * <p>
- * @param locale Locale
- */
- void setLocale (final Locale locale);
-
- /**
- * Getter for language code
- * <p>
- * @return Language code
- */
- String getLanguage ();
-
- /**
- * Setter for language code
- * <p>
- * @param language Language code
- */
- void setLanguage (final String language);
-
- /**
- * Getter for selectable localizations
- * <p>
- * @return Selectable localizations
- */
- Locale[] getSelectableLocalizations ();
-
}