qx.ui.component
Class DateChooserButton

java.lang.Object
  extended by qx.core.Object
      extended by qx.core.Target
          extended by qx.ui.core.Widget
              extended by qx.ui.core.Parent
                  extended by qx.ui.layout.BoxLayout
                      extended by qx.ui.basic.Atom
                          extended by qx.ui.form.Button
                              extended by qx.ui.component.DateChooserButton

public class DateChooserButton
extends Button

A date chooser button widget which can be associated to a widget where the date value is synchronized whith the selected date.


Field Summary
 
Fields inherited from class qx.ui.core.Widget
AUTO
 
Constructor Summary
DateChooserButton()
           
DateChooserButton(Widget vTargetWidget)
           
DateChooserButton(Widget vTargetWidget, java.lang.String vChooserTitle)
           
DateChooserButton(Widget vTargetWidget, java.lang.String vChooserTitle, java.lang.String vButtonLabel)
           
DateChooserButton(Widget vTargetWidget, java.lang.String vChooserTitle, java.lang.String vButtonLabel, java.lang.String vIcon)
           
DateChooserButton(Widget vTargetWidget, java.lang.String vChooserTitle, java.lang.String vButtonLabel, java.lang.String vIcon, java.lang.String vIconWidth)
           
DateChooserButton(Widget vTargetWidget, java.lang.String vChooserTitle, java.lang.String vButtonLabel, java.lang.String vIcon, java.lang.String vIconWidth, java.lang.String vIconHeight)
           
DateChooserButton(Widget vTargetWidget, java.lang.String vChooserTitle, java.lang.String vButtonLabel, java.lang.String vIcon, java.lang.String vIconWidth, java.lang.String vIconHeight, java.lang.String vFlash)
           
 
Method Summary
 boolean _applyDateFormatSize(java.lang.Object value, java.lang.Object old)
          Modifier for property dateFormatSize.
 boolean _applyTargetWidget(java.lang.Object value, java.lang.Object old)
          Modifier for property targetWidget.
 void _changeLocale(java.lang.String dateFormatSize)
          Change the date format to the current locale with the given size
 void _changeLocaleHandler(Event e)
          Handle locale changes.
 void _chooserSelectHandler(Event e)
          Event handler for the date chooser select event.
 void _chooserWindowAppearHandler(Event e)
          Event handler for chooser window appear event.
 void _chooserWindowKeydownHandler(Event e)
          Event handler for keydown events of the chooser window.
 void _createChooser()
          Create the date chooser
 void _createChooserWindow()
          Create the popup window with for the date chooser and add the date chooser to it.
 void _executeHandler(Event e)
          Event hanlder for the execute event of the date chooser button.
 java.lang.Object getChooserTitle()
          Returns the (computed) value of the property chooserTitle.
 java.lang.Object getDateFormatSize()
          Returns the (computed) value of the property dateFormatSize.
 Widget getTargetWidget()
          Returns the (computed) value of the property targetWidget.
 void initChooserTitle(java.lang.Object arg)
          Calls the apply method and dispatches the change event of the property chooserTitle with the default value defined by the class developer.
 void initDateFormatSize(java.lang.Object arg)
          Calls the apply method and dispatches the change event of the property dateFormatSize with the default value defined by the class developer.
 void initTargetWidget(Widget arg)
          Calls the apply method and dispatches the change event of the property targetWidget with the default value defined by the class developer.
 void resetChooserTitle()
          Resets the user value of the property chooserTitle.
 void resetDateFormatSize()
          Resets the user value of the property dateFormatSize.
 void resetTargetWidget()
          Resets the user value of the property targetWidget.
 void setChooserTitle(java.lang.Object arg)
          Sets the user value of the property chooserTitle.
 void setDateFormatSize(java.lang.Object arg)
          Sets the user value of the property dateFormatSize.
 void setTargetWidget(Widget arg)
          Sets the user value of the property targetWidget.
 
Methods inherited from class qx.ui.form.Button
_onkeydown, _onkeyup, _onmousedown, _onmouseout, _onmouseover, _onmouseup
 
Methods inherited from class qx.ui.basic.Atom
_applyDisabledIcon, _applyIcon, _applyIconHeight, _applyIconPosition, _applyIconWidth, _applyLabel, _applyShow, _createIcon, _createLabel, _handleIcon, _handleLabel, _updateIcon, getDisabledIcon, getIcon, getIconHeight, getIconObject, getIconPosition, getIconWidth, getLabel, getLabelObject, getShow, initDisabledIcon, initIcon, initIconHeight, initIconPosition, initIconWidth, initLabel, initShow, resetDisabledIcon, resetIcon, resetIconHeight, resetIconPosition, resetIconWidth, resetLabel, resetShow, setDisabledIcon, setIcon, setIconHeight, setIconPosition, setIconWidth, setLabel, setShow
 
Methods inherited from class qx.ui.layout.BoxLayout
_applyHorizontalChildrenAlign, _applyOrientation, _applyReverseChildrenOrder, _applySpacing, _applyStretchChildrenOrthogonalAxis, _applyUseAdvancedFlexAllocation, _applyVerticalChildrenAlign, _computeAccumulatedChildrenOuterHeight, _computeAccumulatedChildrenOuterWidth, _createLayoutImpl, _doLayout, _doLayoutOrder, _invalidateLayoutMode, _recomputeChildrenStretchingX, _recomputeChildrenStretchingY, _updateLayoutMode, getHorizontalChildrenAlign, getLayoutMode, getOrientation, getReverseChildrenOrder, getSpacing, getStretchChildrenOrthogonalAxis, getUseAdvancedFlexAllocation, getVerticalChildrenAlign, initHorizontalChildrenAlign, initOrientation, initReverseChildrenOrder, initSpacing, initStretchChildrenOrthogonalAxis, initUseAdvancedFlexAllocation, initVerticalChildrenAlign, isHorizontal, isReverseChildrenOrder, isStretchChildrenOrthogonalAxis, isUseAdvancedFlexAllocation, isVertical, resetHorizontalChildrenAlign, resetOrientation, resetReverseChildrenOrder, resetSpacing, resetStretchChildrenOrthogonalAxis, resetUseAdvancedFlexAllocation, resetVerticalChildrenAlign, setHorizontalChildrenAlign, setOrientation, setReverseChildrenOrder, setSpacing, setStretchChildrenOrthogonalAxis, setUseAdvancedFlexAllocation, setVerticalChildrenAlign, toggleReverseChildrenOrder, toggleStretchChildrenOrthogonalAxis, toggleUseAdvancedFlexAllocation
 
Methods inherited from class qx.ui.core.Parent
_addChildrenToLayoutQueue, _addChildrenToStateQueue, _addChildToChildrenQueue, _afterAppear, _afterDisappear, _afterInsertDom, _afterRemoveDom, _applyActiveChild, _applyFocusedChild, _applyFocusHandler, _beforeAppear, _beforeDisappear, _beforeInsertDom, _beforeRemoveDom, _changeInnerHeight, _changeInnerWidth, _computePreferredInnerHeight, _computePreferredInnerWidth, _computeVisibleChildren, _flushChildrenQueue, _handleDisplayableCustom, _layoutChild, _layoutPost, _onfocuskeyevent, _recursiveAppearanceThemeUpdate, _removeChildFromChildrenQueue, activateFocusRoot, add, addAfter, addAt, addAtBegin, addAtEnd, addBefore, contains, forEachChild, forEachVisibleChild, getActiveChild, getChildren, getChildrenLength, getFirstActiveChild, getFirstChild, getFirstVisibleChild, getFocusedChild, getFocusHandler, getFocusRoot, getInnerHeightForChild, getInnerWidthForChild, getLastActiveChild, getLastChild, getLastVisibleChild, getLayoutImpl, getVisibleChildrenLength, hasChildren, hasVisibleChildren, indexOf, initActiveChild, initFocusedChild, initFocusHandler, isEmpty, isFocusRoot, isVisibleEmpty, recursiveAddToStateQueue, remapChildrenHandlingTo, remove, removeAll, removeAt, resetActiveChild, resetFocusedChild, resetFocusHandler, setActiveChild, setFocusedChild, setFocusHandler
 
Methods inherited from class qx.ui.core.Widget
_applyAppearance, _applyBackgroundColor, _applyBackgroundImage, _applyBackgroundRepeat, _applyBorder, _applyBottom, _applyCapture, _applyClip, _applyCommand, _applyCursor, _applyDisplay, _applyElement, _applyElementData, _applyEnabled, _applyFocused, _applyFont, _applyHeight, _applyHideFocus, _applyHtmlAttributes, _applyHtmlProperties, _applyLeft, _applyMarginBottom, _applyMarginLeft, _applyMarginRight, _applyMarginTop, _applyMaxHeight, _applyMaxWidth, _applyMinHeight, _applyMinWidth, _applyOpacity, _applyOverflow, _applyPaddingBottom, _applyPaddingLeft, _applyPaddingRight, _applyPaddingTop, _applyParent, _applyRight, _applySelectable, _applyStateStyleFocus, _applyStyleProperties, _applyTabIndex, _applyTextColor, _applyTop, _applyVisibility, _applyWidth, _applyZIndex, _checkParent, _compileClipString, _computeBoxHeight, _computeBoxHeightFallback, _computeBoxWidth, _computeBoxWidthFallback, _computeDisplayable, _computeFrameHeight, _computeFrameWidth, _computeHasAutoX, _computeHasAutoY, _computeHasFlexX, _computeHasFlexY, _computeHasPercentX, _computeHasPercentY, _computeInnerHeight, _computeInnerWidth, _computeOuterHeight, _computeOuterWidth, _computePreferredBoxHeight, _computePreferredBoxWidth, _computeValuePercentX, _computeValuePercentXLimit, _computeValuePercentY, _computeValuePercentYLimit, _computeValuePixel, _computeValuePixelLimit, _createElementImpl, _evalUnitsPixelPercent, _evalUnitsPixelPercentAuto, _evalUnitsPixelPercentAutoFlex, _flushJobQueue, _generateHtmlId, _getTargetNode, _handleDisplayable, _invalidateFrameDimensions, _invalidatePreferredInnerDimensions, _queueBorder, _recomputeFlexX, _recomputeFlexY, _recomputePercentX, _recomputePercentY, _recomputeRangeX, _recomputeRangeY, _recomputeStretchingX, _recomputeStretchingY, _renderAppearance, _renderOverflow, _resetAppearanceThemeWrapper, _styleBackgroundColor, _styleBackgroundImage, _styleFromMap, _unitDetectionPixelPercent, _unitDetectionPixelPercentAuto, _unitDetectionPixelPercentAutoFlex, _unstyleFromArray, _visualizeBlur, _visualizeFocus, _visualPropertyCheck, addState, addToDocument, addToJobQueue, addToLayoutChanges, addToQueue, addToQueueRuntime, addToStateQueue, auto, blur, connect, contains, disconnect, execute, focus, getAllowStretchX, getAllowStretchY, getAnonymous, getAppearance, getBackgroundColor, getBackgroundImage, getBackgroundRepeat, getBorder, getBottom, getBottomValue, getCapture, getClientHeight, getClientWidth, getClipHeight, getClipLeft, getClipTop, getClipWidth, getCommand, getContextMenu, getCursor, getDisplay, getDropDataTypes, getElement, getEnabled, getEnableElementFocus, getFocused, getFont, getHeight, getHeightValue, getHideFocus, getHorizontalAlign, getHtmlAttribute, getHtmlProperty, getLeft, getLeftValue, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getMaxHeight, getMaxHeightValue, getMaxWidth, getMaxWidthValue, getMinHeight, getMinHeightValue, getMinWidth, getMinWidthValue, getNeededHeight, getNeededWidth, getNextActiveSibling, getNextSibling, getNextVisibleSibling, getOffsetHeight, getOffsetLeft, getOffsetTop, getOffsetWidth, getOpacity, getOverflow, getOverflowX, getOverflowY, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getParent, getPreviousActiveSibling, getPreviousSibling, getPreviousVisibleSibling, getRight, getRightValue, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getSelectable, getStyleProperty, getSupportsDropMethod, getTabIndex, getTextColor, getToolTip, getTop, getTopLevelWidget, getTopValue, getVerticalAlign, getVisibility, getVisibleChildren, getWidth, getWidthValue, getZIndex, hasState, hide, indexOf, initAllowStretchX, initAllowStretchY, initAnonymous, initAppearance, initBackgroundColor, initBackgroundImage, initBackgroundRepeat, initBorder, initBottom, initCapture, initClipHeight, initClipLeft, initClipTop, initClipWidth, initCommand, initContextMenu, initCursor, initDisplay, initDropDataTypes, initElement, initEnabled, initEnableElementFocus, initFocused, initFont, initHeight, initHideFocus, initHorizontalAlign, initLeft, initMarginBottom, initMarginLeft, initMarginRight, initMarginTop, initMaxHeight, initMaxWidth, initMinHeight, initMinWidth, initOpacity, initOverflow, initPaddingBottom, initPaddingLeft, initPaddingRight, initPaddingTop, initParent, initRight, initSelectable, initSupportsDropMethod, initTabIndex, initTextColor, initToolTip, initTop, initVerticalAlign, initVisibility, initWidth, initZIndex, isAllowStretchX, isAllowStretchY, isAnonymous, isAppearRelevant, isCapture, isCreated, isDisplay, isDisplayable, isEnabled, isEnableElementFocus, isFirstChild, isFirstVisibleChild, isFocusable, isFocused, isHideFocus, isLastChild, isLastVisibleChild, isMaterialized, isSeeable, isSelectable, isVisibility, moveSelfAfter, moveSelfBefore, moveSelfToBegin, moveSelfToEnd, pack, removeHtmlAttribute, removeHtmlProperty, removeState, removeStyleProperty, renderPadding, resetAlign, resetAllowStretchX, resetAllowStretchY, resetAnonymous, resetAppearance, resetBackgroundColor, resetBackgroundImage, resetBackgroundRepeat, resetBorder, resetBottom, resetCapture, resetClip, resetClipDimension, resetClipHeight, resetClipLeft, resetClipLocation, resetClipTop, resetClipWidth, resetCommand, resetContextMenu, resetCursor, resetDimension, resetDisplay, resetDropDataTypes, resetEdge, resetElement, resetEnabled, resetEnableElementFocus, resetFocused, resetFont, resetHeight, resetHeights, resetHideFocus, resetHorizontalAlign, resetLeft, resetLocation, resetMargin, resetMarginBottom, resetMarginLeft, resetMarginRight, resetMarginTop, resetMaxHeight, resetMaxWidth, resetMinHeight, resetMinWidth, resetOpacity, resetOverflow, resetPadding, resetPaddingBottom, resetPaddingLeft, resetPaddingRight, resetPaddingTop, resetParent, resetRight, resetSelectable, resetSpace, resetSupportsDropMethod, resetTabIndex, resetTextColor, resetToolTip, resetTop, resetVerticalAlign, resetVisibility, resetWidth, resetWidths, resetZIndex, scrollIntoView, scrollIntoViewX, scrollIntoViewY, setAlign, setAllowStretchX, setAllowStretchY, setAnonymous, setAppearance, setBackgroundColor, setBackgroundImage, setBackgroundRepeat, setBorder, setBottom, setCapture, setClip, setClipDimension, setClipHeight, setClipLeft, setClipLocation, setClipTop, setClipWidth, setCommand, setContextMenu, setCursor, setDimension, setDisplay, setDropDataTypes, setEdge, setElement, setEnabled, setEnableElementFocus, setFocused, setFont, setHeight, setHeights, setHideFocus, setHorizontalAlign, setHtmlAttribute, setHtmlProperty, setLeft, setLocation, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOpacity, setOverflow, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setParent, setRight, setScrollLeft, setScrollTop, setSelectable, setSpace, setStyleProperty, setSupportsDropMethod, setTabIndex, setTextColor, setToolTip, setTop, setVerticalAlign, setVisibility, setWidth, setWidths, setZIndex, show, supportsDrop, toggleAllowStretchX, toggleAllowStretchY, toggleAnonymous, toggleCapture, toggleDisplay, toggleEnabled, toggleEnableElementFocus, toggleFocused, toggleHideFocus, toggleSelectable, toggleVisibility
 
Methods inherited from class qx.core.Target
_dispatchEvent, addChangeSelectionListener, addChangeValueListener, addEventListener, addExecuteListener, addJavaEventListener, createDispatchChangeEvent, createDispatchDataEvent, createDispatchEvent, dispatchEvent, hasEventListeners, removeEventListener
 
Methods inherited from class qx.core.Object
_disposeFields, _disposeObjectDeep, _disposeObjects, base, dispose, get, getDisposed, isDisposed, reset, self, set, toHashCode, toString_
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateChooserButton

public DateChooserButton()

DateChooserButton

public DateChooserButton(Widget vTargetWidget)

DateChooserButton

public DateChooserButton(Widget vTargetWidget,
                         java.lang.String vChooserTitle)

DateChooserButton

public DateChooserButton(Widget vTargetWidget,
                         java.lang.String vChooserTitle,
                         java.lang.String vButtonLabel)

DateChooserButton

public DateChooserButton(Widget vTargetWidget,
                         java.lang.String vChooserTitle,
                         java.lang.String vButtonLabel,
                         java.lang.String vIcon)

DateChooserButton

public DateChooserButton(Widget vTargetWidget,
                         java.lang.String vChooserTitle,
                         java.lang.String vButtonLabel,
                         java.lang.String vIcon,
                         java.lang.String vIconWidth)

DateChooserButton

public DateChooserButton(Widget vTargetWidget,
                         java.lang.String vChooserTitle,
                         java.lang.String vButtonLabel,
                         java.lang.String vIcon,
                         java.lang.String vIconWidth,
                         java.lang.String vIconHeight)

DateChooserButton

public DateChooserButton(Widget vTargetWidget,
                         java.lang.String vChooserTitle,
                         java.lang.String vButtonLabel,
                         java.lang.String vIcon,
                         java.lang.String vIconWidth,
                         java.lang.String vIconHeight,
                         java.lang.String vFlash)
Method Detail

_applyDateFormatSize

public boolean _applyDateFormatSize(java.lang.Object value,
                                    java.lang.Object old)

Modifier for property dateFormatSize.


_applyTargetWidget

public boolean _applyTargetWidget(java.lang.Object value,
                                  java.lang.Object old)

Modifier for property targetWidget.


_changeLocale

public void _changeLocale(java.lang.String dateFormatSize)

Change the date format to the current locale with the given size


_changeLocaleHandler

public void _changeLocaleHandler(Event e)

Handle locale changes. Update the date format of the target widget.


_chooserSelectHandler

public void _chooserSelectHandler(Event e)

Event handler for the date chooser select event. Formats the selected date as string and sets the target widgets value.


_chooserWindowAppearHandler

public void _chooserWindowAppearHandler(Event e)

Event handler for chooser window appear event. Positions the window above the target widget.


_chooserWindowKeydownHandler

public void _chooserWindowKeydownHandler(Event e)

Event handler for keydown events of the chooser window. Closes the window on hitting the ‘Escape’ key.


_createChooser

public void _createChooser()

Create the date chooser


_createChooserWindow

public void _createChooserWindow()

Create the popup window with for the date chooser and add the date chooser to it.


_executeHandler

public void _executeHandler(Event e)

Event hanlder for the execute event of the date chooser button.


getChooserTitle

public java.lang.Object getChooserTitle()

Returns the (computed) value of the property chooserTitle.

For further details take a look at the property definition: chooserTitle.


getDateFormatSize

public java.lang.Object getDateFormatSize()

Returns the (computed) value of the property dateFormatSize.

For further details take a look at the property definition: dateFormatSize.


getTargetWidget

public Widget getTargetWidget()

Returns the (computed) value of the property targetWidget.

For further details take a look at the property definition: targetWidget.


initChooserTitle

public void initChooserTitle(java.lang.Object arg)

Calls the apply method and dispatches the change event of the property chooserTitle with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: chooserTitle.


initDateFormatSize

public void initDateFormatSize(java.lang.Object arg)

Calls the apply method and dispatches the change event of the property dateFormatSize with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: dateFormatSize.


initTargetWidget

public void initTargetWidget(Widget arg)

Calls the apply method and dispatches the change event of the property targetWidget with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: targetWidget.


resetChooserTitle

public void resetChooserTitle()

Resets the user value of the property chooserTitle.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: chooserTitle.


resetDateFormatSize

public void resetDateFormatSize()

Resets the user value of the property dateFormatSize.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: dateFormatSize.


resetTargetWidget

public void resetTargetWidget()

Resets the user value of the property targetWidget.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: targetWidget.


setChooserTitle

public void setChooserTitle(java.lang.Object arg)

Sets the user value of the property chooserTitle.

For further details take a look at the property definition: chooserTitle.


setDateFormatSize

public void setDateFormatSize(java.lang.Object arg)

Sets the user value of the property dateFormatSize.

For further details take a look at the property definition: dateFormatSize.


setTargetWidget

public void setTargetWidget(Widget arg)

Sets the user value of the property targetWidget.

For further details take a look at the property definition: targetWidget.



Copyright © 2008 1&1. All Rights Reserved.