public BindingComponent getBindingComponent(String fieldName) { List<BindingComponent> bindingComponents = getAllBindings(); for (BindingComponent bindingComponent : bindingComponents) { if (fieldName.equals(bindingComponent.getFieldName())) { return bindingComponent; } } return null; }
public List getAllBindingsName() { List bindingComponents = new ArrayList(); List inputsCmpMgrs = getInputsCmpMgrs(); logger.debug("searching bindings registers ..."); for (Iterator iterator = inputsCmpMgrs.iterator(); iterator.hasNext(); ) { InputCmpMgr inputCmpMgr = (InputCmpMgr) iterator.next(); for (Iterator iterator1 = inputCmpMgr.getComponents().iterator(); iterator1.hasNext(); ) { BindingComponent bindingComponent = (BindingComponent) iterator1.next(); logger.debug("bindingComponent <" + bindingComponent + ">"); bindingComponent.getJComponent().getClientProperty(BindingComponent.ATTR_BND); bindingComponents.add(bindingComponent.getFieldName()); } } return bindingComponents; }