Package org.fest.swing.format
Class Formatting
java.lang.Object
org.fest.swing.format.Formatting
Understands utility methods related to formatting.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final Map<Class<?>,ComponentFormatter> private static Loggerprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static ComponentFormatterstatic StringReturns aStringrepresentation of the given.Component(package private) static ComponentFormatterprivate static ComponentFormatterformatterFor(Class<?> type) static StringReturns aStringrepresentation of the given.Componentprivate static ComponentFormatterinstrospect(Class<? extends Component> targetType, String... propertyNames) private static ComponentFormatterstatic voidregister(ComponentFormatter formatter) Registers the given formatter, replacing any other one previously registered for the same supported component type.
-
Field Details
-
MAXIMUM
- See Also:
-
MINIMUM
- See Also:
-
NULL_COMPONENT_MESSAGE
- See Also:
-
ENABLED
- See Also:
-
NAME
- See Also:
-
SHOWING
- See Also:
-
TEXT
- See Also:
-
TITLE
- See Also:
-
VALUE
- See Also:
-
VISIBLE
- See Also:
-
FORMATTERS
-
logger
-
-
Constructor Details
-
Formatting
private Formatting()
-
-
Method Details
-
instrospect
private static ComponentFormatter instrospect(Class<? extends Component> targetType, String... propertyNames) -
empty
-
nameOnly
-
register
Registers the given formatter, replacing any other one previously registered for the same supported component type.- Parameters:
formatter- the formatter to register.
-
formatter
-
inEdtFormat
Returns aStringrepresentation of the given. This method is invoked in the event dispatch thread.Component- Parameters:
c- the givenComponent.- Returns:
- a
Stringrepresentation of the givenComponent.
-
format
Returns aStringrepresentation of the given.ComponentNote: This method is not executed in the event dispatch thread (EDT.) Clients are responsible for invoking this method in the EDT.
- Parameters:
c- the givenComponent.- Returns:
- a
Stringrepresentation of the givenComponent.
-
formatterFor
-