Package apps
Class GuiLocalePreferencesPanel
java.lang.Object
apps.GuiLocalePreferencesPanel
- All Implemented Interfaces:
JmriServiceProviderInterface,PreferencesPanel,PreferencesSubPanel
Provide PreferencesPanel information for the JPanel provided by
GuiLafConfigPane.doLocale().-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionText displayed above the preferences panel This label is only displayed if the preferences panel is in a tabbed set of preferences.Get the preferences component for displayGet the Preferences Item identifier.Get the text for the Preferences Item in the preferences window list of preferences categories.The tooltip to display for a tabbed preferences panelGet the title for the tab containing this preferences item.booleanisDirty()Indicate that preferences need to be saved.booleanIndicates that this PrefernecesPanel should be stored across application starts by the PreferencesManager This should be true if the implementing class relies on theConfigureManagerstores and retrieves the preferences managed by the implementing class on behalf of the implementing class.booleanIndicate that the preferences are valid.booleanIndicate that the preferences will not take effect until restarted.voidSave any changes to preferences.voidsetParent(PreferencesPanel parent) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jmri.swing.PreferencesPanel
getIsEnabled, getSortOrder
-
Field Details
-
parent
-
-
Constructor Details
-
GuiLocalePreferencesPanel
public GuiLocalePreferencesPanel()
-
-
Method Details
-
getParentClassName
- Specified by:
getParentClassNamein interfacePreferencesSubPanel
-
setParent
- Specified by:
setParentin interfacePreferencesSubPanel
-
getParent
- Specified by:
getParentin interfacePreferencesSubPanel
-
getPreferencesItem
Description copied from interface:PreferencesPanelGet the Preferences Item identifier. Multiple PreferencePanels can be displayed as tabs in a single item. Preferences items are listed in the menu on the left of the preferences window.- Specified by:
getPreferencesItemin interfacePreferencesPanel- Returns:
- the preferences item identifier.
-
getPreferencesItemText
Description copied from interface:PreferencesPanelGet the text for the Preferences Item in the preferences window list of preferences categories. Multiple PreferencePanels can be displayed as tabs in a single item. Preferences items are listed in the menu on the left of the preferences window.- Specified by:
getPreferencesItemTextin interfacePreferencesPanel- Returns:
- the text for the preferences item.
-
getTabbedPreferencesTitle
Description copied from interface:PreferencesPanelGet the title for the tab containing this preferences item.- Specified by:
getTabbedPreferencesTitlein interfacePreferencesPanel- Returns:
- a tab title
-
getLabelKey
Description copied from interface:PreferencesPanelText displayed above the preferences panel This label is only displayed if the preferences panel is in a tabbed set of preferences. This label can contain multiple lines.- Specified by:
getLabelKeyin interfacePreferencesPanel- Returns:
- label text
-
getPreferencesComponent
Description copied from interface:PreferencesPanelGet the preferences component for display- Specified by:
getPreferencesComponentin interfacePreferencesPanel- Returns:
- the preferences panel
-
isPersistant
Description copied from interface:PreferencesPanelIndicates that this PrefernecesPanel should be stored across application starts by the PreferencesManager This should be true if the implementing class relies on theConfigureManagerstores and retrieves the preferences managed by the implementing class on behalf of the implementing class.- Specified by:
isPersistantin interfacePreferencesPanel- Returns:
- false if the implementing class stores its own preferences
-
getPreferencesTooltip
Description copied from interface:PreferencesPanelThe tooltip to display for a tabbed preferences panel- Specified by:
getPreferencesTooltipin interfacePreferencesPanel- Returns:
- tooltip text
-
savePreferences
Description copied from interface:PreferencesPanelSave any changes to preferences. This method is called for every instance of a PreferencesPanel that is loaded byTabbedPreferencesifPreferencesPanel.isPersistant()is false.- Specified by:
savePreferencesin interfacePreferencesPanel
-
isDirty
Description copied from interface:PreferencesPanelIndicate that preferences need to be saved.- Specified by:
isDirtyin interfacePreferencesPanel- Returns:
- true if preferences need to be saved, false otherwise
-
isRestartRequired
Description copied from interface:PreferencesPanelIndicate that the preferences will not take effect until restarted.- Specified by:
isRestartRequiredin interfacePreferencesPanel- Returns:
- true if the application needs to restart
-
isPreferencesValid
Description copied from interface:PreferencesPanelIndicate that the preferences are valid.- Specified by:
isPreferencesValidin interfacePreferencesPanel- Returns:
- true if the preferences are valid, false otherwise
-