protected void descendantGainedFocus(Component descendant, Component previousFocusedComponent) { Container parent = getParent(); if (parent != null) { parent.descendantGainedFocus(descendant, previousFocusedComponent); } }
protected void descendantRemoved(Component descendant) { Container parent = getParent(); if (parent != null) { parent.descendantRemoved(descendant); } }
protected void descendantAdded(Component descendant) { Container parent = getParent(); if (parent != null) { parent.descendantAdded(descendant); } }
protected void descendantAdded(Component descendant) { Container parent = getParent(); if (parent != null) { parent.descendantAdded(descendant); } }
protected void descendantRemoved(Component descendant) { Container parent = getParent(); if (parent != null) { parent.descendantRemoved(descendant); } }
protected void descendantGainedFocus(Component descendant, Component previousFocusedComponent) { Container parent = getParent(); if (parent != null) { parent.descendantGainedFocus(descendant, previousFocusedComponent); } }
protected void descendantLostFocus(Component descendant) { Container parent = getParent(); if (parent != null) { parent.descendantLostFocus(descendant); } }
protected void descendantLostFocus(Component descendant) { Container parent = getParent(); if (parent != null) { parent.descendantLostFocus(descendant); } }
/** * Finds the {@link Form.Section} that the given component belongs to. * Will search up the parent hierarchy in case the component is nested inside * other containers inside the form. * * @return * The form section this component (or one of its parents) belongs to or * <code>null</code> if the component does not belong to a form. * * @see #getSection getSection(Component) */ public static Section getEnclosingSection(Component component) { Section section = (Section)component.getAttribute(Attribute.SECTION); if (section == null) { for (Container parent = component.getParent(); parent != null && (section = (Section)parent.getAttribute(Attribute.SECTION)) == null; ) { parent = parent.getParent(); } } return section; }