Class LafPreference
java.lang.Object
org.openstreetmap.josm.gui.preferences.display.LafPreference
- All Implemented Interfaces:
PreferenceSetting,SubPreferenceSetting
Look-and-feel preferences.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFactory used to create a newLafPreference.(package private) static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JCheckBoxprivate final JCheckBoxprivate final JCheckBoxstatic final StringPropertyLook-and-feel property.private JosmComboBox<UIManager.LookAndFeelInfo>ComboBox with all look and feels.private final JCheckBoxprivate final JCheckBox(package private) VerticallyScrollablePanelprivate final JCheckBoxprivate final JCheckBoxprivate final JCheckBoxprivate final JCheckBoxprivate final JCheckBoxprivate final JCheckBoxprivate final JCheckBoxprivate final JCheckBoxprivate JSpinnerprivate final JCheckBoxprivate final JCheckBox -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the GUI elements to the dialog.Returns the preference setting (displayed in the specified preferences tab pane) that contains this preference setting.booleanisExpert()Called to know if the preferences tab has only to be displayed in expert mode.booleanok()Called when OK is pressed to save the setting in the preferences file.
-
Field Details
-
LAF
Look-and-feel property.- Since:
- 11713
-
lafCombo
ComboBox with all look and feels. -
panel
-
showSplashScreen
-
showUser
-
showID
-
showVersion
-
showCoor
-
showLocalizedName
-
modeless
-
previewPropsOnHover
-
previewPrioritizeSelection
-
dynamicButtons
-
isoDates
-
dialogGeometry
-
nativeFileChoosers
-
zoomReverseWheel
-
zoomIntermediateSteps
-
spinZoomRatio
-
-
Constructor Details
-
LafPreference
public LafPreference()
-
-
Method Details
-
addGui
Description copied from interface:PreferenceSettingAdd the GUI elements to the dialog. The elements should be initialized after the current preferences.- Specified by:
addGuiin interfacePreferenceSetting- Parameters:
gui- the preferences tab pane
-
ok
Description copied from interface:PreferenceSettingCalled when OK is pressed to save the setting in the preferences file. Return true when restart is required.- Specified by:
okin interfacePreferenceSetting- Returns:
trueif restart is required
-
isExpert
Description copied from interface:PreferenceSettingCalled to know if the preferences tab has only to be displayed in expert mode.- Specified by:
isExpertin interfacePreferenceSetting- Returns:
- true if the tab has only to be displayed in expert mode, false otherwise.
-
getTabPreferenceSetting
Description copied from interface:SubPreferenceSettingReturns the preference setting (displayed in the specified preferences tab pane) that contains this preference setting.- Specified by:
getTabPreferenceSettingin interfaceSubPreferenceSetting- Parameters:
gui- preferences tabbed pane- Returns:
- parent preference setting
-