summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSTextFieldCell.java
blob: 244d6fa3d082c1e01883953a45165b1ee3deaee6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
package org.eclipse.swt.internal.cocoa;

public class NSTextFieldCell extends NSActionCell {

public NSTextFieldCell() {
	super();
}

public NSTextFieldCell(int id) {
	super(id);
}

public NSArray allowedInputSourceLocales() {
	int result = OS.objc_msgSend(this.id, OS.sel_allowedInputSourceLocales);
	return result != 0 ? new NSArray(result) : null;
}

public NSColor backgroundColor() {
	int result = OS.objc_msgSend(this.id, OS.sel_backgroundColor);
	return result != 0 ? new NSColor(result) : null;
}

public int bezelStyle() {
	return OS.objc_msgSend(this.id, OS.sel_bezelStyle);
}

public boolean drawsBackground() {
	return OS.objc_msgSend(this.id, OS.sel_drawsBackground) != 0;
}

public NSAttributedString placeholderAttributedString() {
	int result = OS.objc_msgSend(this.id, OS.sel_placeholderAttributedString);
	return result != 0 ? new NSAttributedString(result) : null;
}

public NSString placeholderString() {
	int result = OS.objc_msgSend(this.id, OS.sel_placeholderString);
	return result != 0 ? new NSString(result) : null;
}

public void setAllowedInputSourceLocales(NSArray localeIdentifiers) {
	OS.objc_msgSend(this.id, OS.sel_setAllowedInputSourceLocales_1, localeIdentifiers != null ? localeIdentifiers.id : 0);
}

public void setBackgroundColor(NSColor color) {
	OS.objc_msgSend(this.id, OS.sel_setBackgroundColor_1, color != null ? color.id : 0);
}

public void setBezelStyle(int style) {
	OS.objc_msgSend(this.id, OS.sel_setBezelStyle_1, style);
}

public void setDrawsBackground(boolean flag) {
	OS.objc_msgSend(this.id, OS.sel_setDrawsBackground_1, flag);
}

public void setPlaceholderAttributedString(NSAttributedString string) {
	OS.objc_msgSend(this.id, OS.sel_setPlaceholderAttributedString_1, string != null ? string.id : 0);
}

public void setPlaceholderString(NSString string) {
	OS.objc_msgSend(this.id, OS.sel_setPlaceholderString_1, string != null ? string.id : 0);
}

public void setTextColor(NSColor color) {
	OS.objc_msgSend(this.id, OS.sel_setTextColor_1, color != null ? color.id : 0);
}

public NSText setUpFieldEditorAttributes(NSText textObj) {
	int result = OS.objc_msgSend(this.id, OS.sel_setUpFieldEditorAttributes_1, textObj != null ? textObj.id : 0);
	return result != 0 ? new NSText(result) : null;
}

public void setWantsNotificationForMarkedText(boolean flag) {
	OS.objc_msgSend(this.id, OS.sel_setWantsNotificationForMarkedText_1, flag);
}

public NSColor textColor() {
	int result = OS.objc_msgSend(this.id, OS.sel_textColor);
	return result != 0 ? new NSColor(result) : null;
}

}