org.fest.swing.edt
Class GuiLazyLoadingDescription

java.lang.Object
  extended by org.fest.swing.edt.GuiLazyLoadingDescription
All Implemented Interfaces:
org.fest.assertions.Description

public abstract class GuiLazyLoadingDescription
extends Object
implements org.fest.assertions.Description

Understands a Description that loads the text to return in the event dispatch thread.

Author:
Alex Ruiz, Yvonne Wang

Constructor Summary
GuiLazyLoadingDescription()
           
 
Method Summary
protected abstract  String loadDescription()
          Returns the lazy-loaded text of this description.
 String value()
          Executes loadDescription() in the event dispatch thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuiLazyLoadingDescription

public GuiLazyLoadingDescription()
Method Detail

value

public final String value()
Executes loadDescription() in the event dispatch thread.

Specified by:
value in interface org.fest.assertions.Description
Returns:
the text loaded in the event dispatch thread.

loadDescription

@RunsInCurrentThread
protected abstract String loadDescription()
Returns the lazy-loaded text of this description.

Note: This method is not guaranteed to be executed in the event dispatch thread (EDT.) Clients are responsible for calling this method from the EDT.

Returns:
the lazy-loaded text of this description.


Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.