public class IconTool
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.util.ResourceBundle |
bundle |
static java.lang.String |
ERROR |
static java.lang.String |
INFO |
static int |
NO_TEXT |
private org.apache.maven.doxia.sink.Sink |
sink |
static int |
TEXT_ABBREV |
static int |
TEXT_SIMPLE |
static int |
TEXT_TITLE |
static java.lang.String |
WARNING |
| Constructor and Description |
|---|
IconTool(org.apache.maven.doxia.sink.Sink sink,
java.util.ResourceBundle bundle) |
| Modifier and Type | Method and Description |
|---|---|
void |
iconError()
Render an error icon.
|
void |
iconError(int textType)
Render an error icon with associated text.
|
void |
iconInfo()
Render an info icon.
|
void |
iconInfo(int textType)
Render an info icon with associated text.
|
void |
iconSeverity(java.lang.String level)
Render a simple icon of given level.
|
void |
iconSeverity(java.lang.String level,
int textType)
Render an icon of given level with associated text.
|
void |
iconWarning()
Render a warning icon.
|
void |
iconWarning(int textType)
Render a warning icon with associated text.
|
private java.lang.String |
suffix(int textType) |
public static final java.lang.String INFO
public static final java.lang.String WARNING
public static final java.lang.String ERROR
public static final int NO_TEXT
public static final int TEXT_SIMPLE
public static final int TEXT_TITLE
public static final int TEXT_ABBREV
private final org.apache.maven.doxia.sink.Sink sink
private final java.util.ResourceBundle bundle
public IconTool(org.apache.maven.doxia.sink.Sink sink,
java.util.ResourceBundle bundle)
public void iconSeverity(java.lang.String level)
level - one of INFO, WARNING or ERROR constantspublic void iconSeverity(java.lang.String level,
int textType)
level - one of INFO, WARNING or ERROR constantstextType - one of NO_TEXT, TEXT_SIMPLE, TEXT_TITLE or
TEXT_ABBREV constantspublic void iconInfo()
public void iconInfo(int textType)
textType - one of NO_TEXT, TEXT_SIMPLE, TEXT_TITLE or
TEXT_ABBREV constantspublic void iconWarning()
public void iconWarning(int textType)
textType - one of NO_TEXT, TEXT_SIMPLE, TEXT_TITLE or
TEXT_ABBREV constantspublic void iconError()
public void iconError(int textType)
textType - one of NO_TEXT, TEXT_SIMPLE, TEXT_TITLE or
TEXT_ABBREV constantsprivate java.lang.String suffix(int textType)