Class OpenTorrentOptionsWindow
- java.lang.Object
-
- com.biglybt.ui.swt.shells.opentorrent.OpenTorrentOptionsWindow
-
- All Implemented Interfaces:
UIUpdatable
public class OpenTorrentOptionsWindow extends java.lang.Object implements UIUpdatable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
OpenTorrentOptionsWindow.DiscoveredTag
private static class
OpenTorrentOptionsWindow.FileStatsCacheItem
protected class
OpenTorrentOptionsWindow.OpenTorrentInstance
static interface
OpenTorrentOptionsWindow.OpenTorrentInstanceListener
private static class
OpenTorrentOptionsWindow.Partition
private static class
OpenTorrentOptionsWindow.TreeNode
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description private
OpenTorrentOptionsWindow()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addInstance(OpenTorrentOptionsWindow.OpenTorrentInstance instance)
static void
addTorrent(TorrentOpenOptions torrentOptions)
private static void
addTorrentSupport(TorrentOpenOptions torrentOptions, int attempt_count)
private void
cancelPressed()
protected void
dispose()
private org.eclipse.swt.graphics.Rectangle
getBounds()
static Tag
getExistingTag(java.util.List<Tag> initialTags, java.lang.String tagName)
private java.util.List<OpenTorrentOptionsWindow.OpenTorrentInstance>
getInstances()
java.lang.String
getUpdateUIName()
A name for this UIUpdatable so we can track who's being badprivate boolean
isDisposed()
private boolean
isInitialised()
private org.eclipse.swt.graphics.Image
loadImage(java.lang.String key)
static void
main(java.lang.String[] args)
private void
okPressed(boolean auto)
private void
refreshTVTorrentIndexes()
private void
removeInstance(OpenTorrentOptionsWindow.OpenTorrentInstance instance, boolean is_removal)
private void
selectInstance(OpenTorrentOptionsWindow.OpenTorrentInstance instance)
private void
selectInstances(java.util.List<OpenTorrentOptionsWindow.OpenTorrentInstance> _instances)
private void
setupShowAgainOptions(SWTSkin skin)
private void
setupTVTorrents(org.eclipse.swt.widgets.Composite parent)
private void
swt_activate()
protected void
swt_addTorrent(HashWrapper hash, TorrentOpenOptions torrentOptions)
private void
swt_updateTVTorrentButtons()
private void
unloadImage(java.lang.String key)
private void
updateDialogTitle()
private void
updateInstanceInfo()
void
updateUI()
Update your UI!
-
-
-
Field Detail
-
active_windows
private static final java.util.Map<HashWrapper,OpenTorrentOptionsWindow> active_windows
-
active_window_checker
private static TimerEventPeriodic active_window_checker
-
PARAM_DEFSAVEPATH
private static final java.lang.String PARAM_DEFSAVEPATH
- See Also:
- Constant Field Values
-
MSGKEY_QUEUELOCATIONS
private static final java.lang.String[] MSGKEY_QUEUELOCATIONS
-
TABLEID_TORRENTS
public static final java.lang.String TABLEID_TORRENTS
- See Also:
- Constant Field Values
-
TABLEID_FILES
public static final java.lang.String TABLEID_FILES
- See Also:
- Constant Field Values
-
SP_KEY
private static final java.lang.String SP_KEY
- See Also:
- Constant Field Values
-
dlg
private SkinnedDialog dlg
-
image_loader
private ImageLoader image_loader
-
sash_object
private SWTSkinObjectSash sash_object
-
expand_stack
private org.eclipse.swt.custom.StackLayout expand_stack
-
expand_stack_area
private org.eclipse.swt.widgets.Composite expand_stack_area
-
buttonsArea
private StandardButtonsArea buttonsArea
-
window_initialised
private boolean window_initialised
-
buttonTorrentUp
private org.eclipse.swt.widgets.Button buttonTorrentUp
-
buttonTorrentDown
private org.eclipse.swt.widgets.Button buttonTorrentDown
-
buttonTorrentRemove
private org.eclipse.swt.widgets.Button buttonTorrentRemove
-
images_to_dispose
private java.util.List<java.lang.String> images_to_dispose
-
tvTorrents
private TableViewSWT<OpenTorrentOptionsWindow.OpenTorrentInstance> tvTorrents
-
torrents_info_label
private org.eclipse.swt.widgets.Label torrents_info_label
-
optionListener
private OpenTorrentOptionsWindow.OpenTorrentInstanceListener optionListener
-
open_instances
private java.util.List<OpenTorrentOptionsWindow.OpenTorrentInstance> open_instances
-
selected_instances
private java.util.List<OpenTorrentOptionsWindow.OpenTorrentInstance> selected_instances
-
multi_selection_instance
private OpenTorrentOptionsWindow.OpenTorrentInstance multi_selection_instance
-
listDiscoveredTags
protected java.util.Map<java.lang.String,OpenTorrentOptionsWindow.DiscoveredTag> listDiscoveredTags
-
tree_comp
private static java.util.Comparator tree_comp
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
-
addTorrent
public static void addTorrent(TorrentOpenOptions torrentOptions)
-
addTorrentSupport
private static void addTorrentSupport(TorrentOpenOptions torrentOptions, int attempt_count)
-
swt_addTorrent
protected void swt_addTorrent(HashWrapper hash, TorrentOpenOptions torrentOptions)
-
isDisposed
private boolean isDisposed()
-
isInitialised
private boolean isInitialised()
-
getInstances
private java.util.List<OpenTorrentOptionsWindow.OpenTorrentInstance> getInstances()
-
cancelPressed
private void cancelPressed()
-
okPressed
private void okPressed(boolean auto)
-
setupShowAgainOptions
private void setupShowAgainOptions(SWTSkin skin)
-
setupTVTorrents
private void setupTVTorrents(org.eclipse.swt.widgets.Composite parent)
-
addInstance
private void addInstance(OpenTorrentOptionsWindow.OpenTorrentInstance instance)
-
selectInstance
private void selectInstance(OpenTorrentOptionsWindow.OpenTorrentInstance instance)
-
selectInstances
private void selectInstances(java.util.List<OpenTorrentOptionsWindow.OpenTorrentInstance> _instances)
-
removeInstance
private void removeInstance(OpenTorrentOptionsWindow.OpenTorrentInstance instance, boolean is_removal)
-
updateDialogTitle
private void updateDialogTitle()
-
swt_updateTVTorrentButtons
private void swt_updateTVTorrentButtons()
-
refreshTVTorrentIndexes
private void refreshTVTorrentIndexes()
-
updateInstanceInfo
private void updateInstanceInfo()
-
updateUI
public void updateUI()
Description copied from interface:UIUpdatable
Update your UI!- Specified by:
updateUI
in interfaceUIUpdatable
-
getUpdateUIName
public java.lang.String getUpdateUIName()
Description copied from interface:UIUpdatable
A name for this UIUpdatable so we can track who's being bad- Specified by:
getUpdateUIName
in interfaceUIUpdatable
- Returns:
- some name
-
swt_activate
private void swt_activate()
-
getBounds
private org.eclipse.swt.graphics.Rectangle getBounds()
-
loadImage
private org.eclipse.swt.graphics.Image loadImage(java.lang.String key)
-
unloadImage
private void unloadImage(java.lang.String key)
-
dispose
protected void dispose()
-
-