|
||||||||||
| 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.TimeZonePicker
public final class TimeZonePicker
is a drop-down combo for TimeZone selection. The drop-down list in
prefilled with all timezones known by the JVM.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.swt.widgets.Control |
|---|
handle |
| Constructor Summary | |
|---|---|
TimeZonePicker(Composite parent,
int style)
creates instance of TimeZonePicker. |
|
| Method Summary | |
|---|---|
void |
addSelectionListener(SelectionListener listener)
adds a selection listener to the control. |
Point |
computeSize(int wHint,
int hHint,
boolean changed)
|
TimeZone |
getSelection()
return selected TimeZone. |
void |
layout(boolean changed)
|
void |
removeSelectionListener(SelectionListener listener)
removes the given selection listener. |
void |
setSelection(String timeZoneId)
makes the given TimeZone selected in the control. |
void |
setSelection(TimeZone timeZone)
makes the given TimeZone selected in the control. |
| 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 TimeZonePicker(Composite parent,
int style)
TimeZonePicker.
parent - the parent composite.style - the control's style.| Method Detail |
|---|
public void addSelectionListener(SelectionListener listener)
listener - the listener.
public Point computeSize(int wHint,
int hHint,
boolean changed)
computeSize in class Compositepublic TimeZone getSelection()
TimeZone.
TimeZone.public void layout(boolean changed)
layout in class Compositepublic void removeSelectionListener(SelectionListener listener)
listener - the listener.public void setSelection(String timeZoneId)
TimeZone selected in the control.
timeZoneId - the identfier of the TimeZone.public void setSelection(TimeZone timeZone)
TimeZone selected in the control.
timeZone - the TimeZone.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||