
io.qt.widgets.QCompleter Maven / Gradle / Ivy
package io.qt.widgets;
/**
* Completions based on an item model
* Java wrapper for Qt class QCompleter
*/
public class QCompleter extends io.qt.core.QObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
@io.qt.QtPropertyMember(enabled=false)
private Object __rcWidget = null;
@io.qt.QtPropertyMember(enabled=false)
private Object __rcModel = null;
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QCompleter.class);
/**
* Java wrapper for Qt enum QCompleter::CompletionMode
*/
public enum CompletionMode implements io.qt.QtEnumerator {
PopupCompletion(0),
UnfilteredPopupCompletion(1),
InlineCompletion(2);
private CompletionMode(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static CompletionMode resolve(int value) {
switch (value) {
case 0: return PopupCompletion;
case 1: return UnfilteredPopupCompletion;
case 2: return InlineCompletion;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QCompleter::ModelSorting
*/
public enum ModelSorting implements io.qt.QtEnumerator {
UnsortedModel(0),
CaseSensitivelySortedModel(1),
CaseInsensitivelySortedModel(2);
private ModelSorting(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static ModelSorting resolve(int value) {
switch (value) {
case 0: return UnsortedModel;
case 1: return CaseSensitivelySortedModel;
case 2: return CaseInsensitivelySortedModel;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Wrapper class for overloaded signals:
*
* activated(const QModelIndex & index)
* activated(const QString & text)
*
*/
public final class MultiSignal_activated extends MultiSignal{
private MultiSignal_activated(){
super(new SignalConfiguration(io.qt.core.QModelIndex.class, new Signal1<>()), new SignalConfiguration(java.lang.String.class, new Signal1<>()));
}
/**
* Provides an overloaded signal by parameter type.
* The only valid calls are:
* activated.overload(io.qt.core.QModelIndex.class)
* activated.overload(java.lang.String.class)
*
* {@link io.qt.QNoSuchSignalException} is thrown otherwise.
* @param signal parameter type
* @param type1 value of type A
* @return overloaded signal
* @throws io.qt.QNoSuchSignalException if signal is not available
*/
@io.qt.QtAllowedTypeSet({io.qt.core.QModelIndex.class})
@io.qt.QtAllowedTypeSet({java.lang.String.class})
public final Signal1 overload(Class type1) throws io.qt.QNoSuchSignalException{
return (Signal1 )super.overload(type1);
}
/**
* See QCompleter::activated(QModelIndex)
*
*/
public final void emit(io.qt.core.QModelIndex index) {
((Signal1)overload(io.qt.core.QModelIndex.class)).emit(index);
}
/**
* See QCompleter::activated(QString)
*
*/
public final void emit(java.lang.String text) {
((Signal1)overload(java.lang.String.class)).emit(text);
}
};
/**
* Overloaded signals:
*
* activated(const QModelIndex & index)
* activated(const QString & text)
*
*/
public final MultiSignal_activated activated = new MultiSignal_activated();
/**
* Wrapper class for overloaded signals:
*
* highlighted(const QModelIndex & index)
* highlighted(const QString & text)
*
*/
public final class MultiSignal_highlighted extends MultiSignal{
private MultiSignal_highlighted(){
super(new SignalConfiguration(io.qt.core.QModelIndex.class, new Signal1<>()), new SignalConfiguration(java.lang.String.class, new Signal1<>()));
}
/**
* Provides an overloaded signal by parameter type.
* The only valid calls are:
* highlighted.overload(io.qt.core.QModelIndex.class)
* highlighted.overload(java.lang.String.class)
*
* {@link io.qt.QNoSuchSignalException} is thrown otherwise.
* @param signal parameter type
* @param type1 value of type A
* @return overloaded signal
* @throws io.qt.QNoSuchSignalException if signal is not available
*/
@io.qt.QtAllowedTypeSet({io.qt.core.QModelIndex.class})
@io.qt.QtAllowedTypeSet({java.lang.String.class})
public final Signal1 overload(Class type1) throws io.qt.QNoSuchSignalException{
return (Signal1 )super.overload(type1);
}
/**
* See QCompleter::highlighted(QModelIndex)
*
*/
public final void emit(io.qt.core.QModelIndex index) {
((Signal1)overload(io.qt.core.QModelIndex.class)).emit(index);
}
/**
* See QCompleter::highlighted(QString)
*
*/
public final void emit(java.lang.String text) {
((Signal1)overload(java.lang.String.class)).emit(text);
}
};
/**
* Overloaded signals:
*
* highlighted(const QModelIndex & index)
* highlighted(const QString & text)
*
*/
public final MultiSignal_highlighted highlighted = new MultiSignal_highlighted();
/**
* Overloaded constructor for {@link #QCompleter(io.qt.core.QAbstractItemModel, io.qt.core.QObject)}
* with parent = null
.
*/
public QCompleter(io.qt.core.QAbstractItemModel model) {
this(model, (io.qt.core.QObject)null);
}
/**
* See QCompleter::QCompleter(QAbstractItemModel*,QObject*)
*/
public QCompleter(io.qt.core.QAbstractItemModel model, io.qt.core.QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, model, parent);
}
private native static void initialize_native(QCompleter instance, io.qt.core.QAbstractItemModel model, io.qt.core.QObject parent);
/**
* Overloaded constructor for {@link #QCompleter(io.qt.core.QObject)}
* with parent = null
.
*/
public QCompleter() {
this((io.qt.core.QObject)null);
}
/**
* See QCompleter::QCompleter(QObject*)
*/
public QCompleter(io.qt.core.QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QCompleter instance, io.qt.core.QObject parent);
/**
* Overloaded constructor for {@link #QCompleter(java.util.Collection, io.qt.core.QObject)}
* with parent = null
.
*/
public QCompleter(java.util.Collection completions) {
this(completions, (io.qt.core.QObject)null);
}
/**
* See QCompleter::QCompleter(QStringList,QObject*)
*/
public QCompleter(java.util.Collection completions, io.qt.core.QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, completions, parent);
}
private native static void initialize_native(QCompleter instance, java.util.Collection completions, io.qt.core.QObject parent);
/**
* See QCompleter::caseSensitivity()const
*/
@io.qt.QtPropertyReader(name="caseSensitivity")
@io.qt.QtUninvokable
public final io.qt.core.Qt.CaseSensitivity caseSensitivity(){
return io.qt.core.Qt.CaseSensitivity.resolve(caseSensitivity_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int caseSensitivity_native_constfct(long __this__nativeId);
/**
* Overloaded function for {@link #complete(io.qt.core.QRect)}
* with rect = new io.qt.core.QRect()
.
*/
public final void complete() {
complete(new io.qt.core.QRect());
}
/**
* See QCompleter::complete(QRect)
*/
public final void complete(io.qt.core.QRect rect){
complete_native_cref_QRect(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rect));
}
private native void complete_native_cref_QRect(long __this__nativeId, long rect);
/**
* See QCompleter::completionColumn()const
*/
@io.qt.QtPropertyReader(name="completionColumn")
@io.qt.QtUninvokable
public final int completionColumn(){
return completionColumn_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int completionColumn_native_constfct(long __this__nativeId);
/**
* See QCompleter::completionCount()const
*/
@io.qt.QtUninvokable
public final int completionCount(){
return completionCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int completionCount_native_constfct(long __this__nativeId);
/**
* See QCompleter::completionMode()const
*/
@io.qt.QtPropertyReader(name="completionMode")
@io.qt.QtUninvokable
public final io.qt.widgets.QCompleter.CompletionMode completionMode(){
return io.qt.widgets.QCompleter.CompletionMode.resolve(completionMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int completionMode_native_constfct(long __this__nativeId);
/**
* See QCompleter::completionModel()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QAbstractItemModel completionModel(){
return completionModel_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QAbstractItemModel completionModel_native_constfct(long __this__nativeId);
/**
* See QCompleter::completionPrefix()const
*/
@io.qt.QtPropertyReader(name="completionPrefix")
@io.qt.QtUninvokable
public final java.lang.String completionPrefix(){
return completionPrefix_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String completionPrefix_native_constfct(long __this__nativeId);
/**
* See QCompleter::completionRole()const
*/
@io.qt.QtPropertyReader(name="completionRole")
@io.qt.QtUninvokable
public final int completionRole(){
return completionRole_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int completionRole_native_constfct(long __this__nativeId);
/**
* See QCompleter::currentCompletion()const
*/
@io.qt.QtUninvokable
public final java.lang.String currentCompletion(){
return currentCompletion_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String currentCompletion_native_constfct(long __this__nativeId);
/**
* See QCompleter::currentIndex()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QModelIndex currentIndex(){
return currentIndex_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QModelIndex currentIndex_native_constfct(long __this__nativeId);
/**
* See QCompleter::currentRow()const
*/
@io.qt.QtUninvokable
public final int currentRow(){
return currentRow_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int currentRow_native_constfct(long __this__nativeId);
/**
* See QCompleter::filterMode()const
*/
@io.qt.QtPropertyReader(name="filterMode")
@io.qt.QtUninvokable
public final io.qt.core.Qt.MatchFlags filterMode(){
return new io.qt.core.Qt.MatchFlags(filterMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int filterMode_native_constfct(long __this__nativeId);
/**
* See QCompleter::maxVisibleItems()const
*/
@io.qt.QtPropertyReader(name="maxVisibleItems")
@io.qt.QtUninvokable
public final int maxVisibleItems(){
return maxVisibleItems_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int maxVisibleItems_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QAbstractItemModel model(){
return model_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QAbstractItemModel model_native_constfct(long __this__nativeId);
/**
* See QCompleter::modelSorting()const
*/
@io.qt.QtPropertyReader(name="modelSorting")
@io.qt.QtUninvokable
public final io.qt.widgets.QCompleter.ModelSorting modelSorting(){
return io.qt.widgets.QCompleter.ModelSorting.resolve(modelSorting_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int modelSorting_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QAbstractItemView popup(){
return popup_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.widgets.QAbstractItemView popup_native_constfct(long __this__nativeId);
/**
* See QCompleter::setCaseSensitivity(Qt::CaseSensitivity)
*/
@io.qt.QtPropertyWriter(name="caseSensitivity")
@io.qt.QtUninvokable
public final void setCaseSensitivity(io.qt.core.Qt.CaseSensitivity caseSensitivity){
setCaseSensitivity_native_Qt_CaseSensitivity(QtJambi_LibraryUtilities.internal.nativeId(this), caseSensitivity.value());
}
@io.qt.QtUninvokable
private native void setCaseSensitivity_native_Qt_CaseSensitivity(long __this__nativeId, int caseSensitivity);
/**
* See QCompleter::setCompletionColumn(int)
*/
@io.qt.QtPropertyWriter(name="completionColumn")
@io.qt.QtUninvokable
public final void setCompletionColumn(int column){
setCompletionColumn_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), column);
}
@io.qt.QtUninvokable
private native void setCompletionColumn_native_int(long __this__nativeId, int column);
/**
* See QCompleter::setCompletionMode(QCompleter::CompletionMode)
*/
@io.qt.QtPropertyWriter(name="completionMode")
@io.qt.QtUninvokable
public final void setCompletionMode(io.qt.widgets.QCompleter.CompletionMode mode){
setCompletionMode_native_QCompleter_CompletionMode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value());
}
@io.qt.QtUninvokable
private native void setCompletionMode_native_QCompleter_CompletionMode(long __this__nativeId, int mode);
/**
* See QCompleter::setCompletionPrefix(QString)
*/
@io.qt.QtPropertyWriter(name="completionPrefix")
public final void setCompletionPrefix(java.lang.String prefix){
setCompletionPrefix_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), prefix);
}
private native void setCompletionPrefix_native_cref_QString(long __this__nativeId, java.lang.String prefix);
/**
* See QCompleter::setCompletionRole(int)
*/
@io.qt.QtPropertyWriter(name="completionRole")
@io.qt.QtUninvokable
public final void setCompletionRole(int role){
setCompletionRole_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), role);
}
@io.qt.QtUninvokable
private native void setCompletionRole_native_int(long __this__nativeId, int role);
/**
* See QCompleter::setCurrentRow(int)
*/
@io.qt.QtUninvokable
public final boolean setCurrentRow(int row){
return setCurrentRow_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), row);
}
@io.qt.QtUninvokable
private native boolean setCurrentRow_native_int(long __this__nativeId, int row);
/**
* Overloaded function for {@link #setFilterMode(io.qt.core.Qt.MatchFlags)}.
*/
@io.qt.QtUninvokable
public final void setFilterMode(io.qt.core.Qt.MatchFlag ... filterMode){
setFilterMode(new io.qt.core.Qt.MatchFlags(filterMode));
}
/**
* See QCompleter::setFilterMode(Qt::MatchFlags)
*/
@io.qt.QtPropertyWriter(name="filterMode")
@io.qt.QtUninvokable
public final void setFilterMode(io.qt.core.Qt.MatchFlags filterMode){
setFilterMode_native_QFlags_Qt_MatchFlag_(QtJambi_LibraryUtilities.internal.nativeId(this), filterMode.value());
}
@io.qt.QtUninvokable
private native void setFilterMode_native_QFlags_Qt_MatchFlag_(long __this__nativeId, int filterMode);
/**
* See QCompleter::setMaxVisibleItems(int)
*/
@io.qt.QtPropertyWriter(name="maxVisibleItems")
@io.qt.QtUninvokable
public final void setMaxVisibleItems(int maxItems){
setMaxVisibleItems_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), maxItems);
}
@io.qt.QtUninvokable
private native void setMaxVisibleItems_native_int(long __this__nativeId, int maxItems);
/**
* See QCompleter::setModel(QAbstractItemModel*)
*/
@io.qt.QtUninvokable
public final void setModel(io.qt.core.QAbstractItemModel c){
setModel_native_QAbstractItemModel_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(c));
__rcModel = c;
}
@io.qt.QtUninvokable
private native void setModel_native_QAbstractItemModel_ptr(long __this__nativeId, long c);
/**
* See QCompleter::setModelSorting(QCompleter::ModelSorting)
*/
@io.qt.QtPropertyWriter(name="modelSorting")
@io.qt.QtUninvokable
public final void setModelSorting(io.qt.widgets.QCompleter.ModelSorting sorting){
setModelSorting_native_QCompleter_ModelSorting(QtJambi_LibraryUtilities.internal.nativeId(this), sorting.value());
}
@io.qt.QtUninvokable
private native void setModelSorting_native_QCompleter_ModelSorting(long __this__nativeId, int sorting);
/**
* See QCompleter::setPopup(QAbstractItemView*)
*/
@io.qt.QtUninvokable
public final void setPopup(io.qt.widgets.QAbstractItemView popup){
java.util.Objects.requireNonNull(popup, "Argument 'popup': null not expected.");
setPopup_native_QAbstractItemView_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(popup));
QtJambi_LibraryUtilities.internal.setCppOwnership(popup);
}
@io.qt.QtUninvokable
private native void setPopup_native_QAbstractItemView_ptr(long __this__nativeId, long popup);
/**
* See QCompleter::setWidget(QWidget*)
*/
@io.qt.QtUninvokable
public final void setWidget(io.qt.widgets.QWidget widget){
setWidget_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
__rcWidget = widget;
}
@io.qt.QtUninvokable
private native void setWidget_native_QWidget_ptr(long __this__nativeId, long widget);
/**
* See QCompleter::setWrapAround(bool)
*/
@io.qt.QtPropertyWriter(name="wrapAround")
public final void setWrapAround(boolean wrap){
setWrapAround_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), wrap);
}
private native void setWrapAround_native_bool(long __this__nativeId, boolean wrap);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QWidget widget(){
return widget_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.widgets.QWidget widget_native_constfct(long __this__nativeId);
/**
* See QCompleter::wrapAround()const
*/
@io.qt.QtPropertyReader(name="wrapAround")
@io.qt.QtUninvokable
public final boolean wrapAround(){
return wrapAround_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean wrapAround_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public boolean event(io.qt.core.QEvent arg__1){
return event_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native boolean event_native_QEvent_ptr(long __this__nativeId, long arg__1);
/**
* See QObject::eventFilter(QObject*,QEvent*)
*/
@io.qt.QtUninvokable
public boolean eventFilter(io.qt.core.QObject o, io.qt.core.QEvent e){
return eventFilter_native_QObject_ptr_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(o), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@io.qt.QtUninvokable
private native boolean eventFilter_native_QObject_ptr_QEvent_ptr(long __this__nativeId, long o, long e);
/**
* See QCompleter::pathFromIndex(QModelIndex)const
*/
@io.qt.QtUninvokable
public java.lang.String pathFromIndex(io.qt.core.QModelIndex index){
return pathFromIndex_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@io.qt.QtUninvokable
private native java.lang.String pathFromIndex_native_cref_QModelIndex_constfct(long __this__nativeId, io.qt.core.QModelIndex index);
/**
* See QCompleter::splitPath(QString)const
*/
@io.qt.QtUninvokable
public java.util.List splitPath(java.lang.String path){
return splitPath_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), path);
}
@io.qt.QtUninvokable
private native java.util.List splitPath_native_cref_QString_constfct(long __this__nativeId, java.lang.String path);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QCompleter(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 QCompleter(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@io.qt.QtUninvokable
private static native void initialize_native(QCompleter instance, QDeclarativeConstructor constructor);
}