|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.checkstyle.IconTool
public class IconTool
A little tool to deal with info/warning/error icons in Checkstyle reports, with eventual text.
| Field Summary | |
|---|---|
static String |
ERROR
|
static String |
INFO
|
static int |
NO_TEXT
|
static int |
TEXT_ABBREV
|
static int |
TEXT_SIMPLE
|
static int |
TEXT_TITLE
|
static String |
WARNING
|
| Constructor Summary | |
|---|---|
IconTool(Sink sink,
ResourceBundle bundle)
|
|
| Method Summary | |
|---|---|
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(String level)
Render a simple icon of given level. |
void |
iconSeverity(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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String INFO
public static final String WARNING
public static final 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
| Constructor Detail |
|---|
public IconTool(Sink sink,
ResourceBundle bundle)
| Method Detail |
|---|
public void iconSeverity(String level)
level - one of INFO, WARNING or ERROR constants
public void iconSeverity(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 constants
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||