|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc für Elexis version 2.1.7.dev vom 01.09.2013 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
com.tiff.common.ui.datepicker.DatePickerCombo
public final class DatePickerCombo
The combo widget with drop-down date-picker panel. changes by jense128 (Laurent Dutheil) * combo box is now smaller than the calendar widget changes by gis (Carsten Pfeiffer) * fixed focus handling as described in bug 1187304 changes by andyglow + added method setEnabled to properly manage state of control changes by sebthom * declared package accessible methods as private * declared getEditable() as public + added useSingleMouseClickToCommit behaviour + manually modifying the date in the text field is reflected in the date picker + setDate(null) clears the date. + added getText & setText()
Field Summary |
---|
Fields inherited from class org.eclipse.swt.widgets.Control |
---|
view |
Constructor Summary | |
---|---|
DatePickerCombo(org.eclipse.swt.widgets.Composite parent,
int style)
Creates a new DatePickerCombo object. |
Method Summary | |
---|---|
void |
addModifyListener(org.eclipse.swt.events.ModifyListener listener)
Adds the listener to receive events. |
void |
addSelectionListener(org.eclipse.swt.events.SelectionListener listener)
Adds the listener to receive events. |
static int |
checkStyle(int style)
Style cheking |
void |
clearSelection()
Clears the current selection. |
org.eclipse.swt.graphics.Point |
computeSize(int wHint,
int hHint,
boolean changed)
|
org.eclipse.swt.widgets.Control[] |
getChildren()
|
java.util.Date |
getDate()
|
boolean |
getEditable()
|
protected java.text.DateFormat |
getFormat()
Return current DateFormat used to format/parse control content |
java.lang.String |
getText()
|
int |
getTextHeight()
Returns the height of Text widget |
boolean |
isApplyCellEditorFix()
|
boolean |
isClosePopupWithSingleMouseClick()
determines if you need to double click a date in the expanded calender control to hide it default is false meaning you have to double click a date |
boolean |
isFocusControl()
Retirns true if control is in focus |
void |
redraw(int x,
int y,
int width,
int height,
boolean all)
Drawing stuff |
void |
removeModifyListener(org.eclipse.swt.events.ModifyListener listener)
Removes the listener. |
void |
removeSelectionListener(org.eclipse.swt.events.SelectionListener listener)
Removes the listener. |
void |
setApplyCellEditorFix(boolean applyCellEditorFix)
|
void |
setBackground(org.eclipse.swt.graphics.Color color)
Set up background of control |
void |
setClosePopupWithSingleMouseClick(boolean isClosePopupWithSingleMouseClick)
set if you need to double click a date in the expanded calender control to hide it default is false meaning you have to double click a date |
void |
setDate(java.util.Date date)
Set up the date of control |
void |
setEnabled(boolean enabled)
Enable/disable widget |
boolean |
setFocus()
Set the focus to control |
void |
setFont(org.eclipse.swt.graphics.Font font)
DOCUMENT ME! |
void |
setForeground(org.eclipse.swt.graphics.Color color)
Set up the control foreground color |
void |
setFormat(java.text.DateFormat format)
Set DateFormat object, which is parser/formatter of control's content |
void |
setSelection(org.eclipse.swt.graphics.Point selection)
Sets the new selection. |
void |
setText(java.lang.String txt)
Deprecated. use setDate(date) instead |
void |
setTextLimit(int limit)
Sets the text limit |
void |
setToolTipText(java.lang.String string)
Set up control tool-tip |
void |
setVisible(boolean visible)
Set up visibility of control |
Methods inherited from class org.eclipse.swt.widgets.Composite |
---|
changed, checkSubclass, drawBackground, getBackgroundMode, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setLayout, setLayoutDeferred, setTabList |
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, addKeyListener, 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, getShell, getSize, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, 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, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DatePickerCombo(org.eclipse.swt.widgets.Composite parent, int style)
parent
- parent Compositestyle
- SWT styleMethod Detail |
---|
public static int checkStyle(int style)
style
- STT style
public void addModifyListener(org.eclipse.swt.events.ModifyListener listener)
listener
- the listener
org.eclipse.swt.SWTError
- (ERROR_THREAD_INVALID_ACCESS) when called from the wrong thread
org.eclipse.swt.SWTError
- (ERROR_WIDGET_DISPOSED) when the widget has been disposed
org.eclipse.swt.SWTError
- (ERROR_NULL_ARGUMENT) when listener is nullModifyListener
,
removeModifyListener(ModifyListener)
public void addSelectionListener(org.eclipse.swt.events.SelectionListener listener)
listener
- the listener
org.eclipse.swt.SWTError
- (ERROR_THREAD_INVALID_ACCESS) when called from the wrong thread
org.eclipse.swt.SWTError
- (ERROR_WIDGET_DISPOSED) when the widget has been disposed
org.eclipse.swt.SWTError
- (ERROR_NULL_ARGUMENT) when listener is nullSelectionListener
,
removeSelectionListener(SelectionListener)
public void clearSelection()
org.eclipse.swt.SWTError
- (ERROR_THREAD_INVALID_ACCESS) when called from the wrong thread
org.eclipse.swt.SWTError
- (ERROR_WIDGET_DISPOSED) when the widget has been disposedpublic org.eclipse.swt.graphics.Point computeSize(int wHint, int hHint, boolean changed)
computeSize
in class org.eclipse.swt.widgets.Composite
public org.eclipse.swt.widgets.Control[] getChildren()
getChildren
in class org.eclipse.swt.widgets.Composite
public java.util.Date getDate()
public boolean getEditable()
protected java.text.DateFormat getFormat()
public java.lang.String getText()
public int getTextHeight()
public boolean isClosePopupWithSingleMouseClick()
public boolean isFocusControl()
isFocusControl
in class org.eclipse.swt.widgets.Control
public void redraw(int x, int y, int width, int height, boolean all)
redraw
in class org.eclipse.swt.widgets.Control
x
- xy
- ywidth
- widthheight
- heightall
- must we redraw all of controls?public void removeModifyListener(org.eclipse.swt.events.ModifyListener listener)
listener
- the listener
org.eclipse.swt.SWTError
- (ERROR_THREAD_INVALID_ACCESS) when called from the wrong thread
org.eclipse.swt.SWTError
- (ERROR_WIDGET_DISPOSED) when the widget has been disposed
org.eclipse.swt.SWTError
- (ERROR_NULL_ARGUMENT) when listener is nullModifyListener
,
addModifyListener(ModifyListener)
public void removeSelectionListener(org.eclipse.swt.events.SelectionListener listener)
listener
- the listener
org.eclipse.swt.SWTError
- (ERROR_THREAD_INVALID_ACCESS) when called from the wrong thread
org.eclipse.swt.SWTError
- (ERROR_WIDGET_DISPOSED) when the widget has been disposed
org.eclipse.swt.SWTError
- (ERROR_NULL_ARGUMENT) when listener is nullSelectionListener
,
addSelectionListener(SelectionListener)
public void setBackground(org.eclipse.swt.graphics.Color color)
setBackground
in class org.eclipse.swt.widgets.Control
color
- background colorpublic void setClosePopupWithSingleMouseClick(boolean isClosePopupWithSingleMouseClick)
isClosePopupWithSingleMouseClick
- public void setDate(java.util.Date date)
date
- Datepublic void setEnabled(boolean enabled)
setEnabled
in class org.eclipse.swt.widgets.Control
enabled
- public boolean setFocus()
setFocus
in class org.eclipse.swt.widgets.Composite
public void setFont(org.eclipse.swt.graphics.Font font)
setFont
in class org.eclipse.swt.widgets.Control
font
- DOCUMENT ME!public void setForeground(org.eclipse.swt.graphics.Color color)
setForeground
in class org.eclipse.swt.widgets.Control
color
- Foreground colorpublic void setFormat(java.text.DateFormat format)
format
- public void setSelection(org.eclipse.swt.graphics.Point selection)
selection
- point representing the start and the end of the new selection
org.eclipse.swt.SWTError
- (ERROR_THREAD_INVALID_ACCESS) when called from the wrong thread
org.eclipse.swt.SWTError
- (ERROR_WIDGET_DISPOSED) when the widget has been disposed
org.eclipse.swt.SWTError
- (ERROR_NULL_ARGUMENT) when selection is nullpublic void setText(java.lang.String txt)
txt
- text representation of Datepublic void setTextLimit(int limit)
limit
- new text limit
org.eclipse.swt.SWTError
- (ERROR_THREAD_INVALID_ACCESS) when called from the wrong thread
org.eclipse.swt.SWTError
- (ERROR_WIDGET_DISPOSED) when the widget has been disposed
org.eclipse.swt.SWTError
- (ERROR_CANNOT_BE_ZERO) when limit is 0public void setToolTipText(java.lang.String string)
setToolTipText
in class org.eclipse.swt.widgets.Control
string
- Text of tool-tippublic void setVisible(boolean visible)
setVisible
in class org.eclipse.swt.widgets.Control
visible
- visibility statepublic boolean isApplyCellEditorFix()
public void setApplyCellEditorFix(boolean applyCellEditorFix)
applyCellEditorFix
- The applyCellEditorFix to set.
|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc für Elexis version 2.1.7.dev vom 01.09.2013 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |