Class SelectAndEditProfileSettingsPage<T extends SelectAndEditProfileSettingsPage.Profile>

  • Type Parameters:
    T - type of thing being edited, e.g., TrackSchemeStyle.
    All Implemented Interfaces:
    SettingsPage
    Direct Known Subclasses:
    KeymapSettingsPage

    public class SelectAndEditProfileSettingsPage<T extends SelectAndEditProfileSettingsPage.Profile>
    extends Object
    implements SettingsPage
    A SettingsPage for the following common scenario: There are multiple "profiles" (e.g., keymaps, trackscheme styles, ...) to select from, and its possible to edit each individual profile.

    To instantiate such a SettingsPage, a ProfileManager and a ProfileEditPanel have to be provided. The SelectAndEditProfileSettingsPage.ProfileManager is responsible for selecting/renaming/etc profile. The SelectAndEditProfileSettingsPage.ProfileEditPanel is responsible for editing an individual profile.

    The SelectAndEditProfileSettingsPage provides UI for selecting, duplicating, renaming, and deleting profiles. If a Profile is built-in it is unmodifiable. When the user edits it, a duplicate is made automatically.

    Author:
    Tobias Pietzsch