summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSBrowserCell.java
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2007-11-15 17:03:53 +0000
committerFelipe Heidrich <fheidric>2007-11-15 17:03:53 +0000
commitee37eed09abf2b304605b7bd7be15ba102d37b58 (patch)
tree5ff8b26c4b049d7c8b7e66827f50afece3bbd7e4 /bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSBrowserCell.java
parent4eb84c684bfa237dcce3337cdcdd67ab82c88da5 (diff)
downloadeclipse.platform.swt-ee37eed09abf2b304605b7bd7be15ba102d37b58.tar.gz
eclipse.platform.swt-ee37eed09abf2b304605b7bd7be15ba102d37b58.tar.xz
eclipse.platform.swt-ee37eed09abf2b304605b7bd7be15ba102d37b58.zip
cocoa merge
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSBrowserCell.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSBrowserCell.java70
1 files changed, 70 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSBrowserCell.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSBrowserCell.java
new file mode 100644
index 0000000000..a7f1e79471
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSBrowserCell.java
@@ -0,0 +1,70 @@
+package org.eclipse.swt.internal.cocoa;
+
+public class NSBrowserCell extends NSCell {
+
+public NSBrowserCell() {
+ super();
+}
+
+public NSBrowserCell(int id) {
+ super(id);
+}
+
+public NSImage alternateImage() {
+ int result = OS.objc_msgSend(this.id, OS.sel_alternateImage);
+ return result != 0 ? new NSImage(result) : null;
+}
+
+public static NSImage branchImage() {
+ int result = OS.objc_msgSend(OS.class_NSBrowserCell, OS.sel_branchImage);
+ return result != 0 ? new NSImage(result) : null;
+}
+
+public NSColor highlightColorInView(NSView controlView) {
+ int result = OS.objc_msgSend(this.id, OS.sel_highlightColorInView_1, controlView != null ? controlView.id : 0);
+ return result != 0 ? new NSColor(result) : null;
+}
+
+public static NSImage highlightedBranchImage() {
+ int result = OS.objc_msgSend(OS.class_NSBrowserCell, OS.sel_highlightedBranchImage);
+ return result != 0 ? new NSImage(result) : null;
+}
+
+public NSImage image() {
+ int result = OS.objc_msgSend(this.id, OS.sel_image);
+ return result != 0 ? new NSImage(result) : null;
+}
+
+public boolean isLeaf() {
+ return OS.objc_msgSend(this.id, OS.sel_isLeaf) != 0;
+}
+
+public boolean isLoaded() {
+ return OS.objc_msgSend(this.id, OS.sel_isLoaded) != 0;
+}
+
+public void reset() {
+ OS.objc_msgSend(this.id, OS.sel_reset);
+}
+
+public void set() {
+ OS.objc_msgSend(this.id, OS.sel_set);
+}
+
+public void setAlternateImage(NSImage newAltImage) {
+ OS.objc_msgSend(this.id, OS.sel_setAlternateImage_1, newAltImage != null ? newAltImage.id : 0);
+}
+
+public void setImage(NSImage image) {
+ OS.objc_msgSend(this.id, OS.sel_setImage_1, image != null ? image.id : 0);
+}
+
+public void setLeaf(boolean flag) {
+ OS.objc_msgSend(this.id, OS.sel_setLeaf_1, flag);
+}
+
+public void setLoaded(boolean flag) {
+ OS.objc_msgSend(this.id, OS.sel_setLoaded_1, flag);
+}
+
+}