public class JListFormatter extends ComponentFormatterTemplate
JList
s.Constructor and Description |
---|
JListFormatter() |
Modifier and Type | Method and Description |
---|---|
protected String |
doFormat(Component c)
Returns the
String representation of the given Component , which should be a JList . |
Class<? extends Component> |
targetType()
Returns the type of AWT or Swing
Component this formatter supports. |
format, getRealClassName
@RunsInCurrentThread @Nonnull protected String doFormat(@Nonnull Component c)
String
representation of the given Component
, which should be a JList
.doFormat
in class ComponentFormatterTemplate
c
- the given Component
.String
representation of the given JList
.@Nonnull public Class<? extends Component> targetType()
ComponentFormatter
Component
this formatter supports.JList.class
.Copyright © 2014–2019 AssertJ. All rights reserved.