io.qt.widgets.QTextBrowser Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
/**
* 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.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QTextBrowser.class);
/**
* See QTextBrowser::anchorClicked(QUrl)
*/
public final Signal1 anchorClicked = new Signal1<>();
/**
* See QTextBrowser::backwardAvailable(bool)
*/
public final Signal1<@io.qt.QtPrimitiveType Boolean> backwardAvailable = new Signal1<>();
/**
* See QTextBrowser::forwardAvailable(bool)
*/
public final Signal1<@io.qt.QtPrimitiveType Boolean> forwardAvailable = new Signal1<>();
/**
* See QTextBrowser::highlighted(QUrl)
*/
public final Signal1 highlighted = new Signal1<>();
/**
* See QTextBrowser::historyChanged()
*/
public final Signal0 historyChanged = new Signal0();
/**
* See QTextBrowser::sourceChanged(QUrl)
*/
public final Signal1 sourceChanged = new Signal1<>();
/**
* Overloaded constructor for {@link #QTextBrowser(io.qt.widgets.QWidget)}
* with parent = null
.
*/
public QTextBrowser() {
this((io.qt.widgets.QWidget)null);
}
/**
* See QTextBrowser::QTextBrowser(QWidget*)
*/
public QTextBrowser(io.qt.widgets.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
*/
@io.qt.QtUninvokable
public final int backwardHistoryCount(){
return backwardHistoryCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int backwardHistoryCount_native_constfct(long __this__nativeId);
/**
* See QTextBrowser::clearHistory()
*/
@io.qt.QtUninvokable
public final void clearHistory(){
clearHistory_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void clearHistory_native(long __this__nativeId);
/**
* See QTextBrowser::forwardHistoryCount()const
*/
@io.qt.QtUninvokable
public final int forwardHistoryCount(){
return forwardHistoryCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int forwardHistoryCount_native_constfct(long __this__nativeId);
/**
* See QTextBrowser::historyTitle(int)const
*/
@io.qt.QtUninvokable
public final java.lang.String historyTitle(int arg__1){
return historyTitle_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@io.qt.QtUninvokable
private native java.lang.String historyTitle_native_int_constfct(long __this__nativeId, int arg__1);
/**
* See QTextBrowser::historyUrl(int)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QUrl historyUrl(int arg__1){
return historyUrl_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@io.qt.QtUninvokable
private native io.qt.core.QUrl historyUrl_native_int_constfct(long __this__nativeId, int arg__1);
/**
* See QTextBrowser::isBackwardAvailable()const
*/
@io.qt.QtUninvokable
public final boolean isBackwardAvailable(){
return isBackwardAvailable_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isBackwardAvailable_native_constfct(long __this__nativeId);
/**
* See QTextBrowser::isForwardAvailable()const
*/
@io.qt.QtUninvokable
public final boolean isForwardAvailable(){
return isForwardAvailable_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isForwardAvailable_native_constfct(long __this__nativeId);
/**
* See QTextBrowser::openExternalLinks()const
*/
@io.qt.QtPropertyReader(name="openExternalLinks")
@io.qt.QtUninvokable
public final boolean openExternalLinks(){
return openExternalLinks_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean openExternalLinks_native_constfct(long __this__nativeId);
/**
* See QTextBrowser::openLinks()const
*/
@io.qt.QtPropertyReader(name="openLinks")
@io.qt.QtUninvokable
public final boolean openLinks(){
return openLinks_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean openLinks_native_constfct(long __this__nativeId);
/**
* See QTextBrowser::searchPaths()const
*/
@io.qt.QtPropertyReader(name="searchPaths")
@io.qt.QtUninvokable
public final io.qt.core.QStringList searchPaths(){
return searchPaths_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QStringList searchPaths_native_constfct(long __this__nativeId);
/**
* See QTextBrowser::setOpenExternalLinks(bool)
*/
@io.qt.QtPropertyWriter(name="openExternalLinks")
@io.qt.QtUninvokable
public final void setOpenExternalLinks(boolean open){
setOpenExternalLinks_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), open);
}
@io.qt.QtUninvokable
private native void setOpenExternalLinks_native_bool(long __this__nativeId, boolean open);
/**
* See QTextBrowser::setOpenLinks(bool)
*/
@io.qt.QtPropertyWriter(name="openLinks")
@io.qt.QtUninvokable
public final void setOpenLinks(boolean open){
setOpenLinks_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), open);
}
@io.qt.QtUninvokable
private native void setOpenLinks_native_bool(long __this__nativeId, boolean open);
/**
* See QTextBrowser::setSearchPaths(QStringList)
*/
@io.qt.QtPropertyWriter(name="searchPaths")
@io.qt.QtUninvokable
public final void setSearchPaths(java.util.Collection paths){
setSearchPaths_native_cref_QStringList(QtJambi_LibraryUtilities.internal.nativeId(this), paths);
}
@io.qt.QtUninvokable
private native void setSearchPaths_native_cref_QStringList(long __this__nativeId, java.util.Collection paths);
/**
* 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.QUrl name) {
setSource(name, io.qt.gui.QTextDocument.ResourceType.UnknownResource);
}
/**
* See QTextBrowser::setSource(QUrl,QTextDocument::ResourceType)
*/
@io.qt.QtPropertyWriter(name="source")
public final void setSource(io.qt.core.QUrl name, io.qt.gui.QTextDocument.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
*/
@io.qt.QtPropertyReader(name="source")
@io.qt.QtUninvokable
public final io.qt.core.QUrl source(){
return source_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QUrl source_native_constfct(long __this__nativeId);
/**
* See QTextBrowser::sourceType()const
*/
@io.qt.QtPropertyReader(name="sourceType")
@io.qt.QtUninvokable
public final io.qt.gui.QTextDocument.ResourceType sourceType(){
return io.qt.gui.QTextDocument.ResourceType.resolve(sourceType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.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);
/**
* Overloaded function for {@link #doSetSource(io.qt.core.QUrl, io.qt.gui.QTextDocument.ResourceType)}
* with type = io.qt.gui.QTextDocument.ResourceType.UnknownResource
.
*/
@io.qt.QtUninvokable
protected final void doSetSource(io.qt.core.QUrl name) {
doSetSource(name, io.qt.gui.QTextDocument.ResourceType.UnknownResource);
}
/**
* See QTextBrowser::doSetSource(QUrl,QTextDocument::ResourceType)
*/
@io.qt.QtUninvokable
protected void doSetSource(io.qt.core.QUrl name, io.qt.gui.QTextDocument.ResourceType type){
doSetSource_native_cref_QUrl_QTextDocument_ResourceType(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(name), type.value());
}
@io.qt.QtUninvokable
private native void doSetSource_native_cref_QUrl_QTextDocument_ResourceType(long __this__nativeId, long name, int type);
/**
*
*/
@io.qt.QtUninvokable
public boolean event(io.qt.core.QEvent e){
return event_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@io.qt.QtUninvokable
private native boolean event_native_QEvent_ptr(long __this__nativeId, long e);
/**
* See QWidget::focusNextPrevChild(bool)
*/
@io.qt.QtUninvokable
protected boolean focusNextPrevChild(boolean next){
return focusNextPrevChild_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), next);
}
@io.qt.QtUninvokable
private native boolean focusNextPrevChild_native_bool(long __this__nativeId, boolean next);
/**
* See QWidget::focusOutEvent(QFocusEvent*)
*/
@io.qt.QtUninvokable
protected void focusOutEvent(io.qt.gui.QFocusEvent ev){
focusOutEvent_native_QFocusEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(ev));
}
@io.qt.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*)
*/
@io.qt.QtUninvokable
protected void keyPressEvent(io.qt.gui.QKeyEvent ev){
keyPressEvent_native_QKeyEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(ev));
}
@io.qt.QtUninvokable
private native void keyPressEvent_native_QKeyEvent_ptr(long __this__nativeId, long ev);
/**
* See QTextEdit::loadResource(int,QUrl)
*/
@io.qt.QtUninvokable
public java.lang.Object loadResource(int type, io.qt.core.QUrl name){
return loadResource_native_int_cref_QUrl(QtJambi_LibraryUtilities.internal.nativeId(this), type, QtJambi_LibraryUtilities.internal.checkedNativeId(name));
}
@io.qt.QtUninvokable
private native java.lang.Object loadResource_native_int_cref_QUrl(long __this__nativeId, int type, long name);
/**
* See QWidget::mouseMoveEvent(QMouseEvent*)
*/
@io.qt.QtUninvokable
protected void mouseMoveEvent(io.qt.gui.QMouseEvent ev){
mouseMoveEvent_native_QMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(ev));
}
@io.qt.QtUninvokable
private native void mouseMoveEvent_native_QMouseEvent_ptr(long __this__nativeId, long ev);
/**
* See QWidget::mousePressEvent(QMouseEvent*)
*/
@io.qt.QtUninvokable
protected void mousePressEvent(io.qt.gui.QMouseEvent ev){
mousePressEvent_native_QMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(ev));
}
@io.qt.QtUninvokable
private native void mousePressEvent_native_QMouseEvent_ptr(long __this__nativeId, long ev);
/**
* See QWidget::mouseReleaseEvent(QMouseEvent*)
*/
@io.qt.QtUninvokable
protected void mouseReleaseEvent(io.qt.gui.QMouseEvent ev){
mouseReleaseEvent_native_QMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(ev));
}
@io.qt.QtUninvokable
private native void mouseReleaseEvent_native_QMouseEvent_ptr(long __this__nativeId, long ev);
/**
* See QWidget::paintEvent(QPaintEvent*)
*/
@io.qt.QtUninvokable
protected void paintEvent(io.qt.gui.QPaintEvent e){
paintEvent_native_QPaintEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@io.qt.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
.
*/
@io.qt.NativeAccess
protected QTextBrowser(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 QTextBrowser(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@io.qt.QtUninvokable
private static native void initialize_native(QTextBrowser instance, QDeclarativeConstructor constructor);
}