Class DateChooserControl

  • All Implemented Interfaces:
    org.eclipse.swt.graphics.Drawable

    public class DateChooserControl
    extends org.eclipse.nebula.widgets.datechooser.DateChooserCombo
    Control for date representation.
    • Field Summary

      • Fields inherited from class org.eclipse.nebula.widgets.datechooser.DateChooserCombo

        buttonImage, footerVisible, formattedText, gridVisible, IMAGE, locale, theme, weeksVisible
      • Fields inherited from class org.eclipse.nebula.widgets.datechooser.AbstractCombo

        button, createOnDrop, filter, GTK, hasFocus, listener, popup, popupContent, showButtonOnFocus, text, WIN32
      • Fields inherited from class org.eclipse.swt.widgets.Control

        handle
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.eclipse.swt.widgets.Button createButtonControl​(int style)
      .
      protected org.eclipse.swt.widgets.Text createTextControl​(int style)
      Creates a FormattedText control.
      org.eclipse.swt.widgets.Text getTextControl()
      Returns the text control.
      void setButtonVisible​(boolean visible)
      Sets the button visibility.
      void setFormatter​(org.eclipse.nebula.widgets.formattedtext.DateTimeFormatter formatter)
      Sets the DateTimeFormatter
      • Methods inherited from class org.eclipse.nebula.widgets.datechooser.DateChooserCombo

        addKeyListener, beforeDrop, computeSize, createPopupContent, doSelection, dropDown, getGridVisible, getValue, isFooterVisible, isGridVisible, isWeeksVisible, removeKeyListener, setFooterVisible, setFormatter, setGridVisible, setGridVisible, setImage, setLocale, setTheme, setValue, setWeeksVisible
      • Methods inherited from class org.eclipse.nebula.widgets.datechooser.AbstractCombo

        addModifyListener, addSelectionListener, addVerifyListener, buttonEvent, comboEvent, contentEvent, copy, createPopup, cut, getEditable, getPopupVisible, getSelection, getShell, getStyle, getText, getTextHeight, getTextLimit, handleFocus, isDropped, isFocusControl, isShowButtonOnFocus, paste, popupEvent, redraw, redraw, removeModifyListener, removeSelectionListener, removeVerifyListener, selectAll, setBackground, setCreateOnDrop, setEditable, setEnabled, setFocus, setFont, setForeground, setLayout, setMenu, setPopupLocation, setSelection, setShowButtonOnFocus, setTextLimit, setToolTipText, setVisible, textEvent, updateButtonDisplay
      • Methods inherited from class org.eclipse.swt.widgets.Composite

        changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setLayoutDeferred, setTabList, toString
      • Methods inherited from class org.eclipse.swt.widgets.Scrollable

        computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
      • Methods inherited from class org.eclipse.swt.widgets.Control

        addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setLayoutData, setLocation, setLocation, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setTouchEnabled, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
      • Methods inherited from class org.eclipse.swt.widgets.Widget

        addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData
      • Methods inherited from interface org.eclipse.swt.graphics.Drawable

        isAutoScalable
    • Constructor Detail

      • DateChooserControl

        public DateChooserControl​(org.eclipse.swt.widgets.Composite parent,
                                  int style)
        Creates a new DateChooserControl
        Parameters:
        parent - is the parent Composite
        style - is the style
    • Method Detail

      • createButtonControl

        protected org.eclipse.swt.widgets.Button createButtonControl​(int style)
        . The button has a flat style.
        Overrides:
        createButtonControl in class org.eclipse.nebula.widgets.datechooser.DateChooserCombo
      • createTextControl

        protected org.eclipse.swt.widgets.Text createTextControl​(int style)
        Creates a FormattedText control.
        Overrides:
        createTextControl in class org.eclipse.nebula.widgets.datechooser.DateChooserCombo
      • setFormatter

        public void setFormatter​(org.eclipse.nebula.widgets.formattedtext.DateTimeFormatter formatter)
        Sets the DateTimeFormatter
        Parameters:
        formatter - is the formatter
      • setButtonVisible

        public void setButtonVisible​(boolean visible)
        Sets the button visibility.
        Parameters:
        visible - the true is to set the button visible
      • getTextControl

        public org.eclipse.swt.widgets.Text getTextControl()
        Returns the text control.
        Returns:
        the text control.