public final class SingleItemTemplate extends java.lang.Object implements Template
An item can consist of: A title, a description, and an optional number of actions that can be performed on the item.
Each action can also have a separate 'configure' action associated with it.
Modifier and Type | Class and Description |
---|---|
static class |
SingleItemTemplate.Severity |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONFIGURE
Actions that can be configured will have a 'configure' button placed next to the action.
|
Constructor and Description |
---|
SingleItemTemplate(SingleItemTemplate.Severity severity,
java.lang.String title,
java.lang.String description,
java.util.List<? extends javax.swing.Action> actions,
InfoTipStyles infoTipStyle) |
SingleItemTemplate(SingleItemTemplate.Severity severity,
java.lang.String title,
java.lang.String description,
java.util.List<? extends javax.swing.Action> actions,
InfoTipStyles infoTipStyle,
int maxWidth) |
Modifier and Type | Method and Description |
---|---|
javax.swing.JComponent |
getContent() |
void |
setHover(InfoTipHover hover) |
public static final java.lang.String CONFIGURE
public SingleItemTemplate(SingleItemTemplate.Severity severity, java.lang.String title, java.lang.String description, java.util.List<? extends javax.swing.Action> actions, InfoTipStyles infoTipStyle)
public SingleItemTemplate(SingleItemTemplate.Severity severity, java.lang.String title, java.lang.String description, java.util.List<? extends javax.swing.Action> actions, InfoTipStyles infoTipStyle, int maxWidth)
public javax.swing.JComponent getContent()
getContent
in interface Template
public void setHover(InfoTipHover hover)