public abstract class ComponentFormatterTemplate extends Object implements ComponentFormatter
ComponentFormatter.| Constructor and Description |
|---|
ComponentFormatterTemplate() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
doFormat(Component c)
Returns the
String representation of the given AWT or Swing Component. |
String |
format(Component c)
Returns the
String representation of the given AWT or Swing Component. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittargetType@RunsInCurrentThread @Nonnull public final String format(@Nonnull Component c)
String representation of the given AWT or Swing Component.format in interface ComponentFormatterc - the given Component.String representation of the given Component.NullPointerException - if the given Component is null.IllegalArgumentException - if the type of the given Component is not supported by this formatter.@RunsInCurrentThread @Nonnull protected abstract String doFormat(@Nonnull Component c)
String representation of the given AWT or Swing Component.c - the given Component.String representation of the given Component.Copyright © 2014 AssertJ. All rights reserved.