|
![]() |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.droplets.api.Component | +--com.droplets.api.Panel | +--com.droplets.api.DateChooser
Component that lets the user specify a particular date using a standard visual calendar user interface. Uses an event listener to tell the application that the user has chosen a new date
Inner classes inherited from class com.droplets.api.Panel |
Panel.ImageMode |
Fields inherited from class com.droplets.api.Panel |
IMAGE_CENTER, IMAGE_FIT, IMAGE_SCALE_BOTH, IMAGE_SCALE_DOWN, IMAGE_SCALE_UP, IMAGE_TILE, IMAGE_TILE_WRT_WINDOW, SCROLLBARS_AUTO, SCROLLBARS_OFF, SCROLLBARS_ON |
Fields inherited from class com.droplets.api.Component |
ANCHOR_CENTER, ANCHOR_EAST, ANCHOR_NORTH, ANCHOR_NORTHEAST, ANCHOR_NORTHWEST, ANCHOR_SOUTH, ANCHOR_SOUTHEAST, ANCHOR_SOUTHWEST, ANCHOR_WEST, FILL_BOTH, FILL_HORIZONTAL, FILL_NONE, FILL_VERTICAL |
Constructor Summary | |
DateChooser(LayoutPlacement layout,
java.util.Calendar initialDate,
Window window)
Construct a DateChooser. |
Method Summary | |
void |
addDateChooserListener(DateChooserListener l)
Add a listener object to let the application know when the user has inidicated a new date in the CalendarWindow |
protected void |
fireDateChooserEvent(java.util.Calendar newValue)
|
void |
removeDateChooserListener(DateChooserListener l)
remove a listener object from the list |
void |
setDate(java.util.Calendar newDate)
Make the DateChooser point to a new date programmatically |
void |
useImagesForNavigation(java.lang.String prevImageSetName,
java.lang.String nextImageSetName)
Set the date chooser to use images for the previous/next month/year buttons, instead of the characters < and > . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DateChooser(LayoutPlacement layout, java.util.Calendar initialDate, Window window)
layout
- The grid position and size of the componentinitialDate
- is the date to which the CalendarWindow should be pointingwindow
- the parent window of the component
when it first comes upMethod Detail |
public void setDate(java.util.Calendar newDate)
DateChooser
point to a new date programmaticallynewDate
- is the date to which the DateChooser
should now pointpublic void addDateChooserListener(DateChooserListener l)
l
- listener to be addedpublic void removeDateChooserListener(DateChooserListener l)
l
- listener to be removedprotected void fireDateChooserEvent(java.util.Calendar newValue)
public void useImagesForNavigation(java.lang.String prevImageSetName, java.lang.String nextImageSetName)
<
and >
. Exactly as
in ImageButton
, an "image set name" of "X" would refer
to an image file "X.gif" for the default appearance of the button, and optional
"XOver.gif" and "XDown.gif" files when the button is under the mouse pointer or
being clicked.
If you pass an empty string or null for prevImageSetName
or
nextImageSetName
, the buttons will be drawn as <
or >
again.
prevImageSetName
- name of image set to use for "previous" buttonsnextImageSetName
- name of image set to use for "next" buttons
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |