Donate Share

Microba controls

Tracker: Feature Requests

5 New HolidayPolicy methods - ID: 1610826
Last Update: Comment added ( sf-robot )

I'm currently implementing HolidayPolicy for the calendar. The days that
are marked as holidays have the foreground color changed to red. I don't
see an easy way to change this behaviour. I suggest adding the following
methods to HolidayPolicy:

Color getForeground(Object source, Calendar date)
Color getBackground(Object source, Calendar date)

This way the library user can easily define customized colors to identify
holidays. I am especially interested in changing the background color of a
date as it stands out more in the calendar pane.


robertt1 ( robertt1 ) - 2006-12-07 14:43

5

Closed

None

Nobody/Anonymous

None

None

Public


Comments ( 3 )




Date: 2006-12-26 03:20
Sender: sf-robotSourceForge.net Site Admin


This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).


Date: 2006-12-11 17:55
Sender: michaelbaranovProject AdminAccepting Donations


0.4.4 version features the color override feature. You will be able to set
custom foreground for hollidays and weekends, but not background yet.
Currently background color identifies selection and foreground identifies
holiday/weeken/normal state. Background overriding may follow in next
version.


Date: 2006-12-07 20:42
Sender: michaelbaranovProject AdminAccepting Donations


The work to allow color overriding is in progress. The approach taken is a
bit more complex than adding a few methods: a per-look&feel, per-instance
color overriding of ALL COLORS of ALL PARTS of GUI interface will be
possible. Please be patient...


Log in to comment.

Attached File

No Files Currently Attached

Changes ( 4 )

Field Old Value Date By
status_id Pending 2006-12-26 03:20 sf-robot
close_date 2006-12-11 17:57 2006-12-26 03:20 sf-robot
status_id Open 2006-12-11 17:57 michaelbaranov
close_date - 2006-12-11 17:57 michaelbaranov