public class Formatting extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
format(Component c)
Returns a
String representation of the given . |
static String |
inEdtFormat(Component c)
Returns a
String representation of the given . |
static void |
register(ComponentFormatter formatter)
Registers the given formatter, replacing any other one previously registered for the same supported component type.
|
public static void register(ComponentFormatter formatter)
formatter - the formatter to register.@RunsInEDT public static String inEdtFormat(Component c)
String representation of the given Component. This method is invoked in
the event dispatch thread.c - the given Component.String representation of the given Component.@RunsInCurrentThread public static String format(Component c)
String representation of the given Component.
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.
c - the given Component.String representation of the given Component.Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.