Package com.biglybt.ui.swt.views
Class PrivacyView
- java.lang.Object
-
- com.biglybt.ui.swt.views.PrivacyView
-
- All Implemented Interfaces:
DownloadManagerStateAttributeListener
,UISWTViewEventListener
,UISWTViewCoreEventListener
public class PrivacyView extends java.lang.Object implements UISWTViewCoreEventListener, DownloadManagerStateAttributeListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
PrivacyView.I2PStackItem
-
Field Summary
Fields Modifier and Type Field Description private org.eclipse.swt.widgets.Composite
cMainComposite
private DownloadManager
current_dm
private PrivacyView.I2PStackItem
current_i2p_entry
private java.util.Set<java.lang.String>
enabled_networks
private java.util.Set<java.lang.String>
enabled_sources
private boolean
i2p_install_prompted
private org.eclipse.swt.widgets.Group
i2p_stack_group
private org.eclipse.swt.widgets.Button
ipfilter_enabled
private static boolean
KEEP_VIEW
private static int
MAX_LOOKUP_HISTORY
static java.lang.String
MSGID_PREFIX
private org.eclipse.swt.widgets.Button[]
network_buttons
private org.eclipse.swt.widgets.Composite
parent
private BufferedLabel
peer_info
private static int
PL_ANONYMOUS
private static int
PL_INVALID
private static int
PL_MIX
private static int
PL_PUBLIC
private int
privacy_level
private org.eclipse.swt.widgets.Scale
privacy_scale
private org.eclipse.swt.custom.ScrolledComposite
sc
private BufferedLabel
socks_current
private BufferedLabel
socks_fails
private org.eclipse.swt.widgets.Label
socks_more
private BufferedLabel
socks_state
private org.eclipse.swt.widgets.Button[]
source_buttons
private org.eclipse.swt.custom.StackLayout
stack_layout
private UISWTView
swtView
private BufferedLabel
torrent_info
private BufferedLabel
tracker_info
private BufferedLabel
vpn_info
private BufferedLabel
webseed_info
-
Fields inherited from interface com.biglybt.core.download.DownloadManagerStateAttributeListener
WILL_BE_READ, WRITTEN
-
-
Constructor Summary
Constructors Constructor Description PrivacyView()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
attributeEventOccurred(DownloadManager download, java.lang.String attribute, int event_type)
private void
dataSourceChanged(java.lang.Object newDataSource)
private void
delete()
boolean
eventOccurred(UISWTViewEvent event)
Triggers when an even listed in UISWTViewEvent occursprivate java.lang.String
getFullTitle()
private void
initialize()
private static void
injectResult(Download download, int[] result)
private void
refresh()
private org.eclipse.swt.layout.GridLayout
removeMargins(org.eclipse.swt.layout.GridLayout layout)
private org.eclipse.swt.layout.GridLayout
removeMarginsAndSpacing(org.eclipse.swt.layout.GridLayout layout)
private void
setPrivacyLevel(int level)
private void
setupNetworksAndSources(DownloadManager dm)
private void
setupTorrentTracker(DownloadManager dm)
private void
showSOCKSInfo()
private void
swt_updateFields(DownloadManager old_dm, DownloadManager new_dm)
private void
updatePeersEtc(DownloadManager dm)
private void
updateVPNSocks()
-
-
-
Field Detail
-
MSGID_PREFIX
public static final java.lang.String MSGID_PREFIX
- See Also:
- Constant Field Values
-
KEEP_VIEW
private static boolean KEEP_VIEW
-
MAX_LOOKUP_HISTORY
private static int MAX_LOOKUP_HISTORY
-
swtView
private UISWTView swtView
-
cMainComposite
private org.eclipse.swt.widgets.Composite cMainComposite
-
sc
private org.eclipse.swt.custom.ScrolledComposite sc
-
parent
private org.eclipse.swt.widgets.Composite parent
-
PL_PUBLIC
private static final int PL_PUBLIC
- See Also:
- Constant Field Values
-
PL_MIX
private static final int PL_MIX
- See Also:
- Constant Field Values
-
PL_ANONYMOUS
private static final int PL_ANONYMOUS
- See Also:
- Constant Field Values
-
PL_INVALID
private static final int PL_INVALID
- See Also:
- Constant Field Values
-
privacy_level
private int privacy_level
-
privacy_scale
private org.eclipse.swt.widgets.Scale privacy_scale
-
i2p_install_prompted
private boolean i2p_install_prompted
-
network_buttons
private org.eclipse.swt.widgets.Button[] network_buttons
-
source_buttons
private org.eclipse.swt.widgets.Button[] source_buttons
-
ipfilter_enabled
private org.eclipse.swt.widgets.Button ipfilter_enabled
-
peer_info
private BufferedLabel peer_info
-
torrent_info
private BufferedLabel torrent_info
-
tracker_info
private BufferedLabel tracker_info
-
webseed_info
private BufferedLabel webseed_info
-
vpn_info
private BufferedLabel vpn_info
-
socks_state
private BufferedLabel socks_state
-
socks_current
private BufferedLabel socks_current
-
socks_fails
private BufferedLabel socks_fails
-
socks_more
private org.eclipse.swt.widgets.Label socks_more
-
current_dm
private DownloadManager current_dm
-
enabled_networks
private java.util.Set<java.lang.String> enabled_networks
-
enabled_sources
private java.util.Set<java.lang.String> enabled_sources
-
current_i2p_entry
private PrivacyView.I2PStackItem current_i2p_entry
-
i2p_stack_group
private org.eclipse.swt.widgets.Group i2p_stack_group
-
stack_layout
private org.eclipse.swt.custom.StackLayout stack_layout
-
-
Method Detail
-
getFullTitle
private java.lang.String getFullTitle()
-
eventOccurred
public boolean eventOccurred(UISWTViewEvent event)
Description copied from interface:UISWTViewEventListener
Triggers when an even listed in UISWTViewEvent occurs- Specified by:
eventOccurred
in interfaceUISWTViewEventListener
- Parameters:
event
- event that occurred- Returns:
- meaning dependent upon event type
-
delete
private void delete()
-
refresh
private void refresh()
-
dataSourceChanged
private void dataSourceChanged(java.lang.Object newDataSource)
-
initialize
private void initialize()
-
injectResult
private static void injectResult(Download download, int[] result)
-
setPrivacyLevel
private void setPrivacyLevel(int level)
-
swt_updateFields
private void swt_updateFields(DownloadManager old_dm, DownloadManager new_dm)
-
setupNetworksAndSources
private void setupNetworksAndSources(DownloadManager dm)
-
setupTorrentTracker
private void setupTorrentTracker(DownloadManager dm)
-
updatePeersEtc
private void updatePeersEtc(DownloadManager dm)
-
updateVPNSocks
private void updateVPNSocks()
-
attributeEventOccurred
public void attributeEventOccurred(DownloadManager download, java.lang.String attribute, int event_type)
- Specified by:
attributeEventOccurred
in interfaceDownloadManagerStateAttributeListener
-
showSOCKSInfo
private void showSOCKSInfo()
-
removeMarginsAndSpacing
private org.eclipse.swt.layout.GridLayout removeMarginsAndSpacing(org.eclipse.swt.layout.GridLayout layout)
-
removeMargins
private org.eclipse.swt.layout.GridLayout removeMargins(org.eclipse.swt.layout.GridLayout layout)
-
-