Lines Matching refs:child
42 * vertical scrolling for a single child component. The display
59 * with the geometry of the scrollpane and its child and these should
65 * the child's contents appropriately. This policy is useful if the
110 * only when the size of the child exceeds the size of the scrollpane
117 * shown regardless of the respective sizes of the scrollpane and child.
123 * regardless of the respective sizes of the scrollpane and child.
233 // The scrollpane won't work with a windowless child... it assumes
234 // it is moving a child window around so the windowless child is
237 Panel child = new Panel();
238 child.setLayout(new BorderLayout());
239 child.add(comp);
240 super.addImpl(child, constraints, index);
246 * If the scroll pane has an existing child component, that
250 * @param index position of child component (must be <= 0)
344 * Scrolls to the specified position within the child component.
346 * a child. Specifying a position outside of the legal scrolling bounds
347 * of the child will scroll to the closest legal position.
349 * x = 0, y = 0, width = (child width - view port width),
350 * height = (child height - view port height).
356 * a child
361 throw new NullPointerException("child is null");
369 * Scrolls to the specified position within the child component.
371 * a child and the specified position is within legal scrolling bounds
372 * of the child. Specifying a position outside of the legal scrolling
373 * bounds of the child will scroll to the closest legal position.
375 * x = 0, y = 0, width = (child width - view port width),
376 * height = (child height - view port height).
387 * Returns the current x,y position within the child which is displayed
393 * a child
399 throw new NullPointerException("child is null");
415 * Lays out this container by resizing its child to its preferred size.
416 * If the new preferred size of the child causes the current scroll
427 * Determine the size to allocate the child component.
429 * preferred size then the child is allocated enough
430 * to fill the viewport, otherwise the child is given
449 Component child = getComponent(0);
450 Dimension childSize = new Dimension(child.getPreferredSize());
474 // if child is smaller than view, size it up