InfoPanel
A paragraph of explanation with a large icon beside it: the block at the top of a screen that says what the screen is for.
cp.add(new InfoPanel("The CD shop sells albums, not tracks.<br/>"
+ "A track can only be bought as part of the album it is on."));
| Method | What it does |
|---|---|
InfoPanel(String text) |
the text, with the theme's large info icon |
InfoPanel(String text, String icon) |
...with an icon of your own, by resource url |
setIcon(String) / getIcon() |
change that icon afterwards |
The text may contain html, so it can hold more than one line, a list or a link.
The panel carries the ui-ipa class, which is where its width and its background
come from.
For the same thing with a severity - a warning or an error rather than a remark -
use Explanation; for a single line,
MessageLine.
