/** * Create a check box and add it to the panel. */ public JCheckBox createCheckBox(String name) { return createCheckBox(name, false, false, 0); }
/** * Create a check box and add it to the panel. */ public JCheckBox createCheckBox(String name, boolean selected, boolean enabled) { return createCheckBox(name, selected, enabled, 0); }
/** * Create a check box and add it to the panel. */ public JCheckBox createCheckBox(String name, boolean selected, boolean enabled, double weighty) { return createCheckBox(name, selected, enabled, weighty, null); }
/** * Create checkbox for boolean choices. */ protected void createCheckBox(PropertiesPanel pp, final ParameterInfo pi, final MechanismInfo mi) { final JCheckBox cb = pp.createCheckBox(pi.getName(), ((Boolean)pi.getValue()).booleanValue(), true); cb.setToolTipText(pi.getDescription()); cb.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { AcquireCertificatePanel.this.secser.setAcquisitionMechanismParameterValue(mi.getClazz(), pi.getName(), cb.isSelected()? Boolean.TRUE: Boolean.FALSE); } }); updateactions.put(mi.getClazz().getName()+"."+pi.getName(), new ICommand<Object>() { public void execute(Object val) { cb.setSelected(((Boolean)val).booleanValue()); } }); }
/** * Create checkbox for boolean choices. */ protected void createCheckBox(PropertiesPanel pp, final ParameterInfo pi, final MechanismInfo mi) { final JCheckBox cb = pp.createCheckBox(pi.getName(), ((Boolean)pi.getValue()).booleanValue(), true); cb.setToolTipText(pi.getDescription()); cb.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { AcquireCertificatePanel.this.secser.setAcquisitionMechanismParameterValue(mi.getClazz(), pi.getName(), cb.isSelected()? Boolean.TRUE: Boolean.FALSE); } }); updateactions.put(mi.getClazz().getName()+"."+pi.getName(), new ICommand<Object>() { public void execute(Object val) { cb.setSelected(((Boolean)val).booleanValue()); } }); }
pp.addComponent("Sound files: ", pan); final JCheckBox cb = pp.createCheckBox("Sound enabled: ", sound, true, 0); cb.addActionListener(new ActionListener() final JCheckBox cbar = pp.createCheckBox("Users auto refresh: ", autorefresh, true, 0); cbar.addActionListener(new ActionListener()
pp.addComponent("Sound files: ", pan); final JCheckBox cb = pp.createCheckBox("Sound enabled: ", sound, true, 0); cb.addActionListener(new ActionListener() final JCheckBox cbar = pp.createCheckBox("Users auto refresh: ", autorefresh, true, 0); cbar.addActionListener(new ActionListener()
final JCheckBox jb = pp.createCheckBox("Service call: "); jb.setEnabled(true); jb.setSelected(vact.getMActivity().hasParameter(MActivity.RETURNPARAM)); final JCheckBox cbs = pp.createCheckBox("Sequential result execution: "); cbs.setEnabled(true); cbs.setSelected(vact.getMActivity().hasProperty(MActivity.ISSEQUENTIAL));