
io.qt.widgets.QAbstractButton Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
import io.qt.gui.*;
/**
* The abstract base class of button widgets, providing functionality common to buttons
* Java wrapper for Qt class QAbstractButton
*/
public abstract class QAbstractButton extends io.qt.widgets.QWidget
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QAbstractButton.class);
@io.qt.NativeAccess
private static final class ConcreteWrapper extends QAbstractButton {
@io.qt.NativeAccess
private ConcreteWrapper(QPrivateConstructor p) { super(p); }
@Override
@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);
}
/**
* See QAbstractButton::clicked(bool)
*/
public final Signal1Default1<@io.qt.QtPrimitiveType Boolean> clicked = new Signal1Default1<>(()->false);
/**
* See QAbstractButton::pressed()
*/
public final Signal0 pressed = new Signal0();
/**
* See QAbstractButton::released()
*/
public final Signal0 released = new Signal0();
/**
* See QAbstractButton::toggled(bool)
*/
@io.qt.QtPropertyNotify(name="checked")
public final Signal1<@io.qt.QtPrimitiveType Boolean> toggled = new Signal1<>();
/**
* Overloaded constructor for {@link #QAbstractButton(io.qt.widgets.QWidget)}
* with parent = null
.
*/
public QAbstractButton() {
this((io.qt.widgets.QWidget)null);
}
/**
* See QAbstractButton::QAbstractButton(QWidget*)
*/
public QAbstractButton(io.qt.widgets.QWidget parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QAbstractButton instance, io.qt.widgets.QWidget parent);
/**
* See QAbstractButton::animateClick()
*/
public final void animateClick(){
animateClick_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void animateClick_native(long __this__nativeId);
/**
* See QAbstractButton::autoExclusive()const
*/
@io.qt.QtPropertyReader(name="autoExclusive")
@io.qt.QtUninvokable
public final boolean autoExclusive(){
return autoExclusive_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean autoExclusive_native_constfct(long __this__nativeId);
/**
* See QAbstractButton::autoRepeat()const
*/
@io.qt.QtPropertyReader(name="autoRepeat")
@io.qt.QtUninvokable
public final boolean autoRepeat(){
return autoRepeat_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean autoRepeat_native_constfct(long __this__nativeId);
/**
* See QAbstractButton::autoRepeatDelay()const
*/
@io.qt.QtPropertyReader(name="autoRepeatDelay")
@io.qt.QtUninvokable
public final int autoRepeatDelay(){
return autoRepeatDelay_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int autoRepeatDelay_native_constfct(long __this__nativeId);
/**
* See QAbstractButton::autoRepeatInterval()const
*/
@io.qt.QtPropertyReader(name="autoRepeatInterval")
@io.qt.QtUninvokable
public final int autoRepeatInterval(){
return autoRepeatInterval_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int autoRepeatInterval_native_constfct(long __this__nativeId);
/**
*
*/
public final void click(){
click_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void click_native(long __this__nativeId);
/**
* See QAbstractButton::group()const
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QButtonGroup group(){
return group_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.widgets.QButtonGroup group_native_constfct(long __this__nativeId);
/**
* See QAbstractButton::icon()const
*/
@io.qt.QtPropertyReader(name="icon")
@io.qt.QtUninvokable
public final io.qt.gui.QIcon icon(){
return icon_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QIcon icon_native_constfct(long __this__nativeId);
/**
* See QAbstractButton::iconSize()const
*/
@io.qt.QtPropertyReader(name="iconSize")
@io.qt.QtUninvokable
public final io.qt.core.QSize iconSize(){
return iconSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QSize iconSize_native_constfct(long __this__nativeId);
/**
* See QAbstractButton::isCheckable()const
*/
@io.qt.QtPropertyReader(name="checkable")
@io.qt.QtUninvokable
public final boolean isCheckable(){
return isCheckable_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isCheckable_native_constfct(long __this__nativeId);
/**
* See QAbstractButton::isChecked()const
*/
@io.qt.QtPropertyReader(name="checked")
@io.qt.QtPropertyUser
@io.qt.QtUninvokable
public final boolean isChecked(){
return isChecked_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isChecked_native_constfct(long __this__nativeId);
/**
* See QAbstractButton::isDown()const
*/
@io.qt.QtPropertyReader(name="down")
@io.qt.QtPropertyDesignable("false")
@io.qt.QtUninvokable
public final boolean isDown(){
return isDown_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isDown_native_constfct(long __this__nativeId);
/**
* See QAbstractButton::setAutoExclusive(bool)
*/
@io.qt.QtPropertyWriter(name="autoExclusive")
@io.qt.QtUninvokable
public final void setAutoExclusive(boolean arg__1){
setAutoExclusive_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@io.qt.QtUninvokable
private native void setAutoExclusive_native_bool(long __this__nativeId, boolean arg__1);
/**
* See QAbstractButton::setAutoRepeat(bool)
*/
@io.qt.QtPropertyWriter(name="autoRepeat")
@io.qt.QtUninvokable
public final void setAutoRepeat(boolean arg__1){
setAutoRepeat_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@io.qt.QtUninvokable
private native void setAutoRepeat_native_bool(long __this__nativeId, boolean arg__1);
/**
* See QAbstractButton::setAutoRepeatDelay(int)
*/
@io.qt.QtPropertyWriter(name="autoRepeatDelay")
@io.qt.QtUninvokable
public final void setAutoRepeatDelay(int arg__1){
setAutoRepeatDelay_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@io.qt.QtUninvokable
private native void setAutoRepeatDelay_native_int(long __this__nativeId, int arg__1);
/**
* See QAbstractButton::setAutoRepeatInterval(int)
*/
@io.qt.QtPropertyWriter(name="autoRepeatInterval")
@io.qt.QtUninvokable
public final void setAutoRepeatInterval(int arg__1){
setAutoRepeatInterval_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@io.qt.QtUninvokable
private native void setAutoRepeatInterval_native_int(long __this__nativeId, int arg__1);
/**
* See QAbstractButton::setCheckable(bool)
*/
@io.qt.QtPropertyWriter(name="checkable")
@io.qt.QtUninvokable
public final void setCheckable(boolean arg__1){
setCheckable_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@io.qt.QtUninvokable
private native void setCheckable_native_bool(long __this__nativeId, boolean arg__1);
/**
* See QAbstractButton::setChecked(bool)
*/
@io.qt.QtPropertyWriter(name="checked")
public final void setChecked(boolean arg__1){
setChecked_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
private native void setChecked_native_bool(long __this__nativeId, boolean arg__1);
/**
* See QAbstractButton::setDown(bool)
*/
@io.qt.QtPropertyWriter(name="down")
@io.qt.QtUninvokable
public final void setDown(boolean arg__1){
setDown_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@io.qt.QtUninvokable
private native void setDown_native_bool(long __this__nativeId, boolean arg__1);
/**
* See QAbstractButton::setIcon(QIcon)
*/
@io.qt.QtPropertyWriter(name="icon")
@io.qt.QtUninvokable
public final void setIcon(io.qt.gui.QIcon icon){
setIcon_native_cref_QIcon(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(icon));
}
@io.qt.QtUninvokable
private native void setIcon_native_cref_QIcon(long __this__nativeId, long icon);
/**
* See QAbstractButton::setIconSize(QSize)
*/
@io.qt.QtPropertyWriter(name="iconSize")
public final void setIconSize(io.qt.core.QSize size){
setIconSize_native_cref_QSize(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(size));
}
private native void setIconSize_native_cref_QSize(long __this__nativeId, long size);
/**
* See QAbstractButton::setShortcut(QKeySequence)
*/
@io.qt.QtPropertyWriter(name="shortcut")
@io.qt.QtUninvokable
public final void setShortcut(io.qt.gui.QKeySequence key){
setShortcut_native_cref_QKeySequence(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(key));
}
@io.qt.QtUninvokable
private native void setShortcut_native_cref_QKeySequence(long __this__nativeId, long key);
/**
* See QAbstractButton::setText(QString)
*/
@io.qt.QtPropertyWriter(name="text")
@io.qt.QtUninvokable
public final void setText(java.lang.String text){
setText_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), text);
}
@io.qt.QtUninvokable
private native void setText_native_cref_QString(long __this__nativeId, java.lang.String text);
/**
* See QAbstractButton::shortcut()const
*/
@io.qt.QtPropertyReader(name="shortcut")
@io.qt.QtUninvokable
public final io.qt.gui.QKeySequence shortcut(){
return shortcut_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QKeySequence shortcut_native_constfct(long __this__nativeId);
/**
* See QAbstractButton::text()const
*/
@io.qt.QtPropertyReader(name="text")
@io.qt.QtUninvokable
public final java.lang.String text(){
return text_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String text_native_constfct(long __this__nativeId);
/**
*
*/
public final void toggle(){
toggle_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void toggle_native(long __this__nativeId);
/**
* See QWidget::changeEvent(QEvent*)
*/
@io.qt.QtUninvokable
protected void changeEvent(io.qt.core.QEvent e){
changeEvent_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@io.qt.QtUninvokable
private native void changeEvent_native_QEvent_ptr(long __this__nativeId, long e);
/**
* See QAbstractButton::checkStateSet()
*/
@io.qt.QtUninvokable
protected void checkStateSet(){
checkStateSet_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void checkStateSet_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::focusInEvent(QFocusEvent*)
*/
@io.qt.QtUninvokable
protected void focusInEvent(io.qt.gui.QFocusEvent e){
focusInEvent_native_QFocusEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@io.qt.QtUninvokable
private native void focusInEvent_native_QFocusEvent_ptr(long __this__nativeId, long e);
/**
* See QWidget::focusOutEvent(QFocusEvent*)
*/
@io.qt.QtUninvokable
protected void focusOutEvent(io.qt.gui.QFocusEvent e){
focusOutEvent_native_QFocusEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@io.qt.QtUninvokable
private native void focusOutEvent_native_QFocusEvent_ptr(long __this__nativeId, long e);
/**
* See QAbstractButton::hitButton(QPoint)const
*/
@io.qt.QtUninvokable
protected boolean hitButton(io.qt.core.QPoint pos){
return hitButton_native_cref_QPoint_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pos));
}
@io.qt.QtUninvokable
private native boolean hitButton_native_cref_QPoint_constfct(long __this__nativeId, long pos);
/**
* See QWidget::keyPressEvent(QKeyEvent*)
*/
@io.qt.QtUninvokable
protected void keyPressEvent(io.qt.gui.QKeyEvent e){
keyPressEvent_native_QKeyEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@io.qt.QtUninvokable
private native void keyPressEvent_native_QKeyEvent_ptr(long __this__nativeId, long e);
/**
* See QWidget::keyReleaseEvent(QKeyEvent*)
*/
@io.qt.QtUninvokable
protected void keyReleaseEvent(io.qt.gui.QKeyEvent e){
keyReleaseEvent_native_QKeyEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@io.qt.QtUninvokable
private native void keyReleaseEvent_native_QKeyEvent_ptr(long __this__nativeId, long e);
/**
* See QWidget::mouseMoveEvent(QMouseEvent*)
*/
@io.qt.QtUninvokable
protected void mouseMoveEvent(io.qt.gui.QMouseEvent e){
mouseMoveEvent_native_QMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@io.qt.QtUninvokable
private native void mouseMoveEvent_native_QMouseEvent_ptr(long __this__nativeId, long e);
/**
* See QWidget::mousePressEvent(QMouseEvent*)
*/
@io.qt.QtUninvokable
protected void mousePressEvent(io.qt.gui.QMouseEvent e){
mousePressEvent_native_QMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@io.qt.QtUninvokable
private native void mousePressEvent_native_QMouseEvent_ptr(long __this__nativeId, long e);
/**
* See QWidget::mouseReleaseEvent(QMouseEvent*)
*/
@io.qt.QtUninvokable
protected void mouseReleaseEvent(io.qt.gui.QMouseEvent e){
mouseReleaseEvent_native_QMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@io.qt.QtUninvokable
private native void mouseReleaseEvent_native_QMouseEvent_ptr(long __this__nativeId, long e);
/**
* See QAbstractButton::nextCheckState()
*/
@io.qt.QtUninvokable
protected void nextCheckState(){
nextCheckState_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void nextCheckState_native(long __this__nativeId);
/**
* See QWidget::paintEvent(QPaintEvent*)
*/
@io.qt.QtUninvokable
protected abstract void paintEvent(io.qt.gui.QPaintEvent e);
@io.qt.QtUninvokable
private native void paintEvent_native_QPaintEvent_ptr(long __this__nativeId, long e);
/**
* See QObject::timerEvent(QTimerEvent*)
*/
@io.qt.QtUninvokable
protected void timerEvent(io.qt.core.QTimerEvent e){
timerEvent_native_QTimerEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@io.qt.QtUninvokable
private native void timerEvent_native_QTimerEvent_ptr(long __this__nativeId, long e);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QAbstractButton(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 QAbstractButton(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@io.qt.QtUninvokable
private static native void initialize_native(QAbstractButton instance, QDeclarativeConstructor constructor);
/**
* Sets the shortcut to the key sequence for the given key string. For
* example "Ctrl+O" gives CTRL+'O'. The strings "Ctrl", "Shift", "Alt" and
* "Meta" are recognized, as well as their translated equivalents in the
* "QShortcut" context (using QObject::tr()). Up to four key codes may be
* entered by separating them with commas, e.g. "Alt+X,Ctrl+S,Q".
*
* @param key
* The description of the key sequence. Typically used with tr()
* so key sequences can be locale aware.
*/
public final void setShortcut(String key) {
setShortcut(new QKeySequence(key));
}
/**
* Sets the shortcut to the key sequence for the given key. The result will
* depend on the currently running platform. The key sequence will be based
* on the first element in the list of key bindings for the key.
*
* @param key
* The key for which to select a key sequence
*/
public final void setShortcut(QKeySequence.StandardKey key) {
setShortcut(new QKeySequence(key));
}
}