uk.org.iscream.cms.conient
Class SwingSafeAddCard

java.lang.Object
  extended byuk.org.iscream.cms.conient.SwingSafeAddCard
All Implemented Interfaces:
Runnable

public class SwingSafeAddCard
extends Object
implements Runnable

Allows components to be safely added to a pane using a card layout. This class takes a container and a component to add to the pane. It then should be added to the Swing Event Dispatching Thread in order that the add can carry out.

Version:
$Id: SwingSafeAddCard.java,v 1.4 2002/05/21 16:47:10 tdb Exp $
Author:
$Author: tdb $

Field Summary
private  JComponent _component
          The component to add
private  Container _container
          The container to add the component to
private  String _title
          The title of the tab
static String REVISION
          The current CVS revision of this class
 
Constructor Summary
SwingSafeAddCard(Container container, JComponent component, String title)
          Constructs a new instance.
 
Method Summary
 void run()
          Executed by the Swing Event Dispatch thread to update the display.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
The current CVS revision of this class

See Also:
Constant Field Values

_component

private JComponent _component
The component to add


_container

private Container _container
The container to add the component to


_title

private String _title
The title of the tab

Constructor Detail

SwingSafeAddCard

public SwingSafeAddCard(Container container,
                        JComponent component,
                        String title)
Constructs a new instance.

Parameters:
container - the container pane to add the component to
component - the component to be added to the container
title - the title for the card
Method Detail

run

public void run()
Executed by the Swing Event Dispatch thread to update the display.

Specified by:
run in interface Runnable


Copyright © 2000-2003 i-scream. All Rights Reserved.