Monday, July 28, 2008

Java: Hotline Update #6

For the upcoming month (August) one of the call options needs to be switched out. This is something I haven't had to do before. I've added options but never removed one. Specifically the Lucene call option is being removed and an options titled Only Online is being put in its place.

The work in the OptionPanel class was simple. All I needed to do was to rename the variable that is used to title the Lucene JButton to "Online Only". It was the ReportPanel class where more work was required.

A new If-Else clause needed to be added to the ButtonListener. Specifically the previous last clause that was handled by the simple "else" command needed to clarified for which date range it would cover, which in this case was November 2007 to July 2008.

Once this change was in place the same code block was added onto the end without the If portion of the statement so that all dates after July 2008 would be covered. Then the slot in the issue array for the Lucene option was replaced with one for the Online Only option, for the last clause in the If-Else statement only. This way all months prior to the change in August 2008 could still have reports run looking for the Lucene option while everything afterwards would only look for the Online Only option.

No comments: