public class MiscUtils
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MiscUtils.Direction |
| Constructor and Description |
|---|
MiscUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
escapeHtml(java.lang.String input)
Escape text using html entities.
|
static boolean |
isCropped(javax.swing.JComponent component)
Tell whether some JComponent is cropped (not displayed fully).
|
static boolean |
needsResize(javax.swing.JComponent container,
MiscUtils.Direction direction)
Tell whether some container wants to be resized in a direction
|
static java.lang.String |
removeAccents(java.lang.String text)
remove diacritical marks from text
|
static java.lang.String |
stripHtml(java.lang.String input)
Strip html tags from text.
|
public static java.lang.String escapeHtml(java.lang.String input)
StringEscapeUtils.escapeHtml(String)public static java.lang.String stripHtml(java.lang.String input)
input - input textpublic static boolean isCropped(javax.swing.JComponent component)
component - componentpublic static boolean needsResize(javax.swing.JComponent container,
MiscUtils.Direction direction)
container - containerdirection - direction, BOTH when nullpublic static java.lang.String removeAccents(java.lang.String text)