public class StreetsidePreferenceSetting extends Object implements SubPreferenceSetting, StreetsideLoginListener
Modifier and Type | Class and Description |
---|---|
private static class |
StreetsidePreferenceSetting.LoginAction
Opens the StreetsideOAuthUI window and lets the user log in.
|
private class |
StreetsidePreferenceSetting.LogoutAction
Logs the user out.
|
Modifier and Type | Field and Description |
---|---|
private JCheckBox |
cutOffSeq |
private JCheckBox |
developer |
private JCheckBox |
displayHour |
private JComboBox<String> |
downloadModeComboBox |
private JCheckBox |
format24 |
private JCheckBox |
hoverEnabled |
private JCheckBox |
imageLinkToBlurEditor |
private JButton |
loginButton |
private JLabel |
loginLabel |
private JPanel |
loginPanel |
private JButton |
logoutButton |
private JCheckBox |
moveTo |
private SpinnerNumberModel |
preFetchSize |
Constructor and Description |
---|
StreetsidePreferenceSetting() |
Modifier and Type | Method and Description |
---|---|
void |
addGui(PreferenceTabbedPane gui) |
TabPreferenceSetting |
getTabPreferenceSetting(PreferenceTabbedPane gui) |
boolean |
isExpert() |
boolean |
ok() |
void |
onLogin(String username)
Should be called whenever the user logs into a mapillary account.
|
void |
onLogout()
Should be called whenever the user logs out of a mapillary account.
|
private final JComboBox<String> downloadModeComboBox
private final JCheckBox displayHour
private final JCheckBox hoverEnabled
private final JCheckBox imageLinkToBlurEditor
private final SpinnerNumberModel preFetchSize
private final JButton loginButton
private final JButton logoutButton
private final JLabel loginLabel
private final JPanel loginPanel
public StreetsidePreferenceSetting()
public TabPreferenceSetting getTabPreferenceSetting(PreferenceTabbedPane gui)
getTabPreferenceSetting
in interface SubPreferenceSetting
public void addGui(PreferenceTabbedPane gui)
addGui
in interface PreferenceSetting
public void onLogin(String username)
StreetsideLoginListener
onLogin
in interface StreetsideLoginListener
username
- the username that the user is now logged in withpublic void onLogout()
StreetsideLoginListener
onLogout
in interface StreetsideLoginListener
public boolean ok()
ok
in interface PreferenceSetting
public boolean isExpert()
isExpert
in interface PreferenceSetting