public void weeksChange ( String week , Boolean value ) { final WeekOfMonth changedWeek = WeekOfMonth . valueOf ( week ) ; boolean newValue = ( null != value ) && value . booleanValue ( ) ; boolean currentValue = m_model . getWeeksOfMonth ( ) . contains ( changedWeek ) ; if ( newValue != currentValue ) { if ( newValue ) { setPatternScheme ( true , false ) ; m_model . addWeekOfMonth ( changedWeek ) ; onValueChange ( ) ; } else { removeExceptionsOnChange ( new Command ( ) { public void execute ( ) { m_model . removeWeekOfMonth ( changedWeek ) ; onValueChange ( ) ; } } ) ; } } }
Handle a change in the weeks of month .