|
Elexis API documentationVersion 2.1.6 as of December 11 2011 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectComposite
ch.elexis.util.DayDateCombo
public class DayDateCombo
A Composite with a spinner indicating a number of days and a DatePicker indicating the resulting date from a base date and the spinner setting. Manipulating the spinner will modify the DatePicker and vice versa. SelectionListeners will be informed on each change.
| Constructor Summary | |
|---|---|
DayDateCombo(Composite parent,
java.lang.String text1,
java.lang.String text2)
Create the Composite |
|
| Method Summary | |
|---|---|
void |
addSelectionListener(SelectionListener listener)
|
TimeTool |
getDate()
Get the actual setting of the DatePicker. |
void |
removeSelectionListener(SelectionListener listener)
|
void |
setDates(TimeTool baseDate)
Set the dates of the composite. |
void |
setDays(int days)
Set the dates of the composite |
void |
setEnabled(boolean bEnable)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DayDateCombo(Composite parent,
java.lang.String text1,
java.lang.String text2)
parent - parent compositetext1 - the text to display in front of the spinnertext2 - the text to display between spinner and DatePicker| Method Detail |
|---|
public void setEnabled(boolean bEnable)
public void setDates(TimeTool baseDate)
baseDate - the date of the DatePickerendDate - the date to calculate with the spinnerpublic void setDays(int days)
days - number of days before the basedatebaseDate - the date to calculate from or null=todaypublic TimeTool getDate()
public void addSelectionListener(SelectionListener listener)
public void removeSelectionListener(SelectionListener listener)
|
Elexis API documentationVersion 2.1.6 as of December 11 2011 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||