You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebindings/kdejava/koala/org/kde/koala/KDatePicker.java

177 lines
5.3 KiB

//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;
import org.kde.qt.Qt;
import org.kde.qt.QMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.QObject;
import org.kde.qt.QSize;
import java.util.Calendar;
import org.kde.qt.QEvent;
import org.kde.qt.QWidget;
import org.kde.qt.QResizeEvent;
import org.kde.qt.QFrame;
/**
Provides a widget for calendar date input.
Different from the
previous versions, it now emits two types of signals, either
dateSelected() or dateEntered() (see documentation for both
signals).
A line edit has been added in the newer versions to allow the user
to select a date directly by entering numbers like 19990101
or 990101.
\image html kdatepicker.png "KDE Date Widget"
See {@link KDatePickerSignals} for signals emitted by KDatePicker
@author Tim Gilman, Mirko Boehm
@version $Id$
@short A date selection widget.
*/
public class KDatePicker extends QFrame {
protected KDatePicker(Class dummy){super((Class) null);}
public native QMetaObject metaObject();
public native String className();
/** The usual constructor. The given date will be displayed
initially.
@short The usual constructor.
*/
public KDatePicker(QWidget parent, Calendar arg2, String name) {
super((Class) null);
newKDatePicker(parent,arg2,name);
}
private native void newKDatePicker(QWidget parent, Calendar arg2, String name);
public KDatePicker(QWidget parent, Calendar arg2) {
super((Class) null);
newKDatePicker(parent,arg2);
}
private native void newKDatePicker(QWidget parent, Calendar arg2);
public KDatePicker(QWidget parent) {
super((Class) null);
newKDatePicker(parent);
}
private native void newKDatePicker(QWidget parent);
public KDatePicker() {
super((Class) null);
newKDatePicker();
}
private native void newKDatePicker();
/** The usual constructor. The given date will be displayed
initially.
@short The usual constructor.
*/
public KDatePicker(QWidget parent, Calendar arg2, String name, int f) {
super((Class) null);
newKDatePicker(parent,arg2,name,f);
}
private native void newKDatePicker(QWidget parent, Calendar arg2, String name, int f);
/**
Standard qt widget constructor. The initial date will be the
current date.
@short Standard qt widget constructor.
*/
public KDatePicker(QWidget parent, String name) {
super((Class) null);
newKDatePicker(parent,name);
}
private native void newKDatePicker(QWidget parent, String name);
/** The size hint for date pickers. The size hint recommends the
minimum size of the widget so that all elements may be placed
without clipping. This sometimes looks ugly, so when using the
size hint, try adding 28 to each of the reported numbers of
pixels.
@short The size hint for date pickers.
*/
public native QSize sizeHint();
/**
Sets the date.
@return <code>false</code> and does not change anything
if the date given is invalid.
@short Sets the date.
*/
public native boolean setDate(Calendar arg1);
/**
@return the selected date.
@short
*/
public native Calendar date();
/**
Enables or disables the widget.
@short Enables or disables the widget.
*/
public native void setEnabled(boolean arg1);
/**
@return the KDateTable widget child of this KDatePicker
widget.
@short
*/
public native KDateTable dateTable();
/**
Sets the font size of the widgets elements.
@short Sets the font size of the widgets elements.
*/
public native void setFontSize(int arg1);
/**
Returns the font size of the widget elements.
@short Returns the font size of the widget elements.
*/
public native int fontSize();
/**
By calling this method with <code>enable</code> = true, KDatePicker will show
a little close-button in the upper button-row. Clicking the
close-button will cause the KDatePicker's topLevelWidget()'s close()
method being called. This is mostly useful for toplevel datepickers
without a window manager decoration.
@short By calling this method with <code>enable</code> = true, KDatePicker will show a little close-button in the upper button-row.
@see #hasCloseButton
*/
public native void setCloseButton(boolean enable);
/**
@return true if a KDatePicker shows a close-button.
@short
@see #setCloseButton
*/
public native boolean hasCloseButton();
public native boolean eventFilter(QObject o, QEvent e);
protected native void resizeEvent(QResizeEvent arg1);
protected native void dateChangedSlot(Calendar arg1);
protected native void tableClickedSlot();
protected native void monthForwardClicked();
protected native void monthBackwardClicked();
protected native void yearForwardClicked();
protected native void yearBackwardClicked();
/**
@short
*/
protected native void selectMonthClicked();
/**
@short
*/
protected native void selectYearClicked();
/**
@short
*/
protected native void lineEnterPressed();
/**
@short
*/
protected native void todayButtonClicked();
/**
@short
*/
protected native void weekSelected(int arg1);
/** Deletes the wrapped C++ instance */
protected native void finalize() throws InternalError;
/** Delete the wrapped C++ instance ahead of finalize() */
public native void dispose();
/** Has the wrapped C++ instance been deleted? */
public native boolean isDisposed();
}