protected void initButtons(JComponent panel) { mergeRunnerB = new JButton(GecoIcon.createIcon(GecoIcon.MergeRunner)); mergeRunnerB.setToolTipText(Messages.uiGet("RegistryBoard.MergeEcardTooltip")); // $NON-NLS-1$ mergeRunnerB.setEnabled(false); mergeRunnerB.addActionListener( new ActionListener() { public void actionPerformed(ActionEvent e) { RunnerRaceData mergedData = control() .mergeRunnerWithData( getSelectedRunner(), wizard().getECardData(), wizard().getSourceRunner()); wizard().closeAfterMerge(mergedData); } }); overwriteWarningL = new JLabel(GecoIcon.createIcon(GecoIcon.Overwrite)); overwriteWarningL.setToolTipText( Messages.uiGet("RegistryBoard.OverwriteWarning")); // $NON-NLS-1$ overwriteWarningL.setVisible(false); mergeRunnerB.setAlignmentX(MergeWizard.CENTER_ALIGNMENT); overwriteWarningL.setAlignmentX(MergeWizard.CENTER_ALIGNMENT); Box buttons = Box.createVerticalBox(); buttons.add(mergeRunnerB); buttons.add(overwriteWarningL); panel.add(buttons, buttonsCol(3)); }
private void initDataLine3(JComponent panel) { GridBagConstraints c = gridLine(); panel.add(new JLabel(Messages.uiGet("RegistryBoard.StatusLabel")), c); // $NON-NLS-1$ statusF = new StatusField(); panel.add(statusF, c); panel.add(new JLabel(Messages.uiGet("RegistryBoard.TimeLabel")), c); // $NON-NLS-1$ resultTimeF = new DataField(); panel.add(resultTimeF, c); }
private void initDataLine2(JComponent panel) { GridBagConstraints c = gridLine(); panel.add(new JLabel(Messages.uiGet("RegistryBoard.CategoryLabel")), c); // $NON-NLS-1$ categoryF = new DataField(); panel.add(categoryF, c); panel.add(new JLabel(Messages.uiGet("RegistryBoard.CourseLabel")), c); // $NON-NLS-1$ courseF = new DataField(); panel.add(courseF, c); }
public RegistryBoard(MergeWizard wizard, JComponent panel, int firstLine) { super(Messages.uiGet("RegistryBoard.RegistryTitle"), wizard, panel, firstLine); // $NON-NLS-1$ }