
io.qt.widgets.QTextBrowser Maven / Gradle / Ivy
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<>();
/**
* Wrapper class for overloaded signals:
*
* highlighted(const QString & arg__1)
* highlighted(const QUrl & arg__1)
*
*/
public final class MultiSignal_highlighted extends MultiSignal{
private MultiSignal_highlighted(){
super();
}
/**
* Provides an overloaded signal by parameter type.
* The only valid calls are:
* highlighted.overload(java.lang.String.class)
* highlighted.overload(io.qt.core.QUrl.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({java.lang.String.class})
@io.qt.QtAllowedTypeSet({io.qt.core.QUrl.class})
public final Signal1 overload(Class type1) throws io.qt.QNoSuchSignalException{
return (Signal1)super.overload(type1);
}
/**
* Initializes a connection to the slot.
*
* @param slot the slot to be connected
* @param connectionType type of connection
* @return connection if successful or null
otherwise
* @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible.
* @throws io.qt.QUninvokableSlotException Raised if slot is annotated @QtUninvokable
.
*/
public final io.qt.core.QMetaObject.Connection connect(io.qt.core.QMetaObject.Slot1 slot, io.qt.core.Qt.ConnectionType... connectionType) throws io.qt.QNoSuchSignalException{
return super.connect(slot, connectionType);
}
/**
* Removes the connection to the given slot.
*
* @param slot the slot to be disconnected
* @return true
if successfully disconnected, or false
otherwise.
*/
public final boolean disconnect(io.qt.core.QMetaObject.Slot1 slot) {
return super.disconnect(slot);
}
/**
* Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second
* signal to be emitted as well.
*
* @param signal The second signal. This will be emitted whenever this signal is emitted.
* @param connectionType One of the connection types defined in the Qt interface.
* @return connection if successful or null
otherwise
* @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible.
*/
public final io.qt.core.QMetaObject.Connection connect(io.qt.core.QMetaObject.Connectable1 signal, io.qt.core.Qt.ConnectionType... connectionType) throws io.qt.QNoSuchSignalException{
return super.connect((io.qt.core.QMetaObject.AbstractSignal)signal, connectionType);
}
/**
* Disconnects a signal from another signal if the two were previously connected by a call to connect.
* A call to this function will assure that the emission of the first signal will not cause the emission of the second.
*
* @param signal The second signal.
* @return true
if the two signals were successfully disconnected, or false
otherwise.
*/
public final boolean disconnect(io.qt.core.QMetaObject.Connectable1 signal) {
return super.disconnect((io.qt.core.QMetaObject.AbstractSignal)signal);
}
/**
* Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second
* signal to be emitted as well.
*
* @param signal The second signal. This will be emitted whenever this signal is emitted.
* @param connectionType One of the connection types defined in the Qt interface.
* @return connection if successful or null
otherwise
* @throws io.qt.QMisfittingSignatureException Raised if their signatures are incompatible.
*/
public final io.qt.core.QMetaObject.Connection connect(io.qt.core.QMetaObject.AbstractPublicSignal1 signal, io.qt.core.Qt.ConnectionType... connectionType) throws io.qt.QNoSuchSignalException{
return super.connect((io.qt.core.QMetaObject.AbstractSignal)signal, connectionType);
}
/**
* Disconnects a signal from another signal if the two were previously connected by a call to connect.
* A call to this function will assure that the emission of the first signal will not cause the emission of the second.
*
* @param signal The second signal.
* @return true
if the two signals were successfully disconnected, or false
otherwise.
*/
public final boolean disconnect(io.qt.core.QMetaObject.AbstractPublicSignal1 signal) {
return super.disconnect((io.qt.core.QMetaObject.AbstractSignal)signal);
}
/**
* See QTextBrowser::highlighted(QString)
*
* @deprecated Use QTextBrowser::highlighted(QUrl) instead
*/
@Deprecated
public final void emit(java.lang.String arg__1) {
((Signal1)overload(java.lang.String.class)).emit(arg__1);
}
/**
* See QTextBrowser::highlighted(QUrl)
*
*/
public final void emit(io.qt.core.QUrl arg__1) {
((Signal1)overload(io.qt.core.QUrl.class)).emit(arg__1);
}
};
/**
* Overloaded signals:
*
* highlighted(const QString & arg__1)
* highlighted(const QUrl & arg__1)
*
*/
public final MultiSignal_highlighted highlighted = new MultiSignal_highlighted();
/**
* 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);
/**
* 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 final 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);
/**
* 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);
/**
* 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);
/**
*
*/
@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);
/**
* See QTextBrowser::setSource(QUrl)
*/
@io.qt.QtPropertyWriter(name="source")
public void setSource(io.qt.core.QUrl name){
setSource_native_cref_QUrl(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(name));
}
private native void setSource_native_cref_QUrl(long __this__nativeId, long name);
/**
* 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);
}