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 Object
implements UISWTViewCoreEventListener, DownloadManagerStateAttributeListener
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.eclipse.swt.widgets.Composite
private DownloadManager
private PrivacyView.I2PStackItem
private boolean
private org.eclipse.swt.widgets.Group
private org.eclipse.swt.widgets.Button
private static boolean
private static int
static final String
private org.eclipse.swt.widgets.Button[]
private org.eclipse.swt.widgets.Composite
private BufferedLabel
private static final int
private static final int
private static final int
private static final int
private int
private org.eclipse.swt.widgets.Scale
private org.eclipse.swt.custom.ScrolledComposite
private BufferedLabel
private BufferedLabel
private org.eclipse.swt.widgets.Label
private BufferedLabel
private org.eclipse.swt.widgets.Button[]
private org.eclipse.swt.custom.StackLayout
private UISWTView
private BufferedLabel
private BufferedLabel
private BufferedLabel
private BufferedLabel
Fields inherited from interface com.biglybt.core.download.DownloadManagerStateAttributeListener
WILL_BE_READ, WRITTEN
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
attributeEventOccurred
(DownloadManager download, String attribute, int event_type) private void
dataSourceChanged
(Object newDataSource) private void
delete()
boolean
eventOccurred
(UISWTViewEvent event) Triggers when an even listed in UISWTViewEvent occursprivate String
private void
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
private void
private void
private void
swt_updateFields
(DownloadManager old_dm, DownloadManager new_dm) private void
private void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.biglybt.ui.swt.pif.UISWTViewEventListener
informOfDuplicates
-
Field Details
-
MSGID_PREFIX
- See Also:
-
KEEP_VIEW
private static boolean KEEP_VIEW -
MAX_LOOKUP_HISTORY
private static int MAX_LOOKUP_HISTORY -
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:
-
PL_MIX
private static final int PL_MIX- See Also:
-
PL_ANONYMOUS
private static final int PL_ANONYMOUS- See Also:
-
PL_INVALID
private static final int PL_INVALID- See Also:
-
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
-
torrent_info
-
tracker_info
-
webseed_info
-
vpn_info
-
socks_state
-
socks_current
-
socks_fails
-
socks_more
private org.eclipse.swt.widgets.Label socks_more -
current_dm
-
enabled_networks
-
enabled_sources
-
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
-
-
Constructor Details
-
PrivacyView
public PrivacyView()
-
-
Method Details
-
getFullTitle
-
eventOccurred
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
-
initialize
private void initialize() -
injectResult
-
setPrivacyLevel
private void setPrivacyLevel(int level) -
swt_updateFields
-
setupNetworksAndSources
-
setupTorrentTracker
-
updatePeersEtc
-
updateVPNSocks
private void updateVPNSocks() -
attributeEventOccurred
- 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)
-