Class StreetsidePreferenceSetting
- java.lang.Object
-
- org.openstreetmap.josm.plugins.streetside.gui.StreetsidePreferenceSetting
-
- All Implemented Interfaces:
PreferenceSetting,SubPreferenceSetting,StreetsideLoginListener
public class StreetsidePreferenceSetting extends java.lang.Object implements SubPreferenceSetting, StreetsideLoginListener
Creates the preferences panel for the plugin.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classStreetsidePreferenceSetting.LoginActionOpens the StreetsideOAuthUI window and lets the user log in.private classStreetsidePreferenceSetting.LogoutActionLogs the user out.
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.JCheckBoxcutOffSeqprivate javax.swing.JCheckBoxdeveloperprivate javax.swing.JCheckBoxdisplayHourprivate javax.swing.JComboBox<java.lang.String>downloadModeComboBoxprivate javax.swing.JCheckBoxformat24private javax.swing.JCheckBoxhoverEnabledprivate javax.swing.JCheckBoximageLinkToBlurEditor(package private) static org.apache.log4j.Loggerloggerprivate javax.swing.JButtonloginButtonprivate javax.swing.JLabelloginLabelprivate javax.swing.JPanelloginPanelprivate javax.swing.JButtonlogoutButtonprivate javax.swing.JCheckBoxmoveToprivate javax.swing.SpinnerNumberModelpreFetchSize
-
Constructor Summary
Constructors Constructor Description StreetsidePreferenceSetting()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGui(PreferenceTabbedPane gui)TabPreferenceSettinggetTabPreferenceSetting(PreferenceTabbedPane gui)booleanisExpert()booleanok()voidonLogin(java.lang.String username)Should be called whenever the user logs into a mapillary account.voidonLogout()Should be called whenever the user logs out of a mapillary account.
-
-
-
Field Detail
-
logger
static final org.apache.log4j.Logger logger
-
downloadModeComboBox
private final javax.swing.JComboBox<java.lang.String> downloadModeComboBox
-
displayHour
private final javax.swing.JCheckBox displayHour
-
format24
private final javax.swing.JCheckBox format24
-
moveTo
private final javax.swing.JCheckBox moveTo
-
hoverEnabled
private final javax.swing.JCheckBox hoverEnabled
-
cutOffSeq
private final javax.swing.JCheckBox cutOffSeq
-
imageLinkToBlurEditor
private final javax.swing.JCheckBox imageLinkToBlurEditor
-
developer
private final javax.swing.JCheckBox developer
-
preFetchSize
private final javax.swing.SpinnerNumberModel preFetchSize
-
loginButton
private final javax.swing.JButton loginButton
-
logoutButton
private final javax.swing.JButton logoutButton
-
loginLabel
private final javax.swing.JLabel loginLabel
-
loginPanel
private final javax.swing.JPanel loginPanel
-
-
Constructor Detail
-
StreetsidePreferenceSetting
public StreetsidePreferenceSetting()
-
-
Method Detail
-
getTabPreferenceSetting
public TabPreferenceSetting getTabPreferenceSetting(PreferenceTabbedPane gui)
- Specified by:
getTabPreferenceSettingin interfaceSubPreferenceSetting
-
addGui
public void addGui(PreferenceTabbedPane gui)
- Specified by:
addGuiin interfacePreferenceSetting
-
onLogin
public void onLogin(java.lang.String username)
Description copied from interface:StreetsideLoginListenerShould be called whenever the user logs into a mapillary account. E.g. for updating the GUI to reflect the login status.- Specified by:
onLoginin interfaceStreetsideLoginListener- Parameters:
username- the username that the user is now logged in with
-
onLogout
public void onLogout()
Description copied from interface:StreetsideLoginListenerShould be called whenever the user logs out of a mapillary account. E.g. for updating the GUI to reflect the login status.- Specified by:
onLogoutin interfaceStreetsideLoginListener
-
ok
public boolean ok()
- Specified by:
okin interfacePreferenceSetting
-
isExpert
public boolean isExpert()
- Specified by:
isExpertin interfacePreferenceSetting
-
-