Re: [Microba-controls] Clearing calendar selection or choosing month
Brought to you by:
michaelbaranov
From: Greg C. <cau...@gm...> - 2008-08-12 18:41:51
|
Looks good to me ! I assume that is still a code change for you ( I don't have a CalendarPanelUI right) On 8/12/08, Michael Baranov <mic...@gm...> wrote: > Greg, > DatePicker is derived from CalendarPane so I don't want DatePicker to > inherit methods that are not related to it from CalendarPane. However, I > see a way -- use UI delegate which are different for DatePicker and > CalendarPane. The code might look something like this: > > CalendarPanelUI ui = (CalendarPanelUI) cPanel.getUI(); > ui.observeMonth(2009, Calendar.MAY); > > What about this? This will take care of your special needs... > Michael. > > Awefully nice of you if you can. I was thinking of a few options on > > CalendarPane > > > > a) setDate(null) change so it does not change the currently selected month > > of course that might affect your community > > > > b) setMonth(int month) which just changes the month and the calendar > > but does not select a date. Perhaps that is a little funky behaviour > > though so how about > > > > c) clearSelection() which clears the selection > > > > but hang on now you have got me thinking c) is probably already > > possible... actually no I just checked - I thought I might be able to > > change the foreground color selection to white to hide it - but it > > looks like the color map cannot be modified at runtime? > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Microba-controls mailing list > Mic...@li... > https://lists.sourceforge.net/lists/listinfo/microba-controls > -- Greg Caulton Principal PatientOS Inc. Cell: (857) 869-0394 Fax: (857) 241-3022 |