|
||||||||||
| 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
net.sf.ecl.datepicker.WeekSelector
public final class WeekSelector
is a week of selection control. The control is used to select some week on the timeline. Year borders are not honored. So it is posible to select a week like this: 30.12 - 05.01. The control shows a standard calendar widget with selectable week.
SelectionListener
| Field Summary |
|---|
| Fields inherited from class org.eclipse.swt.widgets.Control |
|---|
handle |
| Constructor Summary | |
|---|---|
WeekSelector(Composite parent,
int style)
creates WeekSelector instance. |
|
WeekSelector(Composite parent,
int style,
Locale locale)
creates WeekSelector instance. |
|
| Method Summary | |
|---|---|
void |
addSelectionListener(SelectionListener listener)
adds selecetion listener. |
void |
clearSelection()
clears control's selection. |
Point |
computeSize(int wHint,
int hHint,
boolean changed)
|
DatePeriod |
getSelection()
|
DatePeriod |
getVisibleMonth()
returns the month visible in the control as a date period. |
void |
layout(boolean changed)
|
void |
removeSelectionListener(SelectionListener listener)
removes the given selection listener. |
void |
setFont(Font font)
|
void |
setSelection(Calendar startDate,
Calendar endDate)
|
void |
setSelection(DatePeriod period)
|
void |
setVisibleMonth(Calendar dayOfMonth)
|
| Methods inherited from class org.eclipse.swt.widgets.Composite |
|---|
changed, checkSubclass, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList |
| Methods inherited from class org.eclipse.swt.widgets.Scrollable |
|---|
computeTrim, getClientArea, getHorizontalBar, getVerticalBar |
| Methods inherited from class org.eclipse.swt.widgets.Widget |
|---|
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WeekSelector(Composite parent,
int style)
WeekSelector instance.
parent - the parent composite.style - the style.
public WeekSelector(Composite parent,
int style,
Locale locale)
WeekSelector instance.
parent - the parent composite.style - the style.| Method Detail |
|---|
public void addSelectionListener(SelectionListener listener)
listener - the listener.public void clearSelection()
public Point computeSize(int wHint,
int hHint,
boolean changed)
computeSize in class Compositepublic DatePeriod getSelection()
public DatePeriod getVisibleMonth()
public void layout(boolean changed)
layout in class Compositepublic void removeSelectionListener(SelectionListener listener)
listener - the listener.public final void setFont(Font font)
setFont in class Control
public void setSelection(Calendar startDate,
Calendar endDate)
startDate - endDate - public void setSelection(DatePeriod period)
period - public void setVisibleMonth(Calendar dayOfMonth)
dayOfMonth -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||