|
|
|||||
| 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)
Creates a label with the specified parent and name. |
| CATLabel(CATDialog iDialog, String iName, int iLevel)
Creates a label with the specified parent, name and level. |
| Method Summary |
| public String | getImage()
Returns the image resource URI. |
| public int | getLevel()
Returns the label level. |
| public String | getTitle()
Returns the label title. |
| public String | getTooltip()
Returns the label's tooltip. |
| public boolean | hasImage()
Determines whether this label has an image or not. |
| public boolean | hasTitle()
Determines whether this label has a title or not. |
| public void | setImage(String iImage)
Sets the image resource URI. |
| public void | setLevel(int iLevel)
Sets the label level. |
| public void | setTitle(String iTitle)
Sets the label title. |
| public void | setTooltip(String iTooltip)
Sets the label's tooltip. |
| Field Detail |
| Constructor Detail |
CATLabel(CATDialog iDialog, String iName)
Creates a label with the specified parent and name. Level is 0.
iParentiName
CATLabel(CATDialog iDialog, String iName, int iLevel)
Creates a label with the specified parent, name and level.
iParentiNameiLevel| Method Detail |
public String getImage()
Returns the image resource URI.
public int getLevel()
Returns the label level.
public 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).
public 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).
public boolean hasImage()
Determines whether this label has an image or not.
true if this label has an image; false otherwise.
public boolean hasTitle()
Determines whether this label has a title or not.
true if this label has a title; false otherwise.
public void setImage(String iImage)
Sets the image resource URI.
iImageresources/graphic directory of the runtime view, or a full URL to an image resource. A null value unsets the image in this label.
public void setLevel(int iLevel)
Sets the label level.
0 for default, 1 biggest, >1 smaller.
iLevel
public 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
public 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