public class LafPreference extends java.lang.Object implements SubPreferenceSetting
Modifier and Type | Class and Description |
---|---|
static class |
LafPreference.Factory
Factory used to create a new
LafPreference . |
(package private) static class |
LafPreference.LafListCellRenderer |
Modifier and Type | Field and Description |
---|---|
private javax.swing.JCheckBox |
dynamicButtons |
private javax.swing.JCheckBox |
isoDates |
private JosmComboBox<javax.swing.UIManager.LookAndFeelInfo> |
lafCombo
ComboBox with all look and feels.
|
private javax.swing.JCheckBox |
modeless |
private javax.swing.JCheckBox |
nativeFileChoosers |
(package private) VerticallyScrollablePanel |
panel |
private javax.swing.JCheckBox |
showID |
private javax.swing.JCheckBox |
showLocalizedName |
private javax.swing.JCheckBox |
showSplashScreen |
private javax.swing.JSpinner |
spinZoomRatio |
private javax.swing.JCheckBox |
zoomIntermediateSteps |
private javax.swing.JCheckBox |
zoomReverseWheel |
Constructor and Description |
---|
LafPreference() |
Modifier and Type | Method and Description |
---|---|
void |
addGui(PreferenceTabbedPane gui)
Add the GUI elements to the dialog.
|
TabPreferenceSetting |
getTabPreferenceSetting(PreferenceTabbedPane gui)
Returns the preference setting (displayed in the specified preferences tab pane) that contains this preference setting.
|
boolean |
isExpert()
Called to know if the preferences tab has only to be displayed in expert mode.
|
boolean |
ok()
Called when OK is pressed to save the setting in the preferences file.
|
private JosmComboBox<javax.swing.UIManager.LookAndFeelInfo> lafCombo
private final javax.swing.JCheckBox showSplashScreen
private final javax.swing.JCheckBox showID
private final javax.swing.JCheckBox showLocalizedName
private final javax.swing.JCheckBox modeless
private final javax.swing.JCheckBox dynamicButtons
private final javax.swing.JCheckBox isoDates
private final javax.swing.JCheckBox nativeFileChoosers
private final javax.swing.JCheckBox zoomReverseWheel
private final javax.swing.JCheckBox zoomIntermediateSteps
private javax.swing.JSpinner spinZoomRatio
public LafPreference()
public void addGui(PreferenceTabbedPane gui)
PreferenceSetting
addGui
in interface PreferenceSetting
gui
- the preferences tab panepublic boolean ok()
PreferenceSetting
ok
in interface PreferenceSetting
true
if restart is requiredpublic boolean isExpert()
PreferenceSetting
isExpert
in interface PreferenceSetting
public TabPreferenceSetting getTabPreferenceSetting(PreferenceTabbedPane gui)
SubPreferenceSetting
getTabPreferenceSetting
in interface SubPreferenceSetting
gui
- preferences tabbed pane