Class DateChooserControl
- java.lang.Object
-
- org.eclipse.swt.widgets.Widget
-
- org.eclipse.swt.widgets.Control
-
- org.eclipse.swt.widgets.Scrollable
-
- org.eclipse.swt.widgets.Composite
-
- org.eclipse.nebula.widgets.datechooser.AbstractCombo
-
- org.eclipse.nebula.widgets.datechooser.DateChooserCombo
-
- com._1c.g5.v8.dt.common.ui.controls.DateChooserControl
-
- All Implemented Interfaces:
org.eclipse.swt.graphics.Drawable
public class DateChooserControl extends org.eclipse.nebula.widgets.datechooser.DateChooserComboControl for date representation.
-
-
Field Summary
-
Fields inherited from class org.eclipse.nebula.widgets.datechooser.DateChooserCombo
buttonImage, footerVisible, formattedText, gridVisible, IMAGE, locale, theme, weeksVisible
-
-
Constructor Summary
Constructors Constructor Description DateChooserControl(org.eclipse.swt.widgets.Composite parent, int style)Creates a newDateChooserControl
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.swt.widgets.ButtoncreateButtonControl(int style).protected org.eclipse.swt.widgets.TextcreateTextControl(int style)Creates aFormattedTextcontrol.org.eclipse.swt.widgets.TextgetTextControl()Returns the text control.voidsetButtonVisible(boolean visible)Sets the button visibility.voidsetFormatter(org.eclipse.nebula.widgets.formattedtext.DateTimeFormatter formatter)Sets theDateTimeFormatter-
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
-
-
-
-
Constructor Detail
-
DateChooserControl
public DateChooserControl(org.eclipse.swt.widgets.Composite parent, int style)Creates a newDateChooserControl- Parameters:
parent- is the parentCompositestyle- is the style
-
-
Method Detail
-
createButtonControl
protected org.eclipse.swt.widgets.Button createButtonControl(int style)
. The button has a flat style.- Overrides:
createButtonControlin classorg.eclipse.nebula.widgets.datechooser.DateChooserCombo
-
createTextControl
protected org.eclipse.swt.widgets.Text createTextControl(int style)
Creates aFormattedTextcontrol.- Overrides:
createTextControlin classorg.eclipse.nebula.widgets.datechooser.DateChooserCombo
-
setFormatter
public void setFormatter(org.eclipse.nebula.widgets.formattedtext.DateTimeFormatter formatter)
Sets theDateTimeFormatter- Parameters:
formatter- is the formatter
-
setButtonVisible
public void setButtonVisible(boolean visible)
Sets the button visibility.- Parameters:
visible- thetrueis to set the button visible
-
getTextControl
public org.eclipse.swt.widgets.Text getTextControl()
Returns the text control.- Returns:
- the text control.
-
-