io.qt.widgets.QTableWidgetItem Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
/**
* Item for use with the QTableWidget class
* Java wrapper for Qt class QTableWidgetItem
*/
public class QTableWidgetItem extends io.qt.QtObject
implements java.lang.Comparable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QTableWidgetItem::QTableWidgetItem(QIcon,QString,int)
*/
public QTableWidgetItem(io.qt.gui.QIcon icon, java.lang.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.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
*/
@io.qt.QtUninvokable
public final io.qt.gui.QBrush background(){
return background_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QBrush background_native_constfct(long __this__nativeId);
/**
* See QTableWidgetItem::checkState()const
*/
@io.qt.QtUninvokable
public final io.qt.core.Qt.CheckState checkState(){
return io.qt.core.Qt.CheckState.resolve(checkState_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int checkState_native_constfct(long __this__nativeId);
/**
* See QTableWidgetItem::column()const
*/
@io.qt.QtUninvokable
public final int column(){
return column_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int column_native_constfct(long __this__nativeId);
/**
* See QTableWidgetItem::flags()const
*/
@io.qt.QtUninvokable
public final io.qt.core.Qt.ItemFlags flags(){
return new io.qt.core.Qt.ItemFlags(flags_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int flags_native_constfct(long __this__nativeId);
/**
* See QTableWidgetItem::font()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QFont font(){
return font_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QFont font_native_constfct(long __this__nativeId);
/**
* See QTableWidgetItem::foreground()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QBrush foreground(){
return foreground_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QBrush foreground_native_constfct(long __this__nativeId);
/**
* See QTableWidgetItem::icon()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QIcon icon(){
return icon_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QIcon icon_native_constfct(long __this__nativeId);
/**
* See QTableWidgetItem::isSelected()const
*/
@io.qt.QtUninvokable
public final boolean isSelected(){
return isSelected_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isSelected_native_constfct(long __this__nativeId);
@io.qt.QtUninvokable
public void writeTo(io.qt.core.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));
}
@io.qt.QtUninvokable
private native void writeTo_native_ref_QDataStream(long __this__nativeId, long out);
@io.qt.QtUninvokable
public void readFrom(io.qt.core.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));
}
@io.qt.QtUninvokable
private native void readFrom_native_ref_QDataStream(long __this__nativeId, long in);
/**
* See QTableWidgetItem::row()const
*/
@io.qt.QtUninvokable
public final int row(){
return row_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int row_native_constfct(long __this__nativeId);
/**
* See QTableWidgetItem::setBackground(QBrush)
*/
@io.qt.QtUninvokable
public final void setBackground(io.qt.gui.QBrush brush){
setBackground_native_cref_QBrush(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(brush));
}
@io.qt.QtUninvokable
private native void setBackground_native_cref_QBrush(long __this__nativeId, long brush);
/**
* See QTableWidgetItem::setCheckState(Qt::CheckState)
*/
@io.qt.QtUninvokable
public final void setCheckState(io.qt.core.Qt.CheckState state){
setCheckState_native_Qt_CheckState(QtJambi_LibraryUtilities.internal.nativeId(this), state.value());
}
@io.qt.QtUninvokable
private native void setCheckState_native_Qt_CheckState(long __this__nativeId, int state);
/**
* Overloaded function for {@link #setFlags(io.qt.core.Qt.ItemFlags)}.
*/
@io.qt.QtUninvokable
public final void setFlags(io.qt.core.Qt.ItemFlag ... flags){
setFlags(new io.qt.core.Qt.ItemFlags(flags));
}
/**
* See QTableWidgetItem::setFlags(Qt::ItemFlags)
*/
@io.qt.QtUninvokable
public final void setFlags(io.qt.core.Qt.ItemFlags flags){
setFlags_native_QFlags_Qt_ItemFlag_(QtJambi_LibraryUtilities.internal.nativeId(this), flags.value());
}
@io.qt.QtUninvokable
private native void setFlags_native_QFlags_Qt_ItemFlag_(long __this__nativeId, int flags);
/**
* See QTableWidgetItem::setFont(QFont)
*/
@io.qt.QtUninvokable
public final void setFont(io.qt.gui.QFont font){
setFont_native_cref_QFont(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(font));
}
@io.qt.QtUninvokable
private native void setFont_native_cref_QFont(long __this__nativeId, long font);
/**
* See QTableWidgetItem::setForeground(QBrush)
*/
@io.qt.QtUninvokable
public final void setForeground(io.qt.gui.QBrush brush){
setForeground_native_cref_QBrush(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(brush));
}
@io.qt.QtUninvokable
private native void setForeground_native_cref_QBrush(long __this__nativeId, long brush);
/**
* See QTableWidgetItem::setIcon(QIcon)
*/
@io.qt.QtUninvokable
public final void setIcon(io.qt.gui.QIcon icon){
setIcon_native_cref_QIcon(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(icon));
}
@io.qt.QtUninvokable
private native void setIcon_native_cref_QIcon(long __this__nativeId, long icon);
/**
* See QTableWidgetItem::setSelected(bool)
*/
@io.qt.QtUninvokable
public final void setSelected(boolean select){
setSelected_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), select);
}
@io.qt.QtUninvokable
private native void setSelected_native_bool(long __this__nativeId, boolean select);
/**
* See QTableWidgetItem::setSizeHint(QSize)
*/
@io.qt.QtUninvokable
public final void setSizeHint(io.qt.core.QSize size){
setSizeHint_native_cref_QSize(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(size));
}
@io.qt.QtUninvokable
private native void setSizeHint_native_cref_QSize(long __this__nativeId, long size);
/**
* See QTableWidgetItem::setStatusTip(QString)
*/
@io.qt.QtUninvokable
public final void setStatusTip(java.lang.String statusTip){
setStatusTip_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), statusTip);
}
@io.qt.QtUninvokable
private native void setStatusTip_native_cref_QString(long __this__nativeId, java.lang.String statusTip);
/**
* See QTableWidgetItem::setText(QString)
*/
@io.qt.QtUninvokable
public final void setText(java.lang.String text){
setText_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), text);
}
@io.qt.QtUninvokable
private native void setText_native_cref_QString(long __this__nativeId, java.lang.String text);
/**
* See QTableWidgetItem::setTextAlignment(int)
*/
@io.qt.QtUninvokable
public final void setTextAlignment(int alignment){
setTextAlignment_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), alignment);
}
@io.qt.QtUninvokable
private native void setTextAlignment_native_int(long __this__nativeId, int alignment);
/**
* See QTableWidgetItem::setToolTip(QString)
*/
@io.qt.QtUninvokable
public final void setToolTip(java.lang.String toolTip){
setToolTip_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), toolTip);
}
@io.qt.QtUninvokable
private native void setToolTip_native_cref_QString(long __this__nativeId, java.lang.String toolTip);
/**
* See QTableWidgetItem::setWhatsThis(QString)
*/
@io.qt.QtUninvokable
public final void setWhatsThis(java.lang.String whatsThis){
setWhatsThis_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), whatsThis);
}
@io.qt.QtUninvokable
private native void setWhatsThis_native_cref_QString(long __this__nativeId, java.lang.String whatsThis);
/**
* See QTableWidgetItem::sizeHint()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QSize sizeHint(){
return sizeHint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QSize sizeHint_native_constfct(long __this__nativeId);
/**
* See QTableWidgetItem::statusTip()const
*/
@io.qt.QtUninvokable
public final java.lang.String statusTip(){
return statusTip_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String statusTip_native_constfct(long __this__nativeId);
/**
* See QTableWidgetItem::tableWidget()const
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QTableWidget tableWidget(){
return tableWidget_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.widgets.QTableWidget tableWidget_native_constfct(long __this__nativeId);
/**
* See QTableWidgetItem::text()const
*/
@io.qt.QtUninvokable
public final java.lang.String text(){
return text_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String text_native_constfct(long __this__nativeId);
/**
* See QTableWidgetItem::textAlignment()const
*/
@io.qt.QtUninvokable
public final int textAlignment(){
return textAlignment_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int textAlignment_native_constfct(long __this__nativeId);
/**
* See QTableWidgetItem::toolTip()const
*/
@io.qt.QtUninvokable
public final java.lang.String toolTip(){
return toolTip_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String toolTip_native_constfct(long __this__nativeId);
/**
* See QTableWidgetItem::whatsThis()const
*/
@io.qt.QtUninvokable
public final java.lang.String whatsThis(){
return whatsThis_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String whatsThis_native_constfct(long __this__nativeId);
/**
* See QTableWidgetItem::clone()const
*/
@io.qt.QtUninvokable
public io.qt.widgets.QTableWidgetItem clone(){
return clone_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.widgets.QTableWidgetItem clone_native_constfct(long __this__nativeId);
/**
* See QTableWidgetItem::data(int)const
*/
@io.qt.QtUninvokable
public java.lang.Object data(int role){
return data_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), role);
}
@io.qt.QtUninvokable
private native java.lang.Object data_native_int_constfct(long __this__nativeId, int role);
/**
* See QTableWidgetItem::operator<(QTableWidgetItem)const
*/
@io.qt.QtUninvokable
private boolean operator_less(io.qt.widgets.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));
}
@io.qt.QtUninvokable
private native boolean operator_less_native_cref_QTableWidgetItem_constfct(long __this__nativeId, long other);
/**
* See QTableWidgetItem::read(QDataStream&)
*/
@io.qt.QtUninvokable
protected void read(io.qt.core.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));
}
@io.qt.QtUninvokable
private native void read_native_ref_QDataStream(long __this__nativeId, long in);
/**
* See QTableWidgetItem::setData(int,QVariant)
*/
@io.qt.QtUninvokable
public void setData(int role, java.lang.Object value){
setData_native_int_cref_QVariant(QtJambi_LibraryUtilities.internal.nativeId(this), role, value);
}
@io.qt.QtUninvokable
private native void setData_native_int_cref_QVariant(long __this__nativeId, int role, java.lang.Object value);
/**
* See QTableWidgetItem::write(QDataStream&)const
*/
@io.qt.QtUninvokable
protected void write(io.qt.core.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));
}
@io.qt.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
.
*/
@io.qt.NativeAccess
protected QTableWidgetItem(QPrivateConstructor p) { super(p); }
@io.qt.QtUninvokable
public int compareTo(io.qt.widgets.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;
}
}