boolean (IComponent component, String fieldName) { if (fieldName.equals(component.getBinding())) { return true; } if (component instanceof IContainer) { IContainer container = (IContainer)component; for (int i = 0; i < container.getComponentCount(); i++) { if (isBoundField(container.getComponent(i), fieldName)) { return true; } } } return false; }