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 String
private static final Map<Class<?>,
ComponentFormatter> private static Logger
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static ComponentFormatter
static String
Returns aString
representation of the given
.Component
(package private) static ComponentFormatter
private static ComponentFormatter
formatterFor
(Class<?> type) static String
Returns aString
representation of the given
.Component
private static ComponentFormatter
instrospect
(Class<? extends Component> targetType, String... propertyNames) private static ComponentFormatter
static void
register
(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 aString
representation of the given
. This method is invoked in the event dispatch thread.Component
- Parameters:
c
- the givenComponent
.- Returns:
- a
String
representation of the givenComponent
.
-
format
Returns aString
representation of the given
.Component
Note: 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
String
representation of the givenComponent
.
-
formatterFor
-