Interface ILabel
- All Superinterfaces:
IDesignElement, IReportElement, IReportItem
Represents a the design of a Label in the scripting environment
-
Field Summary
Fields inherited from interface IReportItem
constants -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the action structure to this Label item.Returns a handle to work with the action property, action is a structure that defines a hyperlink.Returns the localized text for the label.Returns the help text of this label item.Returns the help text key of this label item.getText()Returns the static text for the label.Returns the resource key of the static text of the label.voidsetHelpText(String text) Sets the help text of this label item.voidsetHelpTextKey(String resourceKey) Sets the help text key of this label item.voidSets the text of the label.voidsetTextKey(String resourceKey) Sets the resource key of the static text of the label.Methods inherited from interface IDesignElement
getNamedExpression, getParent, getQualifiedName, getReport, getStyle, getUserProperty, getUserPropertyExpression, setNamedExpression, setUserProperty, setUserPropertyMethods inherited from interface IReportElement
getComments, getCustomXml, getDisplayName, getDisplayNameKey, getName, setComments, setCustomXml, setDisplayName, setDisplayNameKey, setNameMethods inherited from interface IReportItem
addDataBinding, addHideRule, addHighlightRule, getBookmark, getDataBinding, getDataBindings, getHeight, getHideRules, getHighlightRules, getTocExpression, getWidth, getX, getY, removeDataBinding, removeDataBindings, removeHideRule, removeHideRules, removeHighlightRule, removeHighlightRules, setBookmark, setCurrentView, setHeight, setHeight, setTocExpression, setWidth, setWidth, setX, setX, setY, setY
-
Method Details
-
getText
-
getDisplayText
String getDisplayText()Returns the localized text for the label. If the localized text for the text resource key is found, it will be returned. Otherwise, the static text will be returned.- Returns:
- the localized text for the label
-
setText
Sets the text of the label. Sets the static text itself. If the label is to be externalized, then set the text ID separately.- Parameters:
text- the new text for the label- Throws:
SemanticException- if the property is locked.
-
getTextKey
String getTextKey()Returns the resource key of the static text of the label.- Returns:
- the resource key of the static text
-
setTextKey
Sets the resource key of the static text of the label.- Parameters:
resourceKey- the resource key of the static text- Throws:
SemanticException- if the resource key property is locked.
-
getAction
IAction getAction()Returns a handle to work with the action property, action is a structure that defines a hyperlink.- Returns:
- a handle to the action property, return
nullif the action has not been set on the label. - See Also:
-
addAction
Add the action structure to this Label item.- Parameters:
action-- Throws:
SemanticException
-
getHelpText
-
setHelpText
Sets the help text of this label item.- Parameters:
text- the help text- Throws:
SemanticException- if the resource key property is locked.
-
getHelpTextKey
-
setHelpTextKey
Sets the help text key of this label item.- Parameters:
resourceKey- the help text key- Throws:
SemanticException- if the resource key property of the help text is locked.
-