|
|
Package com.dassault_systemes.catjdialog |
Class CATLabel
|
Class Hierarchy |
java.lang.Object | +-com.dassault_systemes.catjdialog.CATCallbackSource | +-com.dassault_systemes.catjdialog.CATDialog | +-com.dassault_systemes.catjdialog.CATLeafElement | +-com.dassault_systemes.catjdialog.CATLabel
Class Location |
Class Description |
public class CATLabel
The label graphical component.
<label_path>.Title
entry.
You may also set it programmatically using setTitle()
.
<label_path>.Tooltip
entry.
You may also set it programmatically using setTooltip()
.
Field Summary |
Constructor Summary |
CATLabel(CATDialog iDialog, String iName) |
CATLabel(CATDialog iDialog, String iName, int iLevel) |
Method Summary |
String | getTitle() |
void | setTitle(String iTitle) |
boolean | hasTitle() |
int | getLevel() |
void | setLevel(int iLevel) |
String | getImage() |
void | setImage(String iImage) |
boolean | hasImage() |
String | getTooltip() |
void | setTooltip(String iTooltip) |
Field Detail |
Constructor Detail |
CATLabel(CATDialog iDialog, String iName)Creates a label with the specified parent and name. Level is 0.
iParent
iName
CATLabel(CATDialog iDialog, String iName, int iLevel)Creates a label with the specified parent, name and level.
iParent
iName
iLevel
Method Detail |
String getTitle()Returns the label title.
Returns the programmatic value if setTitle() has been called,
or tries to retrieve its title from the associated message catalog file
(<label_path>.Title
entry).
void setTitle(String iTitle)Sets the label title.
Calling this method sets programmatically the text. This should
be reserved for cases where the title can only be determined by dynamic
means.
The standard way of defining components messages is using CATNls catalog
files (supports NLS).
iTitle
boolean hasTitle()Determines whether this label has a title or not.
true
if this label has a title; false
otherwise.int getLevel()Returns the label level.
void setLevel(int iLevel)Sets the label level.
0 for default, 1 biggest, >1 smaller.
iLevel
String getImage()Returns the image resource URI.
void setImage(String iImage)Sets the image resource URI.
iImage
resources/graphic
directory of the runtime view, or a full URL to an image resource. A null
value unsets the image in this label.boolean hasImage()Determines whether this label has an image or not.
true
if this label has an image; false
otherwise.String getTooltip()Returns the label's tooltip.
Returns the programmatic value if setTooltip() has been called,
or tries to retrieve its value from the associated message catalog file
(<label_path>.Tooltip
entry).
void setTooltip(String iTooltip)Sets the label's tooltip.
Calling this method sets programmatically the tooltip. This should
be reserved for cases where the tooltip can only be determined by dynamic
means.
The standard way of defining components messages is using CATNls catalog
files (supports NLS).
iTooltip