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
  • Field Details

    • MSGID_PREFIX

      public static final String MSGID_PREFIX
      See Also:
    • 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:
    • 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

      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 Set<String> enabled_networks
    • enabled_sources

      private Set<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
  • Constructor Details

    • PrivacyView

      public PrivacyView()
  • Method Details

    • getFullTitle

      private 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 interface UISWTViewEventListener
      Parameters:
      event - event that occurred
      Returns:
      meaning dependent upon event type
    • delete

      private void delete()
    • refresh

      private void refresh()
    • dataSourceChanged

      private void dataSourceChanged(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, String attribute, int event_type)
      Specified by:
      attributeEventOccurred in interface DownloadManagerStateAttributeListener
    • 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)