Module org.bigdataviewer.core
Package bdv.ui.settings
Interface SelectAndEditProfileSettingsPage.ProfileManager<T extends SelectAndEditProfileSettingsPage.Profile>
-
- Type Parameters:
T- the type of profiles to manage.
- All Known Implementing Classes:
StyleProfileManager
- Enclosing class:
- SelectAndEditProfileSettingsPage<T extends SelectAndEditProfileSettingsPage.Profile>
public static interface SelectAndEditProfileSettingsPage.ProfileManager<T extends SelectAndEditProfileSettingsPage.Profile>Interface for classes that manage a collection of profiles.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidapply()voidcancel()voiddelete(T profile)Tduplicate(T profile)Duplicateprofilewith a new derived name and add it to user profiles list.List<T>getProfiles()TgetSelectedProfile()voidrename(T profile, String newName)Try to set the name ofprofiletonewName.voidselect(T profile)Select the active profile.
-
-
-
Method Detail
-
getSelectedProfile
T getSelectedProfile()
-
select
void select(T profile)
Select the active profile.- Parameters:
profile- the profile.
-
duplicate
T duplicate(T profile)
Duplicateprofilewith a new derived name and add it to user profiles list.- Parameters:
profile- the profile.- Returns:
- duplicated profile
-
rename
void rename(T profile, String newName) throws IllegalArgumentException
Try to set the name ofprofiletonewName.- Parameters:
profile- the profile.newName- the name to set.- Throws:
IllegalArgumentException- if renaming was not possible (e.g., newName already exists)
-
delete
void delete(T profile)
-
apply
void apply()
-
cancel
void cancel()
-
-