com.croftsoft.core.gui.layout
Class CardFlipper

java.lang.Object
  extended by com.croftsoft.core.gui.layout.CardFlipper

public final class CardFlipper
extends Object

Provides an abstraction wrapper for the CardLayout.show() method.

Use when you do not want to give the caller a reference to the parentContainer.

Java 1.1 compatible.

Since:
2001-03-26
Version:
2001-03-26
Author:
David W. Croft

Constructor Summary
CardFlipper(Container parentContainer)
          this ( parentContainer, ( CardLayout ) parentContainer.getLayout ( ) );
CardFlipper(Container parentContainer, CardLayout cardLayout)
           
 
Method Summary
 void flipCard(String cardName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CardFlipper

public CardFlipper(Container parentContainer,
                   CardLayout cardLayout)

CardFlipper

public CardFlipper(Container parentContainer)
this ( parentContainer, ( CardLayout ) parentContainer.getLayout ( ) );

Method Detail

flipCard

public void flipCard(String cardName)
Throws:
NullArgumentException - If cardName is null.

CroftSoft Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)