Class LafPreference
- java.lang.Object
-
- org.openstreetmap.josm.gui.preferences.display.LafPreference
-
- All Implemented Interfaces:
PreferenceSetting,SubPreferenceSetting
public class LafPreference extends java.lang.Object implements SubPreferenceSetting
Look-and-feel preferences.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLafPreference.FactoryFactory used to create a newLafPreference.(package private) static classLafPreference.LafListCellRenderer
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.JCheckBoxdialogGeometryprivate javax.swing.JCheckBoxdynamicButtonsprivate javax.swing.JCheckBoxisoDatesstatic StringPropertyLAFLook-and-feel property.private JosmComboBox<javax.swing.UIManager.LookAndFeelInfo>lafComboComboBox with all look and feels.private javax.swing.JCheckBoxmodelessprivate javax.swing.JCheckBoxnativeFileChoosers(package private) VerticallyScrollablePanelpanelprivate javax.swing.JCheckBoxpreviewPrioritizeSelectionprivate javax.swing.JCheckBoxpreviewPropsOnHoverprivate javax.swing.JCheckBoxshowCoorprivate javax.swing.JCheckBoxshowIDprivate javax.swing.JCheckBoxshowLocalizedNameprivate javax.swing.JCheckBoxshowSplashScreenprivate javax.swing.JCheckBoxshowUserprivate javax.swing.JCheckBoxshowVersionprivate javax.swing.JSpinnerspinZoomRatioprivate javax.swing.JCheckBoxzoomIntermediateStepsprivate javax.swing.JCheckBoxzoomReverseWheel
-
Constructor Summary
Constructors Constructor Description LafPreference()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGui(PreferenceTabbedPane gui)Add the GUI elements to the dialog.TabPreferenceSettinggetTabPreferenceSetting(PreferenceTabbedPane gui)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 Detail
-
LAF
public static final StringProperty LAF
Look-and-feel property.- Since:
- 11713
-
lafCombo
private JosmComboBox<javax.swing.UIManager.LookAndFeelInfo> lafCombo
ComboBox with all look and feels.
-
showSplashScreen
private final javax.swing.JCheckBox showSplashScreen
-
showUser
private final javax.swing.JCheckBox showUser
-
showID
private final javax.swing.JCheckBox showID
-
showVersion
private final javax.swing.JCheckBox showVersion
-
showCoor
private final javax.swing.JCheckBox showCoor
-
showLocalizedName
private final javax.swing.JCheckBox showLocalizedName
-
modeless
private final javax.swing.JCheckBox modeless
-
previewPropsOnHover
private final javax.swing.JCheckBox previewPropsOnHover
-
previewPrioritizeSelection
private final javax.swing.JCheckBox previewPrioritizeSelection
-
dynamicButtons
private final javax.swing.JCheckBox dynamicButtons
-
isoDates
private final javax.swing.JCheckBox isoDates
-
dialogGeometry
private final javax.swing.JCheckBox dialogGeometry
-
nativeFileChoosers
private final javax.swing.JCheckBox nativeFileChoosers
-
zoomReverseWheel
private final javax.swing.JCheckBox zoomReverseWheel
-
zoomIntermediateSteps
private final javax.swing.JCheckBox zoomIntermediateSteps
-
spinZoomRatio
private javax.swing.JSpinner spinZoomRatio
-
-
Constructor Detail
-
LafPreference
public LafPreference()
-
-
Method Detail
-
addGui
public void addGui(PreferenceTabbedPane gui)
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
public boolean 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
public boolean 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
public TabPreferenceSetting getTabPreferenceSetting(PreferenceTabbedPane gui)
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
-
-