public static class ComboMultiSelect.PresetListEntry extends java.lang.Object implements java.lang.Comparable<ComboMultiSelect.PresetListEntry>
Modifier and Type | Field and Description |
---|---|
java.lang.String |
display_value
Value displayed to the user
|
java.lang.String |
icon
The location of icon file to display
|
java.lang.String |
icon_size
The size of displayed icon.
|
java.lang.String |
locale_display_value
The localized version of
display_value . |
java.lang.String |
locale_short_description
The localized version of
short_description . |
int |
prefferedHeight
Cached height (currently only for Combo) to speed up preset dialog initialization
|
int |
prefferedWidth
Cached width (currently only for Combo) to speed up preset dialog initialization
|
java.lang.String |
short_description
Text to be displayed below
display_value . |
java.lang.String |
value
Entry value
|
java.lang.String |
value_context
The context used for translating
value |
private java.io.File |
zipIcons |
Constructor and Description |
---|
PresetListEntry()
Constructs a new
PresetListEntry , uninitialized. |
PresetListEntry(java.lang.String value)
Constructs a new
PresetListEntry , initialized with a value. |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ComboMultiSelect.PresetListEntry o) |
java.lang.String |
getDisplayValue(boolean translated)
Returns the value to display.
|
javax.swing.ImageIcon |
getIcon()
Returns the entry icon, if any.
|
java.lang.String |
getListDisplay()
Returns HTML formatted contents.
|
java.lang.String |
getShortDescription(boolean translated)
Returns the short description to display.
|
java.lang.String |
toString() |
public java.lang.String value
public java.lang.String value_context
value
public java.lang.String display_value
public java.lang.String short_description
display_value
.public java.lang.String icon
public java.lang.String icon_size
public java.lang.String locale_display_value
display_value
.public java.lang.String locale_short_description
short_description
.private final java.io.File zipIcons
public int prefferedWidth
public int prefferedHeight
public PresetListEntry()
PresetListEntry
, uninitialized.public PresetListEntry(java.lang.String value)
PresetListEntry
, initialized with a value.value
- valuepublic java.lang.String getListDisplay()
public javax.swing.ImageIcon getIcon()
null
public java.lang.String getDisplayValue(boolean translated)
translated
- whether the text must be translatedpublic java.lang.String getShortDescription(boolean translated)
translated
- whether the text must be translatedpublic java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(ComboMultiSelect.PresetListEntry o)
compareTo
in interface java.lang.Comparable<ComboMultiSelect.PresetListEntry>