private net.sf.minuteProject.configuration.bean.enrichment.convention.Convention getConvention( CheckBoxField cbf) { net.sf.minuteProject.configuration.bean.enrichment.convention.Convention convention = null; if ("version-convention".equals(cbf.getName())) { convention = new VersionConvention(); } if (convention != null) { convention.setDefaultValue(cbf.getTf().getText()); } return convention; }
private void addConventionToPanel(Convention convention, JPanel panel) { CheckBoxField cbf = new CheckBoxField(convention.getName(), convention.getDescription(), "", true, null); JLabel l = createLabel(""); panel.add(l); panel.add(cbf.getBox(), "skip"); panel.add(cbf.getTf(), "growx, span, wrap para"); componentList.add(cbf.getBox()); componentList.add(cbf.getTf()); componentList.add(l); conventionList.add(cbf); }
private void fillConvention(CheckBoxField cbf, BasicIntegrationConfiguration bic) { if (cbf.getBox().isSelected()) bic.addConvention(getConvention(cbf)); }