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

io.qt.widgets.QListWidgetItem 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 QListWidget item view class

*

Java wrapper for Qt class QListWidgetItem

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

See QListWidgetItem::QListWidgetItem(QIcon,QString,QListWidget*,int)

*/ public QListWidgetItem(io.qt.gui.@NonNull QIcon icon, java.lang.@NonNull String text, io.qt.widgets.@Nullable QListWidget listview){ super((QPrivateConstructor)null); initialize_native(this, icon, text, listview); if (listview != null) QtJambi_LibraryUtilities.internal.setCppOwnership(this); } private native static void initialize_native(QListWidgetItem instance, io.qt.gui.QIcon icon, java.lang.String text, io.qt.widgets.QListWidget listview); /** *

See QListWidgetItem::QListWidgetItem(QListWidget*,int)

*/ public QListWidgetItem(io.qt.widgets.@Nullable QListWidget listview){ super((QPrivateConstructor)null); initialize_native(this, listview); if (listview != null) QtJambi_LibraryUtilities.internal.setCppOwnership(this); } private native static void initialize_native(QListWidgetItem instance, io.qt.widgets.QListWidget listview); /** *

See QListWidgetItem::QListWidgetItem(QString,QListWidget*,int)

*/ public QListWidgetItem(java.lang.@NonNull String text, io.qt.widgets.@Nullable QListWidget listview){ super((QPrivateConstructor)null); initialize_native(this, text, listview); if (listview != null) QtJambi_LibraryUtilities.internal.setCppOwnership(this); } private native static void initialize_native(QListWidgetItem instance, java.lang.String text, io.qt.widgets.QListWidget listview); /** *

See QListWidgetItem::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 QListWidgetItem::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 QListWidgetItem::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 QListWidgetItem::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 QListWidgetItem::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 QListWidgetItem::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 QListWidgetItem::isHidden()const

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

See QListWidgetItem::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 QListWidgetItem::listWidget()const

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

See operator<<(QDataStream&,QListWidgetItem)

*/ @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 QListWidgetItem::operator=(QListWidgetItem)

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

See operator>>(QDataStream&,QListWidgetItem&)

*/ @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 QListWidgetItem::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 QListWidgetItem::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 QListWidgetItem::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 QListWidgetItem::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 QListWidgetItem::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 QListWidgetItem::setHidden(bool)

*/ @QtUninvokable public final void setHidden(boolean hide){ setHidden_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), hide); } @QtUninvokable private native void setHidden_native_bool(long __this__nativeId, boolean hide); /** *

See QListWidgetItem::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 QListWidgetItem::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 QListWidgetItem::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 QListWidgetItem::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 QListWidgetItem::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 QListWidgetItem::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 QListWidgetItem::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 QListWidgetItem::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 QListWidgetItem::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 QListWidgetItem::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 QListWidgetItem::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 QListWidgetItem::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 QListWidgetItem::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 QListWidgetItem::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 QListWidgetItem::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 QListWidgetItem::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 QListWidgetItem::clone()const

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

See QListWidgetItem::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 QListWidgetItem::operator<(QListWidgetItem)const

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

See QListWidgetItem::read(QDataStream&)

*/ @QtUninvokable public 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 QListWidgetItem::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 QListWidgetItem::write(QDataStream&)const

*/ @QtUninvokable public 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 QListWidgetItem(QPrivateConstructor p) { super(p); } /** *

See QListWidgetItem::operator<(QListWidgetItem)const

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

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

*

with:

    *
  • listview = null
  • *
*/ public QListWidgetItem(io.qt.gui.@NonNull QIcon icon, java.lang.@NonNull String text) { this(icon, text, (io.qt.widgets.QListWidget)null); } /** *

Overloaded constructor for {@link #QListWidgetItem(io.qt.gui.QPixmap, java.lang.String, io.qt.widgets.QListWidget)}

*

with:

    *
  • listview = null
  • *
*/ public QListWidgetItem(io.qt.gui.@NonNull QPixmap icon, java.lang.@NonNull String text) { this(icon, text, (io.qt.widgets.QListWidget)null); } /** *

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

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

Overloaded constructor for {@link #QListWidgetItem(io.qt.widgets.QListWidget)}

*

with:

    *
  • listview = null
  • *
*/ public QListWidgetItem() { this((io.qt.widgets.QListWidget)null); } /** *

Overloaded constructor for {@link #QListWidgetItem(java.lang.String, io.qt.widgets.QListWidget)}

*

with:

    *
  • listview = null
  • *
*/ public QListWidgetItem(java.lang.@NonNull String text) { this(text, (io.qt.widgets.QListWidget)null); } /** *

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