public class Format
extends java.lang.Object
Format
contains several format rules.Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
xmlBreak |
Constructor and Description |
---|
Format() |
Modifier and Type | Method and Description |
---|---|
javax.swing.ImageIcon |
asFolder(javax.swing.ImageIcon icon)
Converts the given
ImageIcon into a folder icon. |
java.lang.String |
formatTooltip(java.lang.String text)
Formats a text for tooltip (inserts break-lines).
|
javax.swing.ImageIcon |
getIcon(java.lang.Class<?> clazz)
Returns the icon of a
Class . |
javax.swing.ImageIcon |
getIcon(PropertyModule module)
Returns the
ImageIcon of a PropertyModule . |
java.lang.String |
getInfo(java.lang.Class<?> c)
Returns the info of a
Class . |
java.lang.String |
getName(java.lang.Class<?> clazz)
Returns the name of a
Class . |
java.lang.String |
getName(Property property)
Returns the formatted name of the property.
|
java.lang.String |
getName(PropertyModule module)
Returns the name of a
PropertyModule . |
java.lang.String |
getTooltip(java.lang.Class<?> c)
Returns the tooltip of a
Class . |
java.lang.String |
getTooltip(Property property)
Returns the formatted (html) tooltip of a
Property . |
java.lang.String |
getTooltip(PropertyModule module)
Returns the tooltip of a
PropertyModule . |
protected static final java.lang.String xmlBreak
public java.lang.String getName(java.lang.Class<?> clazz)
Class
.clazz
- the classpublic java.lang.String getInfo(java.lang.Class<?> c)
Class
.c
- the classpublic java.lang.String getTooltip(java.lang.Class<?> c)
Class
.c
- the classpublic javax.swing.ImageIcon getIcon(java.lang.Class<?> clazz)
Class
.clazz
- the classpublic java.lang.String getName(PropertyModule module)
PropertyModule
.module
- the modulepublic java.lang.String getTooltip(PropertyModule module)
PropertyModule
.module
- the modulepublic javax.swing.ImageIcon getIcon(PropertyModule module)
ImageIcon
of a PropertyModule
.module
- the modulepublic javax.swing.ImageIcon asFolder(javax.swing.ImageIcon icon)
ImageIcon
into a folder icon.icon
- the iconpublic java.lang.String getName(Property property)
property
- the propertypublic java.lang.String getTooltip(Property property)
Property
.property
- the propertypublic java.lang.String formatTooltip(java.lang.String text)
text
- the input text