org.kde.koala

Class KDatePicker

public class KDatePicker extends 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 KDatePickerSignals for signals emitted by KDatePicker

Version: $Id: KDatePicker.java 473384 2005-10-23 14:17:09Z rdale $

Author: Tim Gilman, Mirko Boehm

UNKNOWN: A date selection widget.

Constructor Summary
protected KDatePicker(Class dummy)
KDatePicker(QWidget parent, Calendar arg2, String name)
The usual constructor.
KDatePicker(QWidget parent, Calendar arg2)
KDatePicker(QWidget parent)
KDatePicker()
KDatePicker(QWidget parent, Calendar arg2, String name, int f)
The usual constructor.
KDatePicker(QWidget parent, String name)
Standard qt widget constructor.
Method Summary
StringclassName()
Calendardate()
protected voiddateChangedSlot(Calendar arg1)
KDateTabledateTable()
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
booleaneventFilter(QObject o, QEvent e)
protected voidfinalize()
Deletes the wrapped C++ instance
intfontSize()
Returns the font size of the widget elements.
booleanhasCloseButton()
booleanisDisposed()
Has the wrapped C++ instance been deleted?
protected voidlineEnterPressed()
QMetaObjectmetaObject()
protected voidmonthBackwardClicked()
protected voidmonthForwardClicked()
protected voidresizeEvent(QResizeEvent arg1)
protected voidselectMonthClicked()
protected voidselectYearClicked()
voidsetCloseButton(boolean enable)
By calling this method with enable = true, KDatePicker will show a little close-button in the upper button-row.
booleansetDate(Calendar arg1)
Sets the date.
voidsetEnabled(boolean arg1)
Enables or disables the widget.
voidsetFontSize(int arg1)
Sets the font size of the widgets elements.
QSizesizeHint()
The size hint for date pickers.
protected voidtableClickedSlot()
protected voidtodayButtonClicked()
protected voidweekSelected(int arg1)
protected voidyearBackwardClicked()
protected voidyearForwardClicked()

Constructor Detail

KDatePicker

protected KDatePicker(Class dummy)

KDatePicker

public KDatePicker(QWidget parent, Calendar arg2, String name)
The usual constructor. The given date will be displayed initially.

UNKNOWN: The usual constructor.

KDatePicker

public KDatePicker(QWidget parent, Calendar arg2)

KDatePicker

public KDatePicker(QWidget parent)

KDatePicker

public KDatePicker()

KDatePicker

public KDatePicker(QWidget parent, Calendar arg2, String name, int f)
The usual constructor. The given date will be displayed initially.

UNKNOWN: The usual constructor.

KDatePicker

public KDatePicker(QWidget parent, String name)
Standard qt widget constructor. The initial date will be the current date.

UNKNOWN: Standard qt widget constructor.

Method Detail

className

public String className()

date

public Calendar date()

Returns: the selected date.

UNKNOWN:

dateChangedSlot

protected void dateChangedSlot(Calendar arg1)

dateTable

public KDateTable dateTable()

Returns: the KDateTable widget child of this KDatePicker widget.

UNKNOWN:

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

eventFilter

public boolean eventFilter(QObject o, QEvent e)

finalize

protected void finalize()
Deletes the wrapped C++ instance

fontSize

public int fontSize()
Returns the font size of the widget elements.

UNKNOWN: Returns the font size of the widget elements.

hasCloseButton

public boolean hasCloseButton()

Returns: true if a KDatePicker shows a close-button.

See Also: KDatePicker

UNKNOWN:

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

lineEnterPressed

protected void lineEnterPressed()

UNKNOWN:

metaObject

public QMetaObject metaObject()

monthBackwardClicked

protected void monthBackwardClicked()

monthForwardClicked

protected void monthForwardClicked()

resizeEvent

protected void resizeEvent(QResizeEvent arg1)

selectMonthClicked

protected void selectMonthClicked()

UNKNOWN:

selectYearClicked

protected void selectYearClicked()

UNKNOWN:

setCloseButton

public void setCloseButton(boolean enable)
By calling this method with enable = 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.

See Also: KDatePicker

UNKNOWN: By calling this method with enable = true, KDatePicker will show a little close-button in the upper button-row.

setDate

public boolean setDate(Calendar arg1)
Sets the date.

Returns: false and does not change anything if the date given is invalid.

UNKNOWN: Sets the date.

setEnabled

public void setEnabled(boolean arg1)
Enables or disables the widget.

UNKNOWN: Enables or disables the widget.

setFontSize

public void setFontSize(int arg1)
Sets the font size of the widgets elements.

UNKNOWN: Sets the font size of the widgets elements.

sizeHint

public QSize sizeHint()
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.

UNKNOWN: The size hint for date pickers.

tableClickedSlot

protected void tableClickedSlot()

todayButtonClicked

protected void todayButtonClicked()

UNKNOWN:

weekSelected

protected void weekSelected(int arg1)

UNKNOWN:

yearBackwardClicked

protected void yearBackwardClicked()

yearForwardClicked

protected void yearForwardClicked()