io.qt.widgets.QTextBrowser Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
import io.qt.*;
/**
* Rich text browser with hypertext navigation
* Java wrapper for Qt class QTextBrowser
*/
public class QTextBrowser extends io.qt.widgets.QTextEdit
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QTextBrowser.class);
/**
* See QTextBrowser:: anchorClicked(QUrl)
*/
public final @NonNull Signal1 anchorClicked = new Signal1<>();
/**
* See QTextBrowser:: backwardAvailable(bool)
*/
public final @NonNull Signal1 backwardAvailable = new Signal1<>();
/**
* See QTextBrowser:: forwardAvailable(bool)
*/
public final @NonNull Signal1 forwardAvailable = new Signal1<>();
/**
* See QTextBrowser:: highlighted(QUrl)
*/
public final @NonNull Signal1 highlighted = new Signal1<>();
/**
* See QTextBrowser:: historyChanged()
*/
public final @NonNull Signal0 historyChanged = new Signal0();
/**
* See QTextBrowser:: sourceChanged(QUrl)
*/
public final @NonNull Signal1 sourceChanged = new Signal1<>();
/**
* See QTextBrowser:: QTextBrowser(QWidget*)
*/
public QTextBrowser(io.qt.widgets.@Nullable QWidget parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QTextBrowser instance, io.qt.widgets.QWidget parent);
/**
* See QTextBrowser:: backwardHistoryCount()const
*/
@QtUninvokable
public final int backwardHistoryCount(){
return backwardHistoryCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int backwardHistoryCount_native_constfct(long __this__nativeId);
/**
* See QTextBrowser:: clearHistory()
*/
@QtUninvokable
public final void clearHistory(){
clearHistory_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void clearHistory_native(long __this__nativeId);
/**
* See QTextBrowser:: forwardHistoryCount()const
*/
@QtUninvokable
public final int forwardHistoryCount(){
return forwardHistoryCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int forwardHistoryCount_native_constfct(long __this__nativeId);
/**
* See QTextBrowser:: historyTitle(int)const
*/
@QtUninvokable
public final java.lang.@NonNull String historyTitle(int arg__1){
return historyTitle_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@QtUninvokable
private native java.lang.String historyTitle_native_int_constfct(long __this__nativeId, int arg__1);
/**
* See QTextBrowser:: historyUrl(int)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QUrl historyUrl(int arg__1){
return historyUrl_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@QtUninvokable
private native io.qt.core.QUrl historyUrl_native_int_constfct(long __this__nativeId, int arg__1);
/**
* See QTextBrowser:: isBackwardAvailable()const
*/
@QtUninvokable
public final boolean isBackwardAvailable(){
return isBackwardAvailable_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isBackwardAvailable_native_constfct(long __this__nativeId);
/**
* See QTextBrowser:: isForwardAvailable()const
*/
@QtUninvokable
public final boolean isForwardAvailable(){
return isForwardAvailable_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isForwardAvailable_native_constfct(long __this__nativeId);
/**
* See QTextBrowser:: openExternalLinks()const
*/
@QtPropertyReader(name="openExternalLinks")
@QtUninvokable
public final boolean openExternalLinks(){
return openExternalLinks_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean openExternalLinks_native_constfct(long __this__nativeId);
/**
* See QTextBrowser:: openLinks()const
*/
@QtPropertyReader(name="openLinks")
@QtUninvokable
public final boolean openLinks(){
return openLinks_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean openLinks_native_constfct(long __this__nativeId);
/**
* See QTextBrowser:: searchPaths()const
*/
@QtPropertyReader(name="searchPaths")
@QtUninvokable
public final io.qt.core.@NonNull QStringList searchPaths(){
return searchPaths_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QStringList searchPaths_native_constfct(long __this__nativeId);
/**
* See QTextBrowser:: setOpenExternalLinks(bool)
*/
@QtPropertyWriter(name="openExternalLinks")
@QtUninvokable
public final void setOpenExternalLinks(boolean open){
setOpenExternalLinks_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), open);
}
@QtUninvokable
private native void setOpenExternalLinks_native_bool(long __this__nativeId, boolean open);
/**
* See QTextBrowser:: setOpenLinks(bool)
*/
@QtPropertyWriter(name="openLinks")
@QtUninvokable
public final void setOpenLinks(boolean open){
setOpenLinks_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), open);
}
@QtUninvokable
private native void setOpenLinks_native_bool(long __this__nativeId, boolean open);
/**
* See QTextBrowser:: setSearchPaths(QStringList)
*/
@QtPropertyWriter(name="searchPaths")
@QtUninvokable
public final void setSearchPaths(java.util.@NonNull Collection paths){
setSearchPaths_native_cref_QStringList(QtJambi_LibraryUtilities.internal.nativeId(this), paths);
}
@QtUninvokable
private native void setSearchPaths_native_cref_QStringList(long __this__nativeId, java.util.Collection paths);
/**
* See QTextBrowser:: setSource(QUrl, QTextDocument::ResourceType)
*/
@QtPropertyWriter(name="source")
public final void setSource(io.qt.core.@NonNull QUrl name, io.qt.gui.QTextDocument.@NonNull ResourceType type){
setSource_native_cref_QUrl_QTextDocument_ResourceType(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(name), type.value());
}
private native void setSource_native_cref_QUrl_QTextDocument_ResourceType(long __this__nativeId, long name, int type);
/**
* See QTextBrowser:: source()const
*/
@QtPropertyReader(name="source")
@QtUninvokable
public final io.qt.core.@NonNull QUrl source(){
return source_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QUrl source_native_constfct(long __this__nativeId);
/**
* See QTextBrowser:: sourceType()const
*/
@QtPropertyReader(name="sourceType")
@QtUninvokable
public final io.qt.gui.QTextDocument.@NonNull ResourceType sourceType(){
return io.qt.gui.QTextDocument.ResourceType.resolve(sourceType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int sourceType_native_constfct(long __this__nativeId);
/**
*
*/
public void backward(){
backward_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void backward_native(long __this__nativeId);
/**
* See QTextBrowser:: doSetSource(QUrl, QTextDocument::ResourceType)
*/
@QtUninvokable
protected void doSetSource(io.qt.core.@NonNull QUrl name, io.qt.gui.QTextDocument.@NonNull ResourceType type){
doSetSource_native_cref_QUrl_QTextDocument_ResourceType(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(name), type.value());
}
@QtUninvokable
private native void doSetSource_native_cref_QUrl_QTextDocument_ResourceType(long __this__nativeId, long name, int type);
/**
*
*/
@QtUninvokable
@Override
public boolean event(io.qt.core.@Nullable QEvent e){
return event_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@QtUninvokable
private native boolean event_native_QEvent_ptr(long __this__nativeId, long e);
/**
* See QWidget:: focusNextPrevChild(bool)
*/
@QtUninvokable
protected boolean focusNextPrevChild(boolean next){
return focusNextPrevChild_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), next);
}
@QtUninvokable
private native boolean focusNextPrevChild_native_bool(long __this__nativeId, boolean next);
/**
* See QWidget:: focusOutEvent(QFocusEvent*)
*/
@QtUninvokable
protected void focusOutEvent(io.qt.gui.@Nullable QFocusEvent ev){
focusOutEvent_native_QFocusEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(ev));
}
@QtUninvokable
private native void focusOutEvent_native_QFocusEvent_ptr(long __this__nativeId, long ev);
/**
*
*/
public void forward(){
forward_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void forward_native(long __this__nativeId);
/**
*
*/
public void home(){
home_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void home_native(long __this__nativeId);
/**
* See QWidget:: keyPressEvent(QKeyEvent*)
*/
@QtUninvokable
protected void keyPressEvent(io.qt.gui.@Nullable QKeyEvent ev){
keyPressEvent_native_QKeyEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(ev));
}
@QtUninvokable
private native void keyPressEvent_native_QKeyEvent_ptr(long __this__nativeId, long ev);
/**
* See QTextEdit:: loadResource(int, QUrl)
*/
@QtUninvokable
public java.lang.Object loadResource(int type, io.qt.core.@NonNull QUrl name){
return loadResource_native_int_cref_QUrl(QtJambi_LibraryUtilities.internal.nativeId(this), type, QtJambi_LibraryUtilities.internal.checkedNativeId(name));
}
@QtUninvokable
private native java.lang.Object loadResource_native_int_cref_QUrl(long __this__nativeId, int type, long name);
/**
* See QWidget:: mouseMoveEvent(QMouseEvent*)
*/
@QtUninvokable
protected void mouseMoveEvent(io.qt.gui.@Nullable QMouseEvent ev){
mouseMoveEvent_native_QMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(ev));
}
@QtUninvokable
private native void mouseMoveEvent_native_QMouseEvent_ptr(long __this__nativeId, long ev);
/**
* See QWidget:: mousePressEvent(QMouseEvent*)
*/
@QtUninvokable
protected void mousePressEvent(io.qt.gui.@Nullable QMouseEvent ev){
mousePressEvent_native_QMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(ev));
}
@QtUninvokable
private native void mousePressEvent_native_QMouseEvent_ptr(long __this__nativeId, long ev);
/**
* See QWidget:: mouseReleaseEvent(QMouseEvent*)
*/
@QtUninvokable
protected void mouseReleaseEvent(io.qt.gui.@Nullable QMouseEvent ev){
mouseReleaseEvent_native_QMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(ev));
}
@QtUninvokable
private native void mouseReleaseEvent_native_QMouseEvent_ptr(long __this__nativeId, long ev);
/**
* See QWidget:: paintEvent(QPaintEvent*)
*/
@QtUninvokable
protected void paintEvent(io.qt.gui.@Nullable QPaintEvent e){
paintEvent_native_QPaintEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@QtUninvokable
private native void paintEvent_native_QPaintEvent_ptr(long __this__nativeId, long e);
/**
*
*/
public void reload(){
reload_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void reload_native(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QTextBrowser(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QTextBrowser(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QTextBrowser instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QTextBrowser(io.qt.widgets.QWidget)}
* with parent = null
.
*/
public QTextBrowser() {
this((io.qt.widgets.QWidget)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #openExternalLinks()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getOpenExternalLinks() {
return openExternalLinks();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #openLinks()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getOpenLinks() {
return openLinks();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #searchPaths()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QStringList getSearchPaths() {
return searchPaths();
}
/**
* Overloaded function for {@link #setSource(io.qt.core.QUrl, io.qt.gui.QTextDocument.ResourceType)}
* with type = io.qt.gui.QTextDocument.ResourceType.UnknownResource
.
*/
public final void setSource(io.qt.core.@NonNull QUrl name) {
setSource(name, io.qt.gui.QTextDocument.ResourceType.UnknownResource);
}
/**
* Overloaded function for {@link #setSource(java.lang.String, io.qt.gui.QTextDocument.ResourceType)}
* with type = io.qt.gui.QTextDocument.ResourceType.UnknownResource
.
*/
public final void setSource(java.lang.@NonNull String name) {
setSource(name, io.qt.gui.QTextDocument.ResourceType.UnknownResource);
}
/**
* Overloaded function for {@link #setSource(io.qt.core.QUrl, io.qt.gui.QTextDocument.ResourceType)}.
*/
public final void setSource(java.lang.@NonNull String name, io.qt.gui.QTextDocument.@NonNull ResourceType type) {
setSource(new io.qt.core.QUrl(name), type);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #source()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QUrl getSource() {
return source();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #sourceType()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.gui.QTextDocument.@NonNull ResourceType getSourceType() {
return sourceType();
}
/**
* Overloaded function for {@link #doSetSource(io.qt.core.QUrl, io.qt.gui.QTextDocument.ResourceType)}
* with type = io.qt.gui.QTextDocument.ResourceType.UnknownResource
.
*/
@QtUninvokable
protected final void doSetSource(io.qt.core.@NonNull QUrl name) {
doSetSource(name, io.qt.gui.QTextDocument.ResourceType.UnknownResource);
}
/**
* Overloaded function for {@link #doSetSource(java.lang.String, io.qt.gui.QTextDocument.ResourceType)}
* with type = io.qt.gui.QTextDocument.ResourceType.UnknownResource
.
*/
@QtUninvokable
protected final void doSetSource(java.lang.@NonNull String name) {
doSetSource(name, io.qt.gui.QTextDocument.ResourceType.UnknownResource);
}
/**
* Overloaded function for {@link #doSetSource(io.qt.core.QUrl, io.qt.gui.QTextDocument.ResourceType)}.
*/
@QtUninvokable
protected final void doSetSource(java.lang.@NonNull String name, io.qt.gui.QTextDocument.@NonNull ResourceType type) {
doSetSource(new io.qt.core.QUrl(name), type);
}
}