public void setCommentField(final NSTextView field) { this.commentField = field; this.commentField.setFont(NSFont.userFixedPitchFontOfSize(11f)); this.notificationCenter.addObserver(this.id(), Foundation.selector("commentInputDidChange:"), NSText.TextDidChangeNotification, field.id()); this.addObserver(new BookmarkObserver() { @Override public void change(Host bookmark) { updateField(commentField, bookmark.getComment()); } }); }
public void setDownloadSkipRegexField(NSTextView t) { this.downloadSkipRegexField = t; this.downloadSkipRegexField.setFont(NSFont.userFixedPitchFontOfSize(9.0f)); this.downloadSkipRegexField.setString(preferences.getProperty("queue.download.skip.regex")); notificationCenter.addObserver(this.id(), Foundation.selector("downloadSkipRegexFieldDidChange:"), NSText.TextDidChangeNotification, this.downloadSkipRegexField.id()); }
public void setUploadSkipRegexField(NSTextView b) { this.uploadSkipRegexField = b; this.uploadSkipRegexField.setFont(NSFont.userFixedPitchFontOfSize(9.0f)); this.uploadSkipRegexField.setString(preferences.getProperty("queue.upload.skip.regex")); notificationCenter.addObserver(this.id(), Foundation.selector("uploadSkipRegexFieldDidChange:"), NSText.TextDidChangeNotification, this.uploadSkipRegexField.id()); }