Package com.im.df.util
Class CTFavouritesOptionsModel
- java.lang.Object
-
- com.im.df.util.CTFavouritesOptionsModel
-
- All Implemented Interfaces:
CTFavouritesProvider
public final class CTFavouritesOptionsModel extends Object implements CTFavouritesProvider
- Author:
- Petr Hamernik
-
-
Constructor Summary
Constructors Constructor Description CTFavouritesOptionsModel()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFavourite(CTFavourite favourite)
Add a new favourite CT expressionstatic Set<CTFavourite>
getDefaults()
Set<CTFavourite>
getFavourites()
Get all favourites registered to the system.static Set<CTFavourite>
load()
void
removeFavourite(CTFavourite favourite)
Remove the favouritevoid
resetDefaults()
static void
store(Set<CTFavourite> favourites)
-
-
-
Method Detail
-
getFavourites
public Set<CTFavourite> getFavourites()
Description copied from interface:CTFavouritesProvider
Get all favourites registered to the system.- Specified by:
getFavourites
in interfaceCTFavouritesProvider
- Returns:
- Set of all current CT favourites
-
addFavourite
public void addFavourite(CTFavourite favourite)
Description copied from interface:CTFavouritesProvider
Add a new favourite CT expression- Specified by:
addFavourite
in interfaceCTFavouritesProvider
- Parameters:
favourite
- New favourite to be added
-
removeFavourite
public void removeFavourite(CTFavourite favourite)
Description copied from interface:CTFavouritesProvider
Remove the favourite- Specified by:
removeFavourite
in interfaceCTFavouritesProvider
- Parameters:
favourite
- Favourite to be removed
-
resetDefaults
public void resetDefaults()
-
store
public static void store(Set<CTFavourite> favourites)
-
load
public static Set<CTFavourite> load()
-
getDefaults
public static Set<CTFavourite> getDefaults()
-
-