|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectesmska.utils.MiscUtils
public class MiscUtils
Various helper methods.
| Nested Class Summary | |
|---|---|
static class |
MiscUtils.Direction
|
| Constructor Summary | |
|---|---|
MiscUtils()
|
|
| Method Summary | |
|---|---|
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 |
stripHtml(java.lang.String input)
Strip html tags from text. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MiscUtils()
| Method Detail |
|---|
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 text
public static boolean isCropped(javax.swing.JComponent component)
component - component
public static boolean needsResize(javax.swing.JComponent container,
MiscUtils.Direction direction)
container - containerdirection - direction, BOTH when null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||