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

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

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

import io.qt.*;


/**
 * 

Item for use with the QTableWidget class

*

Java wrapper for Qt class QTableWidgetItem

*/ public class QTableWidgetItem extends QtObject implements java.lang.Comparable { static { QtJambi_LibraryUtilities.initialize(); } /** *

See QTableWidgetItem::QTableWidgetItem(QIcon,QString,int)

*/ public QTableWidgetItem(io.qt.gui.@NonNull QIcon icon, java.lang.@NonNull String text){ super((QPrivateConstructor)null); initialize_native(this, icon, text); } private native static void initialize_native(QTableWidgetItem instance, io.qt.gui.QIcon icon, java.lang.String text); /** *

See QTableWidgetItem::QTableWidgetItem(QString,int)

*/ public QTableWidgetItem(java.lang.@NonNull String text){ super((QPrivateConstructor)null); initialize_native(this, text); } private native static void initialize_native(QTableWidgetItem instance, java.lang.String text); /** *

See QTableWidgetItem::QTableWidgetItem(int)

*/ public QTableWidgetItem(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QTableWidgetItem instance); /** *

See QTableWidgetItem::background()const

*/ @QtUninvokable public final io.qt.gui.@NonNull QBrush background(){ return background_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QBrush background_native_constfct(long __this__nativeId); /** *

See QTableWidgetItem::checkState()const

*/ @QtUninvokable public final io.qt.core.Qt.@NonNull CheckState checkState(){ return io.qt.core.Qt.CheckState.resolve(checkState_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int checkState_native_constfct(long __this__nativeId); /** *

See QTableWidgetItem::column()const

*/ @QtUninvokable public final int column(){ return column_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int column_native_constfct(long __this__nativeId); /** *

See QTableWidgetItem::flags()const

*/ @QtUninvokable public final io.qt.core.Qt.@NonNull ItemFlags flags(){ return new io.qt.core.Qt.ItemFlags(flags_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int flags_native_constfct(long __this__nativeId); /** *

See QTableWidgetItem::font()const

*/ @QtUninvokable public final io.qt.gui.@NonNull QFont font(){ return font_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QFont font_native_constfct(long __this__nativeId); /** *

See QTableWidgetItem::foreground()const

*/ @QtUninvokable public final io.qt.gui.@NonNull QBrush foreground(){ return foreground_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QBrush foreground_native_constfct(long __this__nativeId); /** *

See QTableWidgetItem::icon()const

*/ @QtUninvokable public final io.qt.gui.@NonNull QIcon icon(){ return icon_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QIcon icon_native_constfct(long __this__nativeId); /** *

See QTableWidgetItem::isSelected()const

*/ @QtUninvokable public final boolean isSelected(){ return isSelected_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isSelected_native_constfct(long __this__nativeId); /** *

See operator<<(QDataStream&,QTableWidgetItem)

*/ @QtUninvokable public void writeTo(io.qt.core.@StrictNonNull QDataStream out){ java.util.Objects.requireNonNull(out, "Argument 'out': null not expected."); writeTo_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(out)); } @QtUninvokable private native void writeTo_native_ref_QDataStream(long __this__nativeId, long out); /** *

See QTableWidgetItem::operator=(QTableWidgetItem)

*/ @QtUninvokable public final void assign(io.qt.widgets.@StrictNonNull QTableWidgetItem other){ java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); assign_native_cref_QTableWidgetItem(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native void assign_native_cref_QTableWidgetItem(long __this__nativeId, long other); /** *

See operator>>(QDataStream&,QTableWidgetItem&)

*/ @QtUninvokable public void readFrom(io.qt.core.@StrictNonNull QDataStream in){ java.util.Objects.requireNonNull(in, "Argument 'in': null not expected."); readFrom_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(in)); } @QtUninvokable private native void readFrom_native_ref_QDataStream(long __this__nativeId, long in); /** *

See QTableWidgetItem::row()const

*/ @QtUninvokable public final int row(){ return row_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int row_native_constfct(long __this__nativeId); /** *

See QTableWidgetItem::setBackground(QBrush)

*/ @QtUninvokable public final void setBackground(io.qt.gui.@NonNull QBrush brush){ setBackground_native_cref_QBrush(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(brush)); } @QtUninvokable private native void setBackground_native_cref_QBrush(long __this__nativeId, long brush); /** *

See QTableWidgetItem::setCheckState(Qt::CheckState)

*/ @QtUninvokable public final void setCheckState(io.qt.core.Qt.@NonNull CheckState state){ setCheckState_native_Qt_CheckState(QtJambi_LibraryUtilities.internal.nativeId(this), state.value()); } @QtUninvokable private native void setCheckState_native_Qt_CheckState(long __this__nativeId, int state); /** *

See QTableWidgetItem::setFlags(Qt::ItemFlags)

*/ @QtUninvokable public final void setFlags(io.qt.core.Qt.@NonNull ItemFlags flags){ setFlags_native_Qt_ItemFlags(QtJambi_LibraryUtilities.internal.nativeId(this), flags.value()); } @QtUninvokable private native void setFlags_native_Qt_ItemFlags(long __this__nativeId, int flags); /** *

See QTableWidgetItem::setFont(QFont)

*/ @QtUninvokable public final void setFont(io.qt.gui.@NonNull QFont font){ setFont_native_cref_QFont(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(font)); } @QtUninvokable private native void setFont_native_cref_QFont(long __this__nativeId, long font); /** *

See QTableWidgetItem::setForeground(QBrush)

*/ @QtUninvokable public final void setForeground(io.qt.gui.@NonNull QBrush brush){ setForeground_native_cref_QBrush(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(brush)); } @QtUninvokable private native void setForeground_native_cref_QBrush(long __this__nativeId, long brush); /** *

See QTableWidgetItem::setIcon(QIcon)

*/ @QtUninvokable public final void setIcon(io.qt.gui.@NonNull QIcon icon){ setIcon_native_cref_QIcon(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(icon)); } @QtUninvokable private native void setIcon_native_cref_QIcon(long __this__nativeId, long icon); /** *

See QTableWidgetItem::setSelected(bool)

*/ @QtUninvokable public final void setSelected(boolean select){ setSelected_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), select); } @QtUninvokable private native void setSelected_native_bool(long __this__nativeId, boolean select); /** *

See QTableWidgetItem::setSizeHint(QSize)

*/ @QtUninvokable public final void setSizeHint(io.qt.core.@NonNull QSize size){ setSizeHint_native_cref_QSize(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(size)); } @QtUninvokable private native void setSizeHint_native_cref_QSize(long __this__nativeId, long size); /** *

See QTableWidgetItem::setStatusTip(QString)

*/ @QtUninvokable public final void setStatusTip(java.lang.@NonNull String statusTip){ setStatusTip_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), statusTip); } @QtUninvokable private native void setStatusTip_native_cref_QString(long __this__nativeId, java.lang.String statusTip); /** *

See QTableWidgetItem::setText(QString)

*/ @QtUninvokable public final void setText(java.lang.@NonNull String text){ setText_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), text); } @QtUninvokable private native void setText_native_cref_QString(long __this__nativeId, java.lang.String text); /** *

See QTableWidgetItem::setTextAlignment(Qt::Alignment)

*/ @QtUninvokable public final void setTextAlignment(io.qt.core.Qt.@NonNull Alignment alignment){ setTextAlignment_native_Qt_Alignment(QtJambi_LibraryUtilities.internal.nativeId(this), alignment.value()); } @QtUninvokable private native void setTextAlignment_native_Qt_Alignment(long __this__nativeId, int alignment); /** *

See QTableWidgetItem::setTextAlignment(Qt::AlignmentFlag)

*/ @QtUninvokable public final void setTextAlignment(io.qt.core.Qt.@NonNull AlignmentFlag alignment){ setTextAlignment_native_Qt_AlignmentFlag(QtJambi_LibraryUtilities.internal.nativeId(this), alignment.value()); } @QtUninvokable private native void setTextAlignment_native_Qt_AlignmentFlag(long __this__nativeId, int alignment); /** *

See QTableWidgetItem::setTextAlignment(int)

* * @deprecated Use the overload taking Qt::Alignment */ @Deprecated @QtUninvokable public final void setTextAlignment(int alignment){ setTextAlignment_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), alignment); } @Deprecated @QtUninvokable private native void setTextAlignment_native_int(long __this__nativeId, int alignment); /** *

See QTableWidgetItem::setToolTip(QString)

*/ @QtUninvokable public final void setToolTip(java.lang.@NonNull String toolTip){ setToolTip_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), toolTip); } @QtUninvokable private native void setToolTip_native_cref_QString(long __this__nativeId, java.lang.String toolTip); /** *

See QTableWidgetItem::setWhatsThis(QString)

*/ @QtUninvokable public final void setWhatsThis(java.lang.@NonNull String whatsThis){ setWhatsThis_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), whatsThis); } @QtUninvokable private native void setWhatsThis_native_cref_QString(long __this__nativeId, java.lang.String whatsThis); /** *

See QTableWidgetItem::sizeHint()const

*/ @QtUninvokable public final io.qt.core.@NonNull QSize sizeHint(){ return sizeHint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QSize sizeHint_native_constfct(long __this__nativeId); /** *

See QTableWidgetItem::statusTip()const

*/ @QtUninvokable public final java.lang.@NonNull String statusTip(){ return statusTip_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String statusTip_native_constfct(long __this__nativeId); /** *

See QTableWidgetItem::tableWidget()const

*/ @QtUninvokable public final io.qt.widgets.@Nullable QTableWidget tableWidget(){ return tableWidget_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.widgets.QTableWidget tableWidget_native_constfct(long __this__nativeId); /** *

See QTableWidgetItem::text()const

*/ @QtUninvokable public final java.lang.@NonNull String text(){ return text_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String text_native_constfct(long __this__nativeId); /** *

See QTableWidgetItem::textAlignment()const

*/ @QtUninvokable public final int textAlignment(){ return textAlignment_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int textAlignment_native_constfct(long __this__nativeId); /** *

See QTableWidgetItem::toolTip()const

*/ @QtUninvokable public final java.lang.@NonNull String toolTip(){ return toolTip_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String toolTip_native_constfct(long __this__nativeId); /** *

See QTableWidgetItem::whatsThis()const

*/ @QtUninvokable public final java.lang.@NonNull String whatsThis(){ return whatsThis_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String whatsThis_native_constfct(long __this__nativeId); /** *

See QTableWidgetItem::clone()const

*/ @QtUninvokable public io.qt.widgets.@Nullable QTableWidgetItem clone(){ return clone_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.widgets.QTableWidgetItem clone_native_constfct(long __this__nativeId); /** *

See QTableWidgetItem::data(int)const

*/ @QtUninvokable public java.lang.Object data(int role){ return data_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), role); } @QtUninvokable private native java.lang.Object data_native_int_constfct(long __this__nativeId, int role); /** *

See QTableWidgetItem::operator<(QTableWidgetItem)const

*/ @QtUninvokable private boolean operator_less(io.qt.widgets.@StrictNonNull QTableWidgetItem other){ java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); return operator_less_native_cref_QTableWidgetItem_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native boolean operator_less_native_cref_QTableWidgetItem_constfct(long __this__nativeId, long other); /** *

See QTableWidgetItem::read(QDataStream&)

*/ @QtUninvokable protected void read(io.qt.core.@StrictNonNull QDataStream in){ java.util.Objects.requireNonNull(in, "Argument 'in': null not expected."); read_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(in)); } @QtUninvokable private native void read_native_ref_QDataStream(long __this__nativeId, long in); /** *

See QTableWidgetItem::setData(int,QVariant)

*/ @QtUninvokable public void setData(int role, java.lang.Object value){ setData_native_int_cref_QVariant(QtJambi_LibraryUtilities.internal.nativeId(this), role, value); } @QtUninvokable private native void setData_native_int_cref_QVariant(long __this__nativeId, int role, java.lang.Object value); /** *

See QTableWidgetItem::write(QDataStream&)const

*/ @QtUninvokable protected void write(io.qt.core.@StrictNonNull QDataStream out){ java.util.Objects.requireNonNull(out, "Argument 'out': null not expected."); write_native_ref_QDataStream_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(out)); } @QtUninvokable private native void write_native_ref_QDataStream_constfct(long __this__nativeId, long out); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QTableWidgetItem(QPrivateConstructor p) { super(p); } /** *

See QTableWidgetItem::operator<(QTableWidgetItem)const

*/ /** * {@inheritDoc} */ @QtUninvokable public int compareTo(io.qt.widgets.@StrictNonNull QTableWidgetItem other) { if (operator_less((io.qt.widgets.QTableWidgetItem) other)) return -1; else if (((io.qt.widgets.QTableWidgetItem) other).operator_less(this)) return 1; else return 0; } /** *

Overloaded constructor for {@link #QTableWidgetItem(io.qt.gui.QIcon, java.lang.String)}.

*/ public QTableWidgetItem(io.qt.gui.@NonNull QPixmap icon, java.lang.@NonNull String text) { this(new io.qt.gui.QIcon(icon), text); } /** *

Overloaded function for {@link #setBackground(io.qt.gui.QBrush)}.

*/ @QtUninvokable public final void setBackground(io.qt.core.Qt.@NonNull BrushStyle brush) { setBackground(new io.qt.gui.QBrush(brush)); } /** *

Overloaded function for {@link #setBackground(io.qt.gui.QBrush)}.

*/ @QtUninvokable public final void setBackground(io.qt.gui.@NonNull QColor brush) { setBackground(new io.qt.gui.QBrush(brush)); } /** *

Overloaded function for {@link #setBackground(io.qt.gui.QBrush)}.

*/ @QtUninvokable public final void setBackground(io.qt.core.Qt.@NonNull GlobalColor brush) { setBackground(new io.qt.gui.QBrush(brush)); } /** *

Overloaded function for {@link #setBackground(io.qt.gui.QBrush)}.

*/ @QtUninvokable public final void setBackground(io.qt.gui.@NonNull QPixmap brush) { setBackground(new io.qt.gui.QBrush(brush)); } /** *

Overloaded function for {@link #setBackground(io.qt.gui.QBrush)}.

*/ @QtUninvokable public final void setBackground(io.qt.gui.@NonNull QImage brush) { setBackground(new io.qt.gui.QBrush(brush)); } /** *

Overloaded function for {@link #setBackground(io.qt.gui.QBrush)}.

*/ @QtUninvokable public final void setBackground(io.qt.gui.@NonNull QGradient brush) { setBackground(new io.qt.gui.QBrush(brush)); } /** *

Overloaded function for {@link #setFlags(io.qt.core.Qt.ItemFlags)}.

*/ @QtUninvokable public final void setFlags(io.qt.core.Qt.@NonNull ItemFlag @NonNull... flags) { setFlags(new io.qt.core.Qt.ItemFlags(flags)); } /** *

Overloaded function for {@link #setFont(io.qt.gui.QFont)}.

*/ @QtUninvokable public final void setFont(java.lang.@NonNull String font) { setFont(new io.qt.gui.QFont(font)); } /** *

Overloaded function for {@link #setForeground(io.qt.gui.QBrush)}.

*/ @QtUninvokable public final void setForeground(io.qt.core.Qt.@NonNull BrushStyle brush) { setForeground(new io.qt.gui.QBrush(brush)); } /** *

Overloaded function for {@link #setForeground(io.qt.gui.QBrush)}.

*/ @QtUninvokable public final void setForeground(io.qt.gui.@NonNull QColor brush) { setForeground(new io.qt.gui.QBrush(brush)); } /** *

Overloaded function for {@link #setForeground(io.qt.gui.QBrush)}.

*/ @QtUninvokable public final void setForeground(io.qt.core.Qt.@NonNull GlobalColor brush) { setForeground(new io.qt.gui.QBrush(brush)); } /** *

Overloaded function for {@link #setForeground(io.qt.gui.QBrush)}.

*/ @QtUninvokable public final void setForeground(io.qt.gui.@NonNull QPixmap brush) { setForeground(new io.qt.gui.QBrush(brush)); } /** *

Overloaded function for {@link #setForeground(io.qt.gui.QBrush)}.

*/ @QtUninvokable public final void setForeground(io.qt.gui.@NonNull QImage brush) { setForeground(new io.qt.gui.QBrush(brush)); } /** *

Overloaded function for {@link #setForeground(io.qt.gui.QBrush)}.

*/ @QtUninvokable public final void setForeground(io.qt.gui.@NonNull QGradient brush) { setForeground(new io.qt.gui.QBrush(brush)); } /** *

Overloaded function for {@link #setIcon(io.qt.gui.QIcon)}.

*/ @QtUninvokable public final void setIcon(io.qt.gui.@NonNull QPixmap icon) { setIcon(new io.qt.gui.QIcon(icon)); } /** *

Overloaded function for {@link #setTextAlignment(io.qt.core.Qt.Alignment)}.

*/ @QtUninvokable public final void setTextAlignment(io.qt.core.Qt.@NonNull AlignmentFlag @NonNull... alignment) { setTextAlignment(new io.qt.core.Qt.Alignment(alignment)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy