io.qt.webengine.core.QWebEngineContextMenuRequest Maven / Gradle / Ivy
Show all versions of qtjambi-webenginecore-jre8 Show documentation
package io.qt.webengine.core;
/**
* Request for populating or extending a context menu with actions
* Java wrapper for Qt class QWebEngineContextMenuRequest
*/
public final class QWebEngineContextMenuRequest extends io.qt.core.QObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QWebEngineContextMenuRequest.class);
/**
* Java wrapper for Qt enum QWebEngineContextMenuRequest::EditFlag
*
* @see EditFlags
*/
public enum EditFlag implements io.qt.QtFlagEnumerator {
CanUndo(1),
CanRedo(2),
CanCut(4),
CanCopy(8),
CanPaste(16),
CanDelete(32),
CanSelectAll(64),
CanTranslate(128),
CanEditRichly(256);
private EditFlag(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Create a QFlags of the enum entry.
* @return QFlags
*/
public EditFlags asFlags() {
return new EditFlags(value);
}
/**
* Combines this entry with other enum entry.
* @param e enum entry
* @return new flag
*/
public EditFlags combined(EditFlag e) {
return new EditFlags(this, e);
}
/**
* Creates a new {@link EditFlags} from the entries.
* @param values entries
* @return new flag
*/
public static EditFlags flags(EditFlag ... values) {
return new EditFlags(values);
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static EditFlag resolve(int value) {
switch (value) {
case 1: return CanUndo;
case 2: return CanRedo;
case 4: return CanCut;
case 8: return CanCopy;
case 16: return CanPaste;
case 32: return CanDelete;
case 64: return CanSelectAll;
case 128: return CanTranslate;
case 256: return CanEditRichly;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* QFlags type for enum {@link EditFlag}
*/
public static final class EditFlags extends io.qt.QFlags implements Comparable {
private static final long serialVersionUID = 0x6471c7474d16e451L;
/**
* Creates a new EditFlags where the flags in args
are set.
* @param args enum entries
*/
public EditFlags(EditFlag ... args){
super(args);
}
/**
* Creates a new EditFlags with given value
.
* @param value
*/
public EditFlags(int value) {
super(value);
}
/**
* Combines this flags with enum entry.
* @param e enum entry
* @return new EditFlags
*/
@Override
public final EditFlags combined(EditFlag e){
return new EditFlags(value() | e.value());
}
/**
* Sets the flag e
* @param e enum entry
* @return this
*/
public final EditFlags setFlag(EditFlag e){
super.setFlag(e);
return this;
}
/**
* Sets or clears the flag flag
* @param e enum entry
* @param on set (true) or clear (false)
* @return this
*/
public final EditFlags setFlag(EditFlag e, boolean on){
super.setFlag(e, on);
return this;
}
/**
* Returns an array of flag objects represented by this EditFlags.
* @return array of enum entries
*/
@Override
public final EditFlag[] flags(){
return super.flags(EditFlag.values());
}
/**
* {@inheritDoc}
*/
@Override
public final EditFlags clone(){
return new EditFlags(value());
}
/**
* {@inheritDoc}
*/
@Override
public final int compareTo(EditFlags other){
return Integer.compare(value(), other.value());
}
}
/**
* Java wrapper for Qt enum QWebEngineContextMenuRequest::MediaFlag
*
* @see MediaFlags
*/
public enum MediaFlag implements io.qt.QtFlagEnumerator {
MediaInError(1),
MediaPaused(2),
MediaMuted(4),
MediaLoop(8),
MediaCanSave(16),
MediaHasAudio(32),
MediaCanToggleControls(64),
MediaControls(128),
MediaCanPrint(256),
MediaCanRotate(512);
private MediaFlag(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Create a QFlags of the enum entry.
* @return QFlags
*/
public MediaFlags asFlags() {
return new MediaFlags(value);
}
/**
* Combines this entry with other enum entry.
* @param e enum entry
* @return new flag
*/
public MediaFlags combined(MediaFlag e) {
return new MediaFlags(this, e);
}
/**
* Creates a new {@link MediaFlags} from the entries.
* @param values entries
* @return new flag
*/
public static MediaFlags flags(MediaFlag ... values) {
return new MediaFlags(values);
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static MediaFlag resolve(int value) {
switch (value) {
case 1: return MediaInError;
case 2: return MediaPaused;
case 4: return MediaMuted;
case 8: return MediaLoop;
case 16: return MediaCanSave;
case 32: return MediaHasAudio;
case 64: return MediaCanToggleControls;
case 128: return MediaControls;
case 256: return MediaCanPrint;
case 512: return MediaCanRotate;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* QFlags type for enum {@link MediaFlag}
*/
public static final class MediaFlags extends io.qt.QFlags implements Comparable {
private static final long serialVersionUID = 0xa5bae86f204e2f26L;
/**
* Creates a new MediaFlags where the flags in args
are set.
* @param args enum entries
*/
public MediaFlags(MediaFlag ... args){
super(args);
}
/**
* Creates a new MediaFlags with given value
.
* @param value
*/
public MediaFlags(int value) {
super(value);
}
/**
* Combines this flags with enum entry.
* @param e enum entry
* @return new MediaFlags
*/
@Override
public final MediaFlags combined(MediaFlag e){
return new MediaFlags(value() | e.value());
}
/**
* Sets the flag e
* @param e enum entry
* @return this
*/
public final MediaFlags setFlag(MediaFlag e){
super.setFlag(e);
return this;
}
/**
* Sets or clears the flag flag
* @param e enum entry
* @param on set (true) or clear (false)
* @return this
*/
public final MediaFlags setFlag(MediaFlag e, boolean on){
super.setFlag(e, on);
return this;
}
/**
* Returns an array of flag objects represented by this MediaFlags.
* @return array of enum entries
*/
@Override
public final MediaFlag[] flags(){
return super.flags(MediaFlag.values());
}
/**
* {@inheritDoc}
*/
@Override
public final MediaFlags clone(){
return new MediaFlags(value());
}
/**
* {@inheritDoc}
*/
@Override
public final int compareTo(MediaFlags other){
return Integer.compare(value(), other.value());
}
}
/**
* Java wrapper for Qt enum QWebEngineContextMenuRequest::MediaType
*/
public enum MediaType implements io.qt.QtEnumerator {
MediaTypeNone(0),
MediaTypeImage(1),
MediaTypeVideo(2),
MediaTypeAudio(3),
MediaTypeCanvas(4),
MediaTypeFile(5),
MediaTypePlugin(6);
private MediaType(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 MediaType resolve(int value) {
switch (value) {
case 0: return MediaTypeNone;
case 1: return MediaTypeImage;
case 2: return MediaTypeVideo;
case 3: return MediaTypeAudio;
case 4: return MediaTypeCanvas;
case 5: return MediaTypeFile;
case 6: return MediaTypePlugin;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QWebEngineContextMenuRequest::editFlags()const
*/
@io.qt.QtPropertyReader(name="editFlags")
@io.qt.QtPropertyConstant
@io.qt.QtUninvokable
public final io.qt.webengine.core.QWebEngineContextMenuRequest.EditFlags editFlags(){
return new io.qt.webengine.core.QWebEngineContextMenuRequest.EditFlags(editFlags_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int editFlags_native_constfct(long __this__nativeId);
/**
* See QWebEngineContextMenuRequest::isAccepted()const
*/
@io.qt.QtPropertyReader(name="accepted")
@io.qt.QtUninvokable
public final boolean isAccepted(){
return isAccepted_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isAccepted_native_constfct(long __this__nativeId);
/**
* See QWebEngineContextMenuRequest::isContentEditable()const
*/
@io.qt.QtPropertyReader(name="isContentEditable")
@io.qt.QtPropertyConstant
@io.qt.QtUninvokable
public final boolean isContentEditable(){
return isContentEditable_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isContentEditable_native_constfct(long __this__nativeId);
/**
* See QWebEngineContextMenuRequest::linkText()const
*/
@io.qt.QtPropertyReader(name="linkText")
@io.qt.QtPropertyConstant
@io.qt.QtUninvokable
public final java.lang.String linkText(){
return linkText_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String linkText_native_constfct(long __this__nativeId);
/**
* See QWebEngineContextMenuRequest::linkUrl()const
*/
@io.qt.QtPropertyReader(name="linkUrl")
@io.qt.QtPropertyConstant
@io.qt.QtUninvokable
public final io.qt.core.QUrl linkUrl(){
return linkUrl_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QUrl linkUrl_native_constfct(long __this__nativeId);
/**
* See QWebEngineContextMenuRequest::mediaFlags()const
*/
@io.qt.QtPropertyReader(name="mediaFlags")
@io.qt.QtPropertyConstant
@io.qt.QtUninvokable
public final io.qt.webengine.core.QWebEngineContextMenuRequest.MediaFlags mediaFlags(){
return new io.qt.webengine.core.QWebEngineContextMenuRequest.MediaFlags(mediaFlags_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int mediaFlags_native_constfct(long __this__nativeId);
/**
* See QWebEngineContextMenuRequest::mediaType()const
*/
@io.qt.QtPropertyReader(name="mediaType")
@io.qt.QtPropertyConstant
@io.qt.QtUninvokable
public final io.qt.webengine.core.QWebEngineContextMenuRequest.MediaType mediaType(){
return io.qt.webengine.core.QWebEngineContextMenuRequest.MediaType.resolve(mediaType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int mediaType_native_constfct(long __this__nativeId);
/**
* See QWebEngineContextMenuRequest::mediaUrl()const
*/
@io.qt.QtPropertyReader(name="mediaUrl")
@io.qt.QtPropertyConstant
@io.qt.QtUninvokable
public final io.qt.core.QUrl mediaUrl(){
return mediaUrl_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QUrl mediaUrl_native_constfct(long __this__nativeId);
/**
* See QWebEngineContextMenuRequest::misspelledWord()const
*/
@io.qt.QtPropertyReader(name="misspelledWord")
@io.qt.QtPropertyConstant
@io.qt.QtUninvokable
public final java.lang.String misspelledWord(){
return misspelledWord_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String misspelledWord_native_constfct(long __this__nativeId);
/**
* See QWebEngineContextMenuRequest::position()const
*/
@io.qt.QtPropertyReader(name="position")
@io.qt.QtPropertyConstant
@io.qt.QtUninvokable
public final io.qt.core.QPoint position(){
return position_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QPoint position_native_constfct(long __this__nativeId);
/**
* See QWebEngineContextMenuRequest::selectedText()const
*/
@io.qt.QtPropertyReader(name="selectedText")
@io.qt.QtPropertyConstant
@io.qt.QtUninvokable
public final java.lang.String selectedText(){
return selectedText_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String selectedText_native_constfct(long __this__nativeId);
/**
* See QWebEngineContextMenuRequest::setAccepted(bool)
*/
@io.qt.QtPropertyWriter(name="accepted")
@io.qt.QtUninvokable
public final void setAccepted(boolean accepted){
setAccepted_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), accepted);
}
@io.qt.QtUninvokable
private native void setAccepted_native_bool(long __this__nativeId, boolean accepted);
/**
* See QWebEngineContextMenuRequest::spellCheckerSuggestions()const
*/
@io.qt.QtPropertyReader(name="spellCheckerSuggestions")
@io.qt.QtPropertyConstant
@io.qt.QtUninvokable
public final io.qt.core.QStringList spellCheckerSuggestions(){
return spellCheckerSuggestions_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QStringList spellCheckerSuggestions_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QWebEngineContextMenuRequest(QPrivateConstructor p) { super(p); }
}