public BndIJLabelField bind(JLabel component, MetaLoader metaLoader, String fieldName) { BndIJLabelField inputComponent = new BndIJLabelField( currentInputCmpMgr, component, decorateMetaLoader(metaLoader), fieldName); currentInputCmpMgr.initComponent(inputComponent); return inputComponent; }
public BndIJTextField bind(JTextComponent component, String fieldName, Validator validator) { BndIJTextField inputComponent = new BndIJTextField(currentInputCmpMgr, component, fieldName); inputComponent.registerValidator(validator); presenter.getValidatorMgr().registerBasicValidator(validator); currentInputCmpMgr.initComponent(inputComponent); return inputComponent; }
public BndIJComboBox bind( JComboBox component, List dropDownValues, String fieldName, String rule) { BndIJComboBox inputComponent = new BndIJComboBox(currentInputCmpMgr, component, dropDownValues, fieldName); presenter.getValidatorMgr().registerBasicRule(inputComponent, rule); currentInputCmpMgr.initComponent(inputComponent); return inputComponent; }
private BndIJRadioButton bindIntern( JRadioButton component, String fieldName, Object selectedValue, ButtonGroup buttonGroup) { BndIJRadioButton inputComponent = new BndIJRadioButton(currentInputCmpMgr, component, fieldName, selectedValue); currentInputCmpMgr.initComponent(inputComponent); buttonGroup.add(component); return inputComponent; }
public BndIJComboBox bind( JComboBox component, MetaLoader metaLoader, Object bean, String fieldName) { BndIJComboBox inputComponent = new BndIJComboBox( currentInputCmpMgr, component, decorateMetaLoader(metaLoader), bean, fieldName); currentInputCmpMgr.initComponent(inputComponent); return inputComponent; }
public BndIJComboBox bind( JComboBox component, MetaLoader metaLoader, String fieldName, String rule) { BndIJComboBox inputComponent = new BndIJComboBox(currentInputCmpMgr, component, decorateMetaLoader(metaLoader), fieldName); presenter.getValidatorMgr().registerBasicRule(inputComponent, rule); currentInputCmpMgr.initComponent(inputComponent); return inputComponent; }
/** * Set the model to the JComboBox. Use the defaultBeanWrapper to do the binding. * * @param component * @param fieldName */ public BndIJComboBox bind(JComboBox component, List dropDownValues, String fieldName) { BndIJComboBox inputComponent = new BndIJComboBox(currentInputCmpMgr, component, dropDownValues, fieldName); currentInputCmpMgr.initComponent(inputComponent); return inputComponent; }
public BndIJTextField bind(JTextComponent component) { BndIJTextField inputComponent = new BndIJTextField(currentInputCmpMgr, component); presenter.getValidatorMgr().registerBasicRule(inputComponent, ""); currentInputCmpMgr.initComponent(inputComponent); return inputComponent; }
public BndICheckBox bind(JCheckBox component) { BndICheckBox inputComponent = new BndICheckBox(currentInputCmpMgr, component); currentInputCmpMgr.initComponent(inputComponent); return inputComponent; }
public BndIJLabelField bind(JLabel component, List dropDownValues, String fieldName) { BndIJLabelField inputComponent = new BndIJLabelField(currentInputCmpMgr, component, dropDownValues, fieldName); currentInputCmpMgr.initComponent(inputComponent); return inputComponent; }
public BndIJLabelField bind(JLabel component) { BndIJLabelField inputComponent = new BndIJLabelField(currentInputCmpMgr, component); currentInputCmpMgr.initComponent(inputComponent); return inputComponent; }