Class OpenTorrentOptionsWindow.OpenTorrentInstance

java.lang.Object
com.biglybt.ui.swt.shells.opentorrent.OpenTorrentOptionsWindow.OpenTorrentInstance
All Implemented Interfaces:
ParameterListener, TableViewFilterCheck<TorrentOpenFileOptions>
Enclosing class:
OpenTorrentOptionsWindow

protected class OpenTorrentOptionsWindow.OpenTorrentInstance extends Object implements TableViewFilterCheck<TorrentOpenFileOptions>, ParameterListener
  • Field Details

    • hash

      private final HashWrapper hash
    • torrentOptions

      private final TorrentOpenOptions torrentOptions
    • torrentOptionsMulti

      private final List<TorrentOpenOptions> torrentOptionsMulti
    • isSingleOptions

      private final boolean isSingleOptions
    • changeListener

    • parent

      private final org.eclipse.swt.widgets.Composite parent
    • shell

      private final org.eclipse.swt.widgets.Shell shell
    • skin

      private SWTSkin skin
    • bSkipDataDirModify

      protected boolean bSkipDataDirModify
    • btnTreeView

      private org.eclipse.swt.widgets.Button btnTreeView
    • btnPrivacy

      private org.eclipse.swt.widgets.Button btnPrivacy
    • btnCheckComments

      private org.eclipse.swt.widgets.Button btnCheckComments
    • btnCheckAvailability

      private org.eclipse.swt.widgets.Button btnCheckAvailability
    • btnSwarmIt

      private org.eclipse.swt.widgets.Button btnSwarmIt
    • network_buttons

      private List<BooleanSwtParameter> network_buttons
    • peer_source_buttons

      private List<BooleanSwtParameter> peer_source_buttons
    • ip_filter_button

      private BooleanSwtParameter ip_filter_button
    • max_up_speed_button

      private IntSwtParameter max_up_speed_button
    • max_down_speed_button

      private IntSwtParameter max_down_speed_button
    • cmbDataDirEnabled

      private boolean cmbDataDirEnabled
    • cmbDataDir

      private org.eclipse.swt.widgets.Combo cmbDataDir
    • btnDataDir

      private org.eclipse.swt.widgets.Button btnDataDir
    • btnSearch

      private org.eclipse.swt.widgets.Button btnSearch
    • cmbQueueLocation

      private org.eclipse.swt.widgets.Combo cmbQueueLocation
    • btnSequentialDownload

      private org.eclipse.swt.widgets.Button btnSequentialDownload
    • cmbStartMode

      private org.eclipse.swt.widgets.Combo cmbStartMode
    • diskFreeInfoRefreshPending

      private volatile boolean diskFreeInfoRefreshPending
    • diskFreeInfoRefreshRunning

      private volatile boolean diskFreeInfoRefreshRunning
    • diskspaceComp

      private org.eclipse.swt.widgets.Composite diskspaceComp
    • currentSelectedDataSize

      private long currentSelectedDataSize
    • fileStatCache

    • parentToRootCache

      private Map<File,File> parentToRootCache
    • soExpandItemFiles

      private SWTSkinObjectExpandItem soExpandItemFiles
    • soExpandItemSaveTo

      private SWTSkinObjectExpandItem soExpandItemSaveTo
    • soExpandItemTorrentInfo

      private SWTSkinObjectExpandItem soExpandItemTorrentInfo
    • soFileAreaInfo

      private SWTSkinObjectText soFileAreaInfo
    • tvFiles

    • txtSubFolder

      private org.eclipse.swt.widgets.Text txtSubFolder
    • soStartOptionsExpandItem

      private SWTSkinObjectExpandItem soStartOptionsExpandItem
    • settingToDownload

      private AtomicInteger settingToDownload
    • btnSelectAll

      private org.eclipse.swt.widgets.Button btnSelectAll
    • btnMarkSelected

      private org.eclipse.swt.widgets.Button btnMarkSelected
    • btnUnmarkSelected

      private org.eclipse.swt.widgets.Button btnUnmarkSelected
    • btnRename

      private org.eclipse.swt.widgets.Button btnRename
    • btnRetarget

      private org.eclipse.swt.widgets.Button btnRetarget
    • tagButtonsArea

      private org.eclipse.swt.widgets.Composite tagButtonsArea
    • tag_save_location

      private TagFeatureFileLocation tag_save_location
    • treeViewDisableUpdates

      private boolean treeViewDisableUpdates
    • treePendingExpansions

      private Set<OpenTorrentOptionsWindow.TreeNode> treePendingExpansions
    • tagButtonsUI

      private TagButtonsUI tagButtonsUI
    • tbp_building

      private boolean tbp_building
    • tbp_build_pending

      private boolean tbp_build_pending
  • Constructor Details

  • Method Details

    • getHash

      private HashWrapper getHash()
    • getOptions

      protected TorrentOpenOptions getOptions()
    • getIndex

      protected int getIndex()
    • getComposite

      protected org.eclipse.swt.widgets.Composite getComposite()
    • parameterChanged

      public void parameterChanged(String parameterName)
      Description copied from interface: ParameterListener
      Called, when a parameter has changed. The listener could only react if the parameter name is relevant. Or the listener can just read all parameters again.
      Specified by:
      parameterChanged in interface ParameterListener
      Parameters:
      parameterName - the name of the parameter that has changed
    • initialize

      private void initialize()
    • layout

      private void layout()
    • refresh

      private void refresh()
    • showTreeView

      private void showTreeView()
    • sortTree

      private void sortTree(org.eclipse.swt.widgets.Tree tree, OpenTorrentOptionsWindow.TreeNode root, int col_index, boolean asc)
    • getExpandedNodes

      private void getExpandedNodes(org.eclipse.swt.widgets.TreeItem[] items, Set<OpenTorrentOptionsWindow.TreeNode> nodes)
    • getUnExpandedNodes

      private Set<OpenTorrentOptionsWindow.TreeNode> getUnExpandedNodes(org.eclipse.swt.widgets.TreeItem[] items)
    • expandItems

      private void expandItems(org.eclipse.swt.widgets.TreeItem[] items)
    • getNodes

      private void getNodes(OpenTorrentOptionsWindow.TreeNode node, Set<OpenTorrentOptionsWindow.TreeNode> nodes, boolean parents_only)
    • updateTreeItem

      private void updateTreeItem(org.eclipse.swt.widgets.TreeItem item, OpenTorrentOptionsWindow.TreeNode node)
    • getItemForNode

      private org.eclipse.swt.widgets.TreeItem getItemForNode(org.eclipse.swt.widgets.Tree tree, OpenTorrentOptionsWindow.TreeNode node)
    • updateNodeFromTree

      private void updateNodeFromTree(org.eclipse.swt.widgets.Tree tree, org.eclipse.swt.widgets.TreeItem item, OpenTorrentOptionsWindow.TreeNode node, boolean selected)
    • updateSubTree

      private void updateSubTree(org.eclipse.swt.widgets.TreeItem[] items)
    • updateNodeFromTable

      private void updateNodeFromTable(org.eclipse.swt.widgets.Tree tree, OpenTorrentOptionsWindow.TreeNode node, boolean selected)
    • showAvailability

      private void showAvailability()
    • showComments

      private void showComments()
    • checkSeedingMode

      private void checkSeedingMode()
    • cmbDataDirChanged

      protected void cmbDataDirChanged()
    • setSelectedQueueLocation

      protected void setSelectedQueueLocation(int iLocation)
    • setSequentalDownload

      protected void setSequentalDownload(boolean seq)
    • updateStartOptionsHeader

      private void updateStartOptionsHeader()
    • setSelectedStartMode

      protected void setSelectedStartMode(int iStartID)
    • setupFileAreaButtons

      private void setupFileAreaButtons(SWTSkinObjectContainer so)
    • setToDownload

      private void setToDownload(TorrentOpenFileOptions[] infos, boolean download)
    • setupFileAreaInfo

      private void setupFileAreaInfo(SWTSkinObjectText so)
    • setupSaveLocation

      private void setupSaveLocation(SWTSkinObjectContainer soInputArea, SWTSkinObjectButton soBrowseButton, SWTSkinObjectButton soSearchButton, SWTSkinObjectContainer soMoreArea)
    • setupStartOptions

      private void setupStartOptions(SWTSkinObjectExpandItem so)
    • buildTagButtonPanel

      private void buildTagButtonPanel()
    • buildTagButtonPanelSupport

      private void buildTagButtonPanelSupport()
    • removeInitialTag

      private boolean removeInitialTag(List<Tag> tags, Tag tag)
    • addInitialTag

      private boolean addInitialTag(List<Tag> tags, Tag tag)
    • updateInitialSaveTags

      private void updateInitialSaveTags(List<Tag> tags, TagFeatureFileLocation removed)
    • findOtherTag

      private Tag findOtherTag(Tag tagToFind)
      If tagToFind is DiscoveredTag, returns OpenTorrentOptionsWindow.DiscoveredTag.existingTag. Otherwise, returns DiscoveredTag with same name, if available.
    • setupTVFiles

      private void setupTVFiles(SWTSkinObjectContainer soFilesTable, SWTSkinObjectTextbox soFilesFilter)
    • filterCheck

      public boolean filterCheck(TorrentOpenFileOptions ds, String filter, boolean regex, boolean confusable)
      Specified by:
      filterCheck in interface TableViewFilterCheck<TorrentOpenFileOptions>
    • filterSet

      public void filterSet(String filter)
      Specified by:
      filterSet in interface TableViewFilterCheck<TorrentOpenFileOptions>
    • updateFileButtons

      protected void updateFileButtons()
    • renameFilenames

      protected void renameFilenames(TorrentOpenFileOptions[] torrentFileInfos)
    • renameFilenames

      protected void renameFilenames(TorrentOpenFileOptions[] torrentFileInfos, int index)
    • setSavePath

      private void setSavePath()
    • canRemoveTopLevelFolder

      private boolean canRemoveTopLevelFolder()
    • removeTopLevelFolder

      private void removeTopLevelFolder()
    • setTopLevelFolder

      private void setTopLevelFolder(File newDir, boolean removedTop)
    • changeFileDestination

      private void changeFileDestination(TorrentOpenFileOptions[] infos, boolean allAtOnce)
    • setupInfoSection

      private void setupInfoSection(SWTSkin skin)
    • getEncodingName

      private String getEncodingName(TOTorrent torrent)
    • setupTrackers

      private void setupTrackers(SWTSkinObjectContainer so)
    • setupUpDownLimitOption

      private void setupUpDownLimitOption(SWTSkinObjectContainer so)
    • setupIPFilterOption

      private void setupIPFilterOption(SWTSkinObjectContainer so)
    • setupPeerSourcesAndNetworkOptions

      private void setupPeerSourcesAndNetworkOptions(SWTSkinObjectContainer so)
    • updateIPFilter

      private void updateIPFilter()
    • updateMaxUploadSpeed

      private void updateMaxUploadSpeed()
    • updateMaxDownloadSpeed

      private void updateMaxDownloadSpeed()
    • updatePeerSourceOptions

      private void updatePeerSourceOptions()
    • updateNetworkOptions

      private void updateNetworkOptions()
    • updateDataDirCombo

      private void updateDataDirCombo()
    • setSavePath

      private void setSavePath(String path)
    • setSavePathEnabled

      private void setSavePathEnabled(boolean enabled)
    • getSavePath

      private String getSavePath()
    • updateQueueLocationCombo

      private void updateQueueLocationCombo()
    • updateSequentialDownloadButton

      private void updateSequentialDownloadButton()
    • updateSize

      private void updateSize()
    • getSelectedDataSize

      protected long getSelectedDataSize()
    • updateStartModeCombo

      private void updateStartModeCombo()
    • updateUI

      public void updateUI()
    • cancelPressed

      private void cancelPressed()
    • okPressed

      private boolean okPressed(String dataDirPassed, boolean auto)
    • dispose

      private void dispose()
    • getCachedDirFreeSpace

      private OpenTorrentOptionsWindow.OpenTorrentInstance.FileStatsCacheItem getCachedDirFreeSpace(File directory)
    • getCachedExistsStat

      private boolean getCachedExistsStat(File directory)