public class TooltipItem extends Object
ITooltipPropList
interface.
Flags are composed as F_* bit flag or'ed with the type of:
Modifier and Type | Field and Description |
---|---|
static int |
F_BOLD
Flag for bold font, cannot be combined with italic font.
|
static int |
F_IMAGE
Flag for Image.
|
static int |
F_ITALIC
Flag for bold font, cannot be combined with italic font.
|
static int |
F_ITALIC_NONE
Flag for bold font, cannot be combined with italic font.
|
static TooltipItem |
HEADER_DESCR_TEXT
Header line: BOLD + CNDescription + ':' + CNText.
|
static TooltipItem |
HEADER_IMAGE_DESCR_TYPE
Header line: BOLD + CNDescription + ':'.
|
static TooltipItem |
HEADER_IMAGE_DESCR_TYPE_NAME
Header line: BOLD + CNDescription + ':' + PropName.
|
static TooltipItem |
SEPARATOR
The horizontal separator line.
|
static TooltipItem |
SPACER_4PX
The vertical indent of 4 pixels.
|
static TooltipItem |
SPACER_8PX
The vertical indent of 8 pixels.
|
static int |
T_CN_DESCRIPTION
Type: string as getCNDescription().
|
static int |
T_CN_DESCRIPTION_TYPE
Type: string as getCNDescriptionType().
|
static int |
T_CN_TEXT
Type: string as getCNText().
|
static int |
T_CN_TYPE_DESCRIPTION_TYPE
Type: string as getCNTypeDescriptionType() when available
(only for IPropDesigner implementing properties).
|
static int |
T_NORMAL
Type: normal.
|
static int |
T_PROP_NAME
Type: property name.
|
static int |
T_PROP_VALUE
Type: property value (perhaps using formatter).
|
Modifier and Type | Method and Description |
---|---|
int |
createLine(Composite parent,
PropCnr pc,
int verticalIndent)
Creates a line with the settings specified.
|
static TooltipItem |
newID(String prompt)
Constructs a line with normal fonts of a text prompt and a property name "ID" (Atom).
|
static TooltipItem |
newIntIndex(String prompt,
Atom atomName,
String[] array)
Constructs a line with normal fonts of a text prompt and a property atom with a formatter.
|
static TooltipItem |
newIntIndex(String prompt,
Atom atomName,
String[] array,
String defaultValue)
Constructs a line with normal fonts of a text prompt and a property atom with a formatter.
|
static TooltipItem |
newIntIndex(String prompt,
String atomName,
String[] array)
Constructs a line with normal fonts of a text prompt and a property atom with a formatter.
|
static TooltipItem |
newIntIndex(String prompt,
String atomName,
String[] array,
String defaultValue)
Constructs a line with normal fonts of a text prompt and a property atom with a formatter.
|
static TooltipItem |
newNormal(String prompt,
Atom atom)
Constructs a line with normal fonts of a text prompt and a property atom.
|
static TooltipItem |
newNormal(String prompt,
Atom atom,
ITooltipStringFormatter formatter)
Constructs a line with normal fonts of a text prompt and a property atom with a formatter.
|
static TooltipItem |
newNormal(String prompt,
ITooltipStringFormatter formatter)
Constructs a line with normal fonts of a text prompt and a formatter.
|
static TooltipItem |
newNormal(String prompt,
String atomName)
Constructs a line with normal fonts of a text prompt and a property atom.
|
static TooltipItem |
newNormal(String prompt,
String atomName,
ITooltipStringFormatter formatter)
Constructs a line with normal fonts of a text prompt and a property atom with a formatter.
|
static TooltipItem |
newNormalItalicEmpty(String prompt,
Atom atom)
Constructs a line with normal fonts of a text prompt and a property atom.
|
static TooltipItem |
newNormalItalicEmpty(String prompt,
String atomName)
Constructs a line with normal fonts of a text prompt and a property atom.
|
static TooltipItem |
newNormalItalicEmpty(String prompt,
String atomName,
ITooltipStringFormatter formatter)
Constructs a line with normal fonts of a text prompt and a property atom with a formatter.
|
public static final int F_IMAGE
public static final int F_BOLD
public static final int F_ITALIC
public static final int F_ITALIC_NONE
public static final int T_NORMAL
public static final int T_PROP_VALUE
public static final int T_PROP_NAME
public static final int T_CN_TEXT
public static final int T_CN_DESCRIPTION
public static final int T_CN_DESCRIPTION_TYPE
public static final int T_CN_TYPE_DESCRIPTION_TYPE
public static final TooltipItem HEADER_IMAGE_DESCR_TYPE
public static final TooltipItem HEADER_IMAGE_DESCR_TYPE_NAME
public static final TooltipItem HEADER_DESCR_TEXT
public static final TooltipItem SEPARATOR
public static final TooltipItem SPACER_4PX
public static final TooltipItem SPACER_8PX
public static TooltipItem newID(String prompt)
prompt
- The text prompt.public static TooltipItem newNormal(String prompt, String atomName)
prompt
- The text prompt.atomName
- The atom name.public static TooltipItem newNormal(String prompt, Atom atom)
prompt
- The text prompt.atom
- The atom name.public static TooltipItem newNormal(String prompt, Atom atom, ITooltipStringFormatter formatter)
prompt
- The text prompt.atom
- The atom.formatter
- The formatter of the item.public static TooltipItem newNormal(String prompt, String atomName, ITooltipStringFormatter formatter)
prompt
- The text prompt.atomName
- The atom name.formatter
- The formatter of the item.public static TooltipItem newIntIndex(String prompt, String atomName, String[] array, String defaultValue)
prompt
- The text prompt.atomName
- The atom name.array
- Array containing zero-based valuesdefaultValue
- String value to show if value is undefined or out of range.public static TooltipItem newIntIndex(String prompt, String atomName, String[] array)
prompt
- The text prompt.atomName
- The atom name.array
- Array containing zero-based valuespublic static TooltipItem newIntIndex(String prompt, Atom atomName, String[] array, String defaultValue)
prompt
- The text prompt.atomName
- The atom name.array
- Array containing zero-based valuesdefaultValue
- String value to show if value is undefined or out of range.public static TooltipItem newIntIndex(String prompt, Atom atomName, String[] array)
prompt
- The text prompt.atomName
- The atom name.array
- Array containing zero-based valuespublic static TooltipItem newNormal(String prompt, ITooltipStringFormatter formatter)
prompt
- The text prompt.formatter
- The formatter of the item.public static TooltipItem newNormalItalicEmpty(String prompt, String atomName)
prompt
- The text prompt.atomName
- The atom name.public static TooltipItem newNormalItalicEmpty(String prompt, Atom atom)
prompt
- The text prompt.atom
- The atom name.public static TooltipItem newNormalItalicEmpty(String prompt, String atomName, ITooltipStringFormatter formatter)
prompt
- The text prompt.atomName
- The atom name.formatter
- The formatter of the item.public int createLine(Composite parent, PropCnr pc, int verticalIndent)
parent
- The parent composite.pc
- The property container.verticalIndent
- The vertical indent, negative value indicates separator before.iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.