1 /*******************************************************************************
2 * Copyright (c) 2000, 2012 IBM Corporation and others.
3 *
4 * This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License 2.0
6 * which accompanies this distribution, and is available at
7 * https://www.eclipse.org/legal/epl-2.0/
8 *
9 * SPDX-License-Identifier: EPL-2.0
10 *
11 * Contributors:
12 * IBM Corporation - initial API and implementation
13 *******************************************************************************/
14 package org.eclipse.swt.internal.cocoa;
15
16 public class NSStepper extends NSControl {
17
NSStepper()18 public NSStepper() {
19 super();
20 }
21
NSStepper(long id)22 public NSStepper(long id) {
23 super(id);
24 }
25
NSStepper(id id)26 public NSStepper(id id) {
27 super(id);
28 }
29
increment()30 public double increment() {
31 return OS.objc_msgSend_fpret(this.id, OS.sel_increment);
32 }
33
maxValue()34 public double maxValue() {
35 return OS.objc_msgSend_fpret(this.id, OS.sel_maxValue);
36 }
37
minValue()38 public double minValue() {
39 return OS.objc_msgSend_fpret(this.id, OS.sel_minValue);
40 }
41
setIncrement(double increment)42 public void setIncrement(double increment) {
43 OS.objc_msgSend(this.id, OS.sel_setIncrement_, increment);
44 }
45
setMaxValue(double maxValue)46 public void setMaxValue(double maxValue) {
47 OS.objc_msgSend(this.id, OS.sel_setMaxValue_, maxValue);
48 }
49
setMinValue(double minValue)50 public void setMinValue(double minValue) {
51 OS.objc_msgSend(this.id, OS.sel_setMinValue_, minValue);
52 }
53
setValueWraps(boolean valueWraps)54 public void setValueWraps(boolean valueWraps) {
55 OS.objc_msgSend(this.id, OS.sel_setValueWraps_, valueWraps);
56 }
57
cellClass()58 public static long cellClass() {
59 return OS.objc_msgSend(OS.class_NSStepper, OS.sel_cellClass);
60 }
61
setCellClass(long factoryId)62 public static void setCellClass(long factoryId) {
63 OS.objc_msgSend(OS.class_NSStepper, OS.sel_setCellClass_, factoryId);
64 }
65
66 }
67