return mLocalizer.msg("title", "Exclude Programs");
}
@Override
public JPanel createContent(final WizardHandler handler) {
mTitleCb = new JCheckBox(mTitleQuestion);
mTitleTf = new JTextField();
mFilterCb = new JCheckBox(mFilterQuestion);
mFilterChooser = new JComboBox(FilterManagerImpl.getInstance().getAvailableFilters());
mDayChooser = new JComboBox(new Object[] {
LimitationConfiguration.DAYLIMIT_WEEKDAY,
LimitationConfiguration.DAYLIMIT_WEEKEND,
LimitationConfiguration.DAYLIMIT_MONDAY,
LimitationConfiguration.DAYLIMIT_TUESDAY,
LimitationConfiguration.DAYLIMIT_WEDNESDAY,
LimitationConfiguration.DAYLIMIT_THURSDAY,
LimitationConfiguration.DAYLIMIT_FRIDAY,
LimitationConfiguration.DAYLIMIT_SATURDAY,
LimitationConfiguration.DAYLIMIT_SUNDAY });
mDayChooser.setRenderer(new DayListCellRenderer());
CellConstraints cc = new CellConstraints();
FormLayout layout = new FormLayout("5dlu, pref, default:grow",
"pref, 5dlu, pref, 5dlu, pref, 5dlu, pref, 5dlu, pref, 5dlu, pref");
PanelBuilder panelBuilder = new PanelBuilder(layout);
mChannelCB = new JComboBox(ChannelList.getSubscribedChannels());
int rowInx = 3;
panelBuilder.add(new JLabel(mMainQuestion), cc.xyw(1, 1, 3));
panelBuilder.add(mTitleCb, cc.xy(2, rowInx));
panelBuilder.add(mTitleTf, cc.xy(3, rowInx));
rowInx += 2;
panelBuilder.add(mTopicCb = new JCheckBox(mTopicQuestion), cc.xy(2, rowInx));
panelBuilder.add(mTopicTf = new JTextField(), cc.xy(3, rowInx));
rowInx += 2;
int filterIndex = rowInx;
panelBuilder.add(mChannelCb = new JCheckBox(mChannelQuestion), cc.xy(2, rowInx));
panelBuilder.add(mChannelCB, cc.xy(3, rowInx));
rowInx += 2;
panelBuilder.add(mDayCb = new JCheckBox(mDayQuestion), cc.xy(2, rowInx));
panelBuilder.add(mDayChooser, cc.xy(3, rowInx));
rowInx += 2;
panelBuilder.add(mTimeCb = new JCheckBox(mTimeQuestion), cc.xy(2, rowInx));
panelBuilder.add(mTimePeriodChooser = new TimePeriodChooser(TimePeriodChooser.ALIGN_LEFT), cc.xy(3, rowInx));
if(mMode == MODE_EDIT_EXCLUSION || mMode == MODE_CREATE_EXCLUSION) {
layout.insertRow(filterIndex, RowSpec.decode("pref"));
layout.insertRow(filterIndex+1, RowSpec.decode("5dlu"));