return mLocalizer.msg("title", "Create new Favorite");
}
public JPanel createContent(final WizardHandler handler) {
LinkButton expertBtn = new LinkButton(mLocalizer.msg("advancedView", "Switch to expert view"), null);
CellConstraints cc = new CellConstraints();
PanelBuilder panelBuilder = new PanelBuilder(new FormLayout("5dlu, pref, default:grow",
"pref, 5dlu, pref, 5dlu, pref, 5dlu, pref, 5dlu, pref"));
panelBuilder.add(new JLabel(mMainQuestion), cc.xyw(1, 1, 3));
panelBuilder
.add(mTitleRb = new JRadioButton(mLocalizer.msg("option.title", "I like this program:")), cc.xy(2, 3));
panelBuilder.add(mProgramNameTf = new JTextField(), cc.xy(3, 3));
panelBuilder.add(mTopicRb = new JRadioButton(mLocalizer.msg("option.topic", "I like this subject:")), cc.xy(2, 5));
panelBuilder.add(mTopicTf = new JTextField(), cc.xy(3, 5));
panelBuilder.add(mActorsRb = new JRadioButton(mLocalizer.msg("option.actors","I like these actors:")), cc.xy(2,7));
mActorsCb = new JComboBox();
mActorsCb.setEditable(true);
panelBuilder.add(mActorsCb, cc.xy(3,7));
panelBuilder.setBorder(Borders.DLU4_BORDER);
panelBuilder.add(expertBtn, cc.xyw(1, 9, 3));
ButtonGroup group = new ButtonGroup();
group.add(mTitleRb);
group.add(mTopicRb);
group.add(mActorsRb);
mTitleRb.setSelected(true);
updateTextfields();
mTitleRb.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
updateTextfields();
}
});
mTopicRb.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
updateTextfields();
}
});
mActorsRb.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
updateTextfields();
}
});
expertBtn.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
handler.closeCurrentStep();
String title;
if (mProgram != null) {
title = mProgram.getTitle();