| 
Elexis API documentation as of September 4 2011 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectComposite
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()
| Constructor Summary | |
|---|---|
DatePickerCombo(Composite parent,
                int style)
Creates a new DatePickerCombo object.  | 
|
| Method Summary | |
|---|---|
 void | 
addModifyListener(ModifyListener listener)
Adds the listener to receive events.  | 
 void | 
addSelectionListener(SelectionListener listener)
Adds the listener to receive events.  | 
static int | 
checkStyle(int style)
Style cheking  | 
 void | 
clearSelection()
Clears the current selection.  | 
 Point | 
computeSize(int wHint,
            int hHint,
            boolean changed)
 | 
 Control[] | 
getChildren()
 | 
 java.util.Date | 
getDate()
 | 
 boolean | 
getEditable()
 | 
 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(ModifyListener listener)
Removes the listener.  | 
 void | 
removeSelectionListener(SelectionListener listener)
Removes the listener.  | 
 void | 
setApplyCellEditorFix(boolean applyCellEditorFix)
 | 
 void | 
setBackground(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(Font font)
DOCUMENT ME!  | 
 void | 
setForeground(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(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 java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public DatePickerCombo(Composite parent,
                       int style)
parent - parent Compositestyle - SWT style| Method Detail | 
|---|
public static int checkStyle(int style)
style - STT style
public void addModifyListener(ModifyListener listener)
listener - the listener
SWTError - (ERROR_THREAD_INVALID_ACCESS) when called from the wrong thread
SWTError - (ERROR_WIDGET_DISPOSED) when the widget has been disposed
SWTError - (ERROR_NULL_ARGUMENT) when listener is nullModifyListener, 
removeModifyListener(ModifyListener)public void addSelectionListener(SelectionListener listener)
listener - the listener
SWTError - (ERROR_THREAD_INVALID_ACCESS) when called from the wrong thread
SWTError - (ERROR_WIDGET_DISPOSED) when the widget has been disposed
SWTError - (ERROR_NULL_ARGUMENT) when listener is nullSelectionListener, 
removeSelectionListener(SelectionListener)public void clearSelection()
SWTError - (ERROR_THREAD_INVALID_ACCESS) when called from the wrong thread
SWTError - (ERROR_WIDGET_DISPOSED) when the widget has been disposed
public Point computeSize(int wHint,
                         int hHint,
                         boolean changed)
public Control[] getChildren()
public java.util.Date getDate()
public boolean getEditable()
public java.lang.String getText()
public int getTextHeight()
public boolean isClosePopupWithSingleMouseClick()
public boolean isFocusControl()
public void redraw(int x,
                   int y,
                   int width,
                   int height,
                   boolean all)
x - xy - ywidth - widthheight - heightall - must we redraw all of controls?public void removeModifyListener(ModifyListener listener)
listener - the listener
SWTError - (ERROR_THREAD_INVALID_ACCESS) when called from the wrong thread
SWTError - (ERROR_WIDGET_DISPOSED) when the widget has been disposed
SWTError - (ERROR_NULL_ARGUMENT) when listener is nullModifyListener, 
addModifyListener(ModifyListener)public void removeSelectionListener(SelectionListener listener)
listener - the listener
SWTError - (ERROR_THREAD_INVALID_ACCESS) when called from the wrong thread
SWTError - (ERROR_WIDGET_DISPOSED) when the widget has been disposed
SWTError - (ERROR_NULL_ARGUMENT) when listener is nullSelectionListener, 
addSelectionListener(SelectionListener)public void setBackground(Color color)
color - background colorpublic void setClosePopupWithSingleMouseClick(boolean isClosePopupWithSingleMouseClick)
isClosePopupWithSingleMouseClick - public void setDate(java.util.Date date)
date - Datepublic void setEnabled(boolean enabled)
enabled - public boolean setFocus()
public void setFont(Font font)
font - DOCUMENT ME!public void setForeground(Color color)
color - Foreground colorpublic void setFormat(java.text.DateFormat format)
format - public void setSelection(Point selection)
selection - point representing the start and the end of the new selection
SWTError - (ERROR_THREAD_INVALID_ACCESS) when called from the wrong thread
SWTError - (ERROR_WIDGET_DISPOSED) when the widget has been disposed
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
SWTError - (ERROR_THREAD_INVALID_ACCESS) when called from the wrong thread
SWTError - (ERROR_WIDGET_DISPOSED) when the widget has been disposed
SWTError - (ERROR_CANNOT_BE_ZERO) when limit is 0public void setToolTipText(java.lang.String string)
string - Text of tool-tippublic void setVisible(boolean visible)
visible - visibility statepublic boolean isApplyCellEditorFix()
public void setApplyCellEditorFix(boolean applyCellEditorFix)
applyCellEditorFix - The applyCellEditorFix to set.
  | 
Elexis API documentation as of September 4 2011 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||