io.qt.widgets.QDoubleSpinBox Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
/**
* 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.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QDoubleSpinBox.class);
/**
* See QDoubleSpinBox::textChanged(QString)
*/
public final Signal1 textChanged = new Signal1<>();
/**
* See QDoubleSpinBox::valueChanged(double)
*/
@io.qt.QtPropertyNotify(name="value")
public final Signal1<@io.qt.QtPrimitiveType Double> valueChanged = new Signal1<>();
/**
* Overloaded constructor for {@link #QDoubleSpinBox(io.qt.widgets.QWidget)}
* with parent = null
.
*/
public QDoubleSpinBox() {
this((io.qt.widgets.QWidget)null);
}
/**
* See QDoubleSpinBox::QDoubleSpinBox(QWidget*)
*/
public QDoubleSpinBox(io.qt.widgets.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
*/
@io.qt.QtPropertyReader(name="cleanText")
@io.qt.QtUninvokable
public final java.lang.String cleanText(){
return cleanText_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String cleanText_native_constfct(long __this__nativeId);
/**
* See QDoubleSpinBox::decimals()const
*/
@io.qt.QtPropertyReader(name="decimals")
@io.qt.QtUninvokable
public final int decimals(){
return decimals_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int decimals_native_constfct(long __this__nativeId);
/**
* See QDoubleSpinBox::maximum()const
*/
@io.qt.QtPropertyReader(name="maximum")
@io.qt.QtUninvokable
public final double maximum(){
return maximum_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native double maximum_native_constfct(long __this__nativeId);
/**
* See QDoubleSpinBox::minimum()const
*/
@io.qt.QtPropertyReader(name="minimum")
@io.qt.QtUninvokable
public final double minimum(){
return minimum_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native double minimum_native_constfct(long __this__nativeId);
/**
* See QDoubleSpinBox::prefix()const
*/
@io.qt.QtPropertyReader(name="prefix")
@io.qt.QtUninvokable
public final java.lang.String prefix(){
return prefix_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String prefix_native_constfct(long __this__nativeId);
/**
* See QDoubleSpinBox::setDecimals(int)
*/
@io.qt.QtPropertyWriter(name="decimals")
@io.qt.QtUninvokable
public final void setDecimals(int prec){
setDecimals_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), prec);
}
@io.qt.QtUninvokable
private native void setDecimals_native_int(long __this__nativeId, int prec);
/**
* See QDoubleSpinBox::setMaximum(double)
*/
@io.qt.QtPropertyWriter(name="maximum")
@io.qt.QtUninvokable
public final void setMaximum(double max){
setMaximum_native_double(QtJambi_LibraryUtilities.internal.nativeId(this), max);
}
@io.qt.QtUninvokable
private native void setMaximum_native_double(long __this__nativeId, double max);
/**
* See QDoubleSpinBox::setMinimum(double)
*/
@io.qt.QtPropertyWriter(name="minimum")
@io.qt.QtUninvokable
public final void setMinimum(double min){
setMinimum_native_double(QtJambi_LibraryUtilities.internal.nativeId(this), min);
}
@io.qt.QtUninvokable
private native void setMinimum_native_double(long __this__nativeId, double min);
/**
* See QDoubleSpinBox::setPrefix(QString)
*/
@io.qt.QtPropertyWriter(name="prefix")
@io.qt.QtUninvokable
public final void setPrefix(java.lang.String prefix){
setPrefix_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), prefix);
}
@io.qt.QtUninvokable
private native void setPrefix_native_cref_QString(long __this__nativeId, java.lang.String prefix);
/**
* See QDoubleSpinBox::setRange(double,double)
*/
@io.qt.QtUninvokable
public final void setRange(double min, double max){
setRange_native_double_double(QtJambi_LibraryUtilities.internal.nativeId(this), min, max);
}
@io.qt.QtUninvokable
private native void setRange_native_double_double(long __this__nativeId, double min, double max);
/**
* See QDoubleSpinBox::setSingleStep(double)
*/
@io.qt.QtPropertyWriter(name="singleStep")
@io.qt.QtUninvokable
public final void setSingleStep(double val){
setSingleStep_native_double(QtJambi_LibraryUtilities.internal.nativeId(this), val);
}
@io.qt.QtUninvokable
private native void setSingleStep_native_double(long __this__nativeId, double val);
/**
* See QDoubleSpinBox::setStepType(QAbstractSpinBox::StepType)
*/
@io.qt.QtPropertyWriter(name="stepType")
@io.qt.QtUninvokable
public final void setStepType(io.qt.widgets.QAbstractSpinBox.StepType stepType){
setStepType_native_QAbstractSpinBox_StepType(QtJambi_LibraryUtilities.internal.nativeId(this), stepType.value());
}
@io.qt.QtUninvokable
private native void setStepType_native_QAbstractSpinBox_StepType(long __this__nativeId, int stepType);
/**
* See QDoubleSpinBox::setSuffix(QString)
*/
@io.qt.QtPropertyWriter(name="suffix")
@io.qt.QtUninvokable
public final void setSuffix(java.lang.String suffix){
setSuffix_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), suffix);
}
@io.qt.QtUninvokable
private native void setSuffix_native_cref_QString(long __this__nativeId, java.lang.String suffix);
/**
* See QDoubleSpinBox::setValue(double)
*/
@io.qt.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
*/
@io.qt.QtPropertyReader(name="singleStep")
@io.qt.QtUninvokable
public final double singleStep(){
return singleStep_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native double singleStep_native_constfct(long __this__nativeId);
/**
* See QDoubleSpinBox::stepType()const
*/
@io.qt.QtPropertyReader(name="stepType")
@io.qt.QtUninvokable
public final io.qt.widgets.QAbstractSpinBox.StepType stepType(){
return io.qt.widgets.QAbstractSpinBox.StepType.resolve(stepType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int stepType_native_constfct(long __this__nativeId);
/**
* See QDoubleSpinBox::suffix()const
*/
@io.qt.QtPropertyReader(name="suffix")
@io.qt.QtUninvokable
public final java.lang.String suffix(){
return suffix_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String suffix_native_constfct(long __this__nativeId);
/**
* See QDoubleSpinBox::value()const
*/
@io.qt.QtPropertyReader(name="value")
@io.qt.QtPropertyUser
@io.qt.QtUninvokable
public final double value(){
return value_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native double value_native_constfct(long __this__nativeId);
/**
* See QAbstractSpinBox::fixup(QString&)const
*/
@io.qt.QtUninvokable
public java.lang.String fixup(java.lang.String str){
return fixup_native_ref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), str);
}
@io.qt.QtUninvokable
private native java.lang.String fixup_native_ref_QString_constfct(long __this__nativeId, java.lang.String str);
/**
* See QDoubleSpinBox::textFromValue(double)const
*/
@io.qt.QtUninvokable
public java.lang.String textFromValue(double val){
return textFromValue_native_double_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), val);
}
@io.qt.QtUninvokable
private native java.lang.String textFromValue_native_double_constfct(long __this__nativeId, double val);
/**
* See QAbstractSpinBox::validate(QString&,int&)const
*/
@io.qt.QtUninvokable
public io.qt.gui.QValidator.State validate(io.qt.gui.QValidator.QValidationData input){
return io.qt.gui.QValidator.State.resolve(validate_native_ref_QString_ref_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), input));
}
@io.qt.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
*/
@io.qt.QtUninvokable
public double valueFromText(java.lang.String text){
return valueFromText_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), text);
}
@io.qt.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
.
*/
@io.qt.NativeAccess
protected QDoubleSpinBox(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
*/
@io.qt.NativeAccess
protected QDoubleSpinBox(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@io.qt.QtUninvokable
private static native void initialize_native(QDoubleSpinBox instance, QDeclarativeConstructor constructor);
}