public UploadTransfer(final Host host, final List<TransferItem> roots, final Filter<Local> f, final Comparator<Local> comparator) { super(host, roots, new BandwidthThrottle(PreferencesFactory.get().getFloat("queue.upload.bandwidth.bytes"))); this.filter = f; this.comparator = comparator; }
public CopyTransfer(final Host source, final Host destination, final Map<Path, Path> selected) { this(source, destination, selected, new BandwidthThrottle(PreferencesFactory.get().getFloat("queue.download.bandwidth.bytes"))); }
public SyncTransfer(final Host host, final TransferItem item, final TransferAction action) { super(host, Collections.singletonList(item), new BandwidthThrottle(PreferencesFactory.get().getFloat("queue.upload.bandwidth.bytes"))); this.init(); this.item = item; this.action = action; }
public DownloadTransfer(final Host host, final List<TransferItem> roots, final Filter<Path> f, final Comparator<Path> comparator) { super(host, roots, new BandwidthThrottle(PreferencesFactory.get().getFloat("queue.download.bandwidth.bytes"))); this.filter = f; this.comparator = comparator; this.symlinkResolver = new DownloadSymlinkResolver(roots); }
c.headerCell().setStringValue(BrowserColumn.size.toString()); c.setMinWidth(50f); c.setWidth(preferences.getFloat(String.format("browser.column.%s.width", BrowserColumn.size.name()))); c.setMaxWidth(150f); c.headerCell().setStringValue(BrowserColumn.modified.toString()); c.setMinWidth(100f); c.setWidth(preferences.getFloat(String.format("browser.column.%s.width", BrowserColumn.modified.name()))); c.setMaxWidth(500); c.headerCell().setStringValue(BrowserColumn.owner.toString()); c.setMinWidth(50); c.setWidth(preferences.getFloat(String.format("browser.column.%s.width", BrowserColumn.owner.name()))); c.setMaxWidth(500); c.headerCell().setStringValue(BrowserColumn.group.toString()); c.setMinWidth(50); c.setWidth(preferences.getFloat(String.format("browser.column.%s.width", BrowserColumn.group.name()))); c.setMaxWidth(500); c.headerCell().setStringValue(BrowserColumn.permission.toString()); c.setMinWidth(100); c.setWidth(preferences.getFloat(String.format("browser.column.%s.width", BrowserColumn.permission.name()))); c.setMaxWidth(800);
NSFont.systemFontOfSize(preferences.getFloat("browser.font.size"))).intValue() + 2)); c.headerCell().setStringValue(StringUtils.EMPTY); c.setMinWidth((20)); c.setWidth(preferences.getFloat(String.format("browser.column.%s.width", BrowserColumn.icon.name()))); c.setMaxWidth((20)); c.headerCell().setStringValue(BrowserColumn.filename.toString()); c.setMinWidth((100)); c.setWidth(preferences.getFloat(String.format("browser.column.%s.width", BrowserColumn.filename.name()))); c.setMaxWidth((1000));
NSFont.systemFontOfSize(preferences.getFloat("browser.font.size"))).intValue() + 2)); c.headerCell().setStringValue(LocaleFactory.localizedString("Filename")); c.setMinWidth(new CGFloat(100)); c.setWidth(preferences.getFloat(String.format("browser.column.%s.width", BrowserColumn.filename.name()))); c.setMaxWidth(new CGFloat(1000));
this.browserView.setHeaderView(null); this.browserView.setRowHeight(new CGFloat(layoutManager.defaultLineHeightForFont( NSFont.systemFontOfSize(preferences.getFloat("browser.font.size"))).intValue() + 2));