public class IconTool extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
IconTool(Sink sink,
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(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.
|
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
public IconTool(Sink sink, ResourceBundle bundle)
public void iconSeverity(String level)
level
- one of INFO
, WARNING
or ERROR
constantspublic 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
constantsCopyright © 2005–2015 The Apache Software Foundation. All rights reserved.