public void setSizeButton(NSButton b) { this.sizeButton = b; this.sizeButton.setTarget(this.id()); this.sizeButton.setAction(Foundation.selector("calculateSizeButtonClicked:")); }
public void setDistributionLoggingButton(NSButton b) { this.distributionLoggingButton = b; this.distributionLoggingButton.setTarget(this.id()); this.distributionLoggingButton.setAction(Foundation.selector("distributionApplyButtonClicked:")); }
public void setUploadSkipRegexDefaultButton(NSButton b) { this.uploadSkipRegexDefaultButton = b; this.uploadSkipRegexDefaultButton.setTarget(this.id()); this.uploadSkipRegexDefaultButton.setAction(Foundation.selector("uploadSkipRegexDefaultButtonClicked:")); }
public void setDistributionInvalidateObjectsButton(NSButton b) { this.distributionInvalidateObjectsButton = b; this.distributionInvalidateObjectsButton.setTarget(this.id()); this.distributionInvalidateObjectsButton.setAction(Foundation.selector("distributionInvalidateObjectsButtonClicked:")); }
public void setGroupw(NSButton groupw) { this.groupw = groupw; this.groupw.setTarget(this.id()); this.groupw.setAction(Foundation.selector("permissionSelectionChanged:")); this.groupw.setAllowsMixedState(true); }
public void setKeychainCheckbox(NSButton keychainCheckbox) { this.keychainCheckbox = keychainCheckbox; this.keychainCheckbox.setTarget(this.id()); this.keychainCheckbox.setAction(Foundation.selector("keychainCheckboxClicked:")); this.addObserver(new BookmarkObserver() { @Override public void change(final Host bookmark) { keychainCheckbox.setEnabled(options.keychain); keychainCheckbox.setState(credentials.isSaved() ? NSCell.NSOnState : NSCell.NSOffState); } }); }
public void setGroupx(NSButton groupx) { this.groupx = groupx; this.groupx.setTarget(this.id()); this.groupx.setAction(Foundation.selector("permissionSelectionChanged:")); this.groupx.setAllowsMixedState(true); }
public void setBrowserSerializeCheckbox(NSButton b) { this.browserSerializeCheckbox = b; this.browserSerializeCheckbox.setTarget(this.id()); this.browserSerializeCheckbox.setAction(Foundation.selector("browserSerializeCheckboxClicked:")); this.browserSerializeCheckbox.setState(preferences.getBoolean("browser.serialize") ? NSCell.NSOnState : NSCell.NSOffState); }
public void setHorizontalLinesCheckbox(NSButton b) { this.horizontalLinesCheckbox = b; this.horizontalLinesCheckbox.setTarget(this.id()); this.horizontalLinesCheckbox.setAction(Foundation.selector("horizontalLinesCheckboxClicked:")); this.horizontalLinesCheckbox.setState(preferences.getBoolean("browser.horizontalLines") ? NSCell.NSOnState : NSCell.NSOffState); }
public void setVerticalLinesCheckbox(NSButton b) { this.verticalLinesCheckbox = b; this.verticalLinesCheckbox.setTarget(this.id()); this.verticalLinesCheckbox.setAction(Foundation.selector("verticalLinesCheckboxClicked:")); this.verticalLinesCheckbox.setState(preferences.getBoolean("browser.verticalLines") ? NSCell.NSOnState : NSCell.NSOffState); }
public void setDoubleClickCheckbox(NSButton b) { this.doubleClickCheckbox = b; this.doubleClickCheckbox.setTarget(this.id()); this.doubleClickCheckbox.setAction(Foundation.selector("doubleClickCheckboxClicked:")); this.doubleClickCheckbox.setState(preferences.getBoolean("browser.doubleclick.edit") ? NSCell.NSOnState : NSCell.NSOffState); }
public void setAutoExpandCheckbox(NSButton b) { this.autoExpandCheckbox = b; this.autoExpandCheckbox.setTarget(this.id()); this.autoExpandCheckbox.setAction(Foundation.selector("autoExpandCheckboxClicked:")); this.autoExpandCheckbox.setState(preferences.getBoolean("browser.view.autoexpand") ? NSCell.NSOnState : NSCell.NSOffState); }
public void setBringQueueToBackCheckbox(NSButton b) { this.bringQueueToBackCheckbox = b; this.bringQueueToBackCheckbox.setTarget(this.id()); this.bringQueueToBackCheckbox.setAction(Foundation.selector("bringQueueToBackCheckboxClicked:")); this.bringQueueToBackCheckbox.setState(preferences.getBoolean("queue.window.open.transfer.stop") ? NSCell.NSOnState : NSCell.NSOffState); }
public void setCryptomatorCheckbox(final NSButton cryptomatorCheckbox) { this.cryptomatorCheckbox = cryptomatorCheckbox; this.cryptomatorCheckbox.setTarget(this.id()); this.cryptomatorCheckbox.setAction(Foundation.selector("cryptomatorCheckboxClicked:")); this.cryptomatorCheckbox.setState(preferences.getBoolean("cryptomator.vault.autodetect") ? NSCell.NSOnState : NSCell.NSOffState); }
public void setAlternatingRowBackgroundCheckbox(NSButton b) { this.alternatingRowBackgroundCheckbox = b; this.alternatingRowBackgroundCheckbox.setTarget(this.id()); this.alternatingRowBackgroundCheckbox.setAction(Foundation.selector("alternatingRowBackgroundCheckboxClicked:")); this.alternatingRowBackgroundCheckbox.setState(preferences.getBoolean("browser.alternatingRows") ? NSCell.NSOnState : NSCell.NSOffState); }
public void setUownerr(NSButton uownerr) { this.uownerr = uownerr; this.uownerr.setEnabled(preferences.getBoolean("queue.upload.permissions.change") && preferences.getBoolean("queue.upload.permissions.default")); this.uownerr.setTarget(this.id()); this.uownerr.setAction(Foundation.selector("defaultPermissionsUploadChanged:")); }
public void setUotherw(NSButton uotherw) { this.uotherw = uotherw; this.uotherw.setEnabled(preferences.getBoolean("queue.upload.permissions.change") && preferences.getBoolean("queue.upload.permissions.default")); this.uotherw.setTarget(this.id()); this.uotherw.setAction(Foundation.selector("defaultPermissionsUploadChanged:")); }
public void setChmodDownloadDefaultCheckbox(NSButton b) { this.chmodDownloadDefaultCheckbox = b; this.chmodDownloadDefaultCheckbox.setTarget(this.id()); this.chmodDownloadDefaultCheckbox.setAction(Foundation.selector("chmodDownloadDefaultCheckboxClicked:")); this.chmodDownloadDefaultCheckbox.setState(preferences.getBoolean("queue.download.permissions.default") ? NSCell.NSOnState : NSCell.NSOffState); this.chmodDownloadDefaultCheckbox.setEnabled(preferences.getBoolean("queue.download.permissions.change")); }
public void setChmodUploadDefaultCheckbox(NSButton b) { this.chmodUploadDefaultCheckbox = b; this.chmodUploadDefaultCheckbox.setTarget(this.id()); this.chmodUploadDefaultCheckbox.setAction(Foundation.selector("chmodUploadDefaultCheckboxClicked:")); this.chmodUploadDefaultCheckbox.setState(preferences.getBoolean("queue.upload.permissions.default") ? NSCell.NSOnState : NSCell.NSOffState); this.chmodUploadDefaultCheckbox.setEnabled(preferences.getBoolean("queue.upload.permissions.change")); }
protected void loadBundle(final NSAlert alert) { this.alert = alert; alert.setShowsHelp(true); alert.setDelegate(this.id()); if(alert.showsSuppressionButton()) { alert.suppressionButton().setTarget(this.id()); alert.suppressionButton().setAction(Foundation.selector("suppressionButtonClicked:")); } // Layout alert view on main thread this.focus(alert); this.setWindow(alert.window()); }