Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2011 Michael Ruflin, Andr´┐Ż Locher, Claudia von Bastian. This file is part of Tatool. Tatool is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Tatool is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with Tatool. If not, see <>. /
package ch.tatool.core.display.swing;
Swing container provided to elements to interact with the user Components can be added to the Display in a "Card style view" manner, where each component is displayed in full at once. In addition to the displayed card, an overlay can be added to the display, which will be displayed above the displayed card. Note: All methods in this interface need to be called from the AWT Event Dispatch thread only.

Michael Ruflin
public interface SwingExecutionDisplay extends ExecutionDisplay {

ID of the empty card.
	public static final String EMPTY_CARD_ID = "emptyCard";

Add a card to this display
	public void addCard(String cardIdComponent component);

Display a previously added card.
	public void showCard(String cardId);

Removes a card from the display.
	public void removeCard(String cardId);

Remove all added cards.
	public void removeAllCards();

Display an empty card.
	public void displayEmptyCard();

Get the currently displayed card.
Set the overlay component to be displayed.

component the overlay component to display, null to remove any displayed component
	public void setOverlay(Component component);

Get the background color of the display.

the background color, with white being default
    public Color getBackgroundColor();
Set the background color of the display.

color the background color to set.
    public void setBackgroundColor(Color color);
New to GrepCode? Check out our FAQ X