Lines Matching refs:parent
266 * @param parent the parent container in which to do the layout
272 public Dimension preferredLayoutSize(Container parent) {
273 synchronized (parent.getTreeLock()) {
274 Insets insets = parent.getInsets();
275 int ncomponents = parent.getComponentCount();
280 Component comp = parent.getComponent(i);
296 * @param parent the parent container in which to do the layout
302 public Dimension minimumLayoutSize(Container parent) {
303 synchronized (parent.getTreeLock()) {
304 Insets insets = parent.getInsets();
305 int ncomponents = parent.getComponentCount();
310 Component comp = parent.getComponent(i);
343 public float getLayoutAlignmentX(Container parent) {
354 public float getLayoutAlignmentY(Container parent) {
368 * Each component in the <code>parent</code> container is reshaped
372 * @param parent the parent container in which to do the layout
375 public void layoutContainer(Container parent) {
376 synchronized (parent.getTreeLock()) {
377 Insets insets = parent.getInsets();
378 int ncomponents = parent.getComponentCount();
383 comp = parent.getComponent(i);
385 parent.width - (hgap*2 + insets.left + insets.right),
386 parent.height - (vgap*2 + insets.top + insets.bottom));
393 parent.getComponent(0).setVisible(true);
402 void checkLayout(Container parent) {
403 if (parent.getLayout() != this) {
404 throw new IllegalArgumentException("wrong parent for CardLayout");
410 * @param parent the parent container in which to do the layout
413 public void first(Container parent) {
414 synchronized (parent.getTreeLock()) {
415 checkLayout(parent);
416 int ncomponents = parent.getComponentCount();
418 Component comp = parent.getComponent(i);
426 parent.getComponent(0).setVisible(true);
427 parent.validate();
436 * @param parent the parent container in which to do the layout
439 public void next(Container parent) {
440 synchronized (parent.getTreeLock()) {
441 checkLayout(parent);
442 int ncomponents = parent.getComponentCount();
444 Component comp = parent.getComponent(i);
448 comp = parent.getComponent(currentCard);
450 parent.validate();
454 showDefaultComponent(parent);
462 * @param parent the parent container in which to do the layout
465 public void previous(Container parent) {
466 synchronized (parent.getTreeLock()) {
467 checkLayout(parent);
468 int ncomponents = parent.getComponentCount();
470 Component comp = parent.getComponent(i);
474 comp = parent.getComponent(currentCard);
476 parent.validate();
480 showDefaultComponent(parent);
484 void showDefaultComponent(Container parent) {
485 if (parent.getComponentCount() > 0) {
487 parent.getComponent(0).setVisible(true);
488 parent.validate();
494 * @param parent the parent container in which to do the layout
497 public void last(Container parent) {
498 synchronized (parent.getTreeLock()) {
499 checkLayout(parent);
500 int ncomponents = parent.getComponentCount();
502 Component comp = parent.getComponent(i);
510 parent.getComponent(currentCard).setVisible(true);
511 parent.validate();
520 * @param parent the parent container in which to do the layout
524 public void show(Container parent, String name) {
525 synchronized (parent.getTreeLock()) {
526 checkLayout(parent);
538 ncomponents = parent.getComponentCount();
540 Component comp = parent.getComponent(i);
547 parent.validate();