All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.widgets.QDoubleSpinBox Maven / Gradle / Ivy

There is a newer version: 6.8.0
Show newest version
package io.qt.widgets;

import io.qt.*;


/**
 * 

Spin box widget that takes doubles

*

Java wrapper for Qt class QDoubleSpinBox

*/ public class QDoubleSpinBox extends io.qt.widgets.QAbstractSpinBox { /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QDoubleSpinBox.class); /** *

See QDoubleSpinBox::textChanged(QString)

*/ public final @NonNull Signal1 textChanged = new Signal1<>(); /** *

See QDoubleSpinBox::valueChanged(double)

*/ @QtPropertyNotify(name="value") public final @NonNull Signal1 valueChanged = new Signal1<>(); /** *

See QDoubleSpinBox::QDoubleSpinBox(QWidget*)

*/ public QDoubleSpinBox(io.qt.widgets.@Nullable QWidget parent){ super((QPrivateConstructor)null); initialize_native(this, parent); } private native static void initialize_native(QDoubleSpinBox instance, io.qt.widgets.QWidget parent); /** *

See QDoubleSpinBox::cleanText()const

*/ @QtPropertyReader(name="cleanText") @QtUninvokable public final java.lang.@NonNull String cleanText(){ return cleanText_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String cleanText_native_constfct(long __this__nativeId); /** *

See QDoubleSpinBox::decimals()const

*/ @QtPropertyReader(name="decimals") @QtUninvokable public final int decimals(){ return decimals_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int decimals_native_constfct(long __this__nativeId); /** *

See QDoubleSpinBox::maximum()const

*/ @QtPropertyReader(name="maximum") @QtUninvokable public final double maximum(){ return maximum_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native double maximum_native_constfct(long __this__nativeId); /** *

See QDoubleSpinBox::minimum()const

*/ @QtPropertyReader(name="minimum") @QtUninvokable public final double minimum(){ return minimum_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native double minimum_native_constfct(long __this__nativeId); /** *

See QDoubleSpinBox::prefix()const

*/ @QtPropertyReader(name="prefix") @QtUninvokable public final java.lang.@NonNull String prefix(){ return prefix_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String prefix_native_constfct(long __this__nativeId); /** *

See QDoubleSpinBox::setDecimals(int)

*/ @QtPropertyWriter(name="decimals") @QtUninvokable public final void setDecimals(int prec){ setDecimals_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), prec); } @QtUninvokable private native void setDecimals_native_int(long __this__nativeId, int prec); /** *

See QDoubleSpinBox::setMaximum(double)

*/ @QtPropertyWriter(name="maximum") @QtUninvokable public final void setMaximum(double max){ setMaximum_native_double(QtJambi_LibraryUtilities.internal.nativeId(this), max); } @QtUninvokable private native void setMaximum_native_double(long __this__nativeId, double max); /** *

See QDoubleSpinBox::setMinimum(double)

*/ @QtPropertyWriter(name="minimum") @QtUninvokable public final void setMinimum(double min){ setMinimum_native_double(QtJambi_LibraryUtilities.internal.nativeId(this), min); } @QtUninvokable private native void setMinimum_native_double(long __this__nativeId, double min); /** *

See QDoubleSpinBox::setPrefix(QString)

*/ @QtPropertyWriter(name="prefix") @QtUninvokable public final void setPrefix(java.lang.@NonNull String prefix){ setPrefix_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), prefix); } @QtUninvokable private native void setPrefix_native_cref_QString(long __this__nativeId, java.lang.String prefix); /** *

See QDoubleSpinBox::setRange(double,double)

*/ @QtUninvokable public final void setRange(double min, double max){ setRange_native_double_double(QtJambi_LibraryUtilities.internal.nativeId(this), min, max); } @QtUninvokable private native void setRange_native_double_double(long __this__nativeId, double min, double max); /** *

See QDoubleSpinBox::setSingleStep(double)

*/ @QtPropertyWriter(name="singleStep") @QtUninvokable public final void setSingleStep(double val){ setSingleStep_native_double(QtJambi_LibraryUtilities.internal.nativeId(this), val); } @QtUninvokable private native void setSingleStep_native_double(long __this__nativeId, double val); /** *

See QDoubleSpinBox::setStepType(QAbstractSpinBox::StepType)

*/ @QtPropertyWriter(name="stepType") @QtUninvokable public final void setStepType(io.qt.widgets.QAbstractSpinBox.@NonNull StepType stepType){ setStepType_native_QAbstractSpinBox_StepType(QtJambi_LibraryUtilities.internal.nativeId(this), stepType.value()); } @QtUninvokable private native void setStepType_native_QAbstractSpinBox_StepType(long __this__nativeId, int stepType); /** *

See QDoubleSpinBox::setSuffix(QString)

*/ @QtPropertyWriter(name="suffix") @QtUninvokable public final void setSuffix(java.lang.@NonNull String suffix){ setSuffix_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), suffix); } @QtUninvokable private native void setSuffix_native_cref_QString(long __this__nativeId, java.lang.String suffix); /** *

See QDoubleSpinBox::setValue(double)

*/ @QtPropertyWriter(name="value") public final void setValue(double val){ setValue_native_double(QtJambi_LibraryUtilities.internal.nativeId(this), val); } private native void setValue_native_double(long __this__nativeId, double val); /** *

See QDoubleSpinBox::singleStep()const

*/ @QtPropertyReader(name="singleStep") @QtUninvokable public final double singleStep(){ return singleStep_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native double singleStep_native_constfct(long __this__nativeId); /** *

See QDoubleSpinBox::stepType()const

*/ @QtPropertyReader(name="stepType") @QtUninvokable public final io.qt.widgets.QAbstractSpinBox.@NonNull StepType stepType(){ return io.qt.widgets.QAbstractSpinBox.StepType.resolve(stepType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int stepType_native_constfct(long __this__nativeId); /** *

See QDoubleSpinBox::suffix()const

*/ @QtPropertyReader(name="suffix") @QtUninvokable public final java.lang.@NonNull String suffix(){ return suffix_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String suffix_native_constfct(long __this__nativeId); /** *

See QDoubleSpinBox::value()const

*/ @QtPropertyReader(name="value") @QtPropertyUser @QtUninvokable public final double value(){ return value_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native double value_native_constfct(long __this__nativeId); /** *

See QAbstractSpinBox::fixup(QString&)const

*/ @QtUninvokable @Override public void fixup(io.qt.core.@StrictNonNull QString str){ java.util.Objects.requireNonNull(str, "Argument 'str': null not expected."); fixup_native_ref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), str); } @QtUninvokable private native void fixup_native_ref_QString_constfct(long __this__nativeId, io.qt.core.QString str); /** *

See QDoubleSpinBox::textFromValue(double)const

*/ @QtUninvokable public java.lang.@NonNull String textFromValue(double val){ return textFromValue_native_double_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), val); } @QtUninvokable private native java.lang.String textFromValue_native_double_constfct(long __this__nativeId, double val); /** *

See QAbstractSpinBox::validate(QString&,int&)const

*/ @QtUninvokable @Override public io.qt.gui.QValidator.@NonNull State validate(io.qt.gui.QValidator.@StrictNonNull QValidationData input){ java.util.Objects.requireNonNull(input, "Argument 'input': null not expected."); return io.qt.gui.QValidator.State.resolve(validate_native_ref_QString_ref_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), input)); } @QtUninvokable private native int validate_native_ref_QString_ref_int_constfct(long __this__nativeId, io.qt.gui.QValidator.QValidationData input); /** *

See QDoubleSpinBox::valueFromText(QString)const

*/ @QtUninvokable public double valueFromText(java.lang.@NonNull String text){ return valueFromText_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), text); } @QtUninvokable private native double valueFromText_native_cref_QString_constfct(long __this__nativeId, java.lang.String text); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QDoubleSpinBox(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QDoubleSpinBox(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QDoubleSpinBox instance, QDeclarativeConstructor constructor); /** *

Overloaded constructor for {@link #QDoubleSpinBox(io.qt.widgets.QWidget)} * with parent = null.

*/ public QDoubleSpinBox() { this((io.qt.widgets.QWidget)null); } /** * @hidden *

Kotlin property getter. In Java use {@link #cleanText()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final java.lang.@NonNull String getCleanText() { return cleanText(); } /** * @hidden *

Kotlin property getter. In Java use {@link #decimals()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final int getDecimals() { return decimals(); } /** * @hidden *

Kotlin property getter. In Java use {@link #maximum()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final double getMaximum() { return maximum(); } /** * @hidden *

Kotlin property getter. In Java use {@link #minimum()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final double getMinimum() { return minimum(); } /** * @hidden *

Kotlin property getter. In Java use {@link #prefix()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final java.lang.@NonNull String getPrefix() { return prefix(); } /** * @hidden *

Kotlin property getter. In Java use {@link #singleStep()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final double getSingleStep() { return singleStep(); } /** * @hidden *

Kotlin property getter. In Java use {@link #stepType()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.widgets.QAbstractSpinBox.@NonNull StepType getStepType() { return stepType(); } /** * @hidden *

Kotlin property getter. In Java use {@link #suffix()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final java.lang.@NonNull String getSuffix() { return suffix(); } /** * @hidden *

Kotlin property getter. In Java use {@link #value()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final double getValue() { return value(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy