IBM WebSphere Multichannel Bank Transformation Toolkit, Version 7.1

Label

Parse basic attributes and advanced attributes of Label, and present it as described in the XML file.

Table 1.
Function Function description Default value Sample in XML
background Set background color for label OS <Label background="240,0,0"/>
foreground Set foreground color for label OS <Label foreground="240,0,0"/>
font Set font for label OS <Label font = " Arial, 10, BOLD|ITALIC"/>
bounds Set margin bounds(X, Y, Width, Height) for label OS <Label bounds="15, 15, 466, 18"/>
text Set text for label, but you can’t set HTML special characters directly. (e.g. if you want to set ‘&’, you must set it to &amp ) "" <Label text="Test Label"/>
enabled If it is true, the label is enabled; If it is false, it is disabled. TRUE <Label enabled="TRUE"/>
visible If it is true, the label is visible; If it is false, it is invisible. TRUE <Label visible="TRUE"/>
wrap When the text is up to the width of Label, if it is true, text can be auto-wrapped; If it if false, text can’t be auto-wrapped. FALSE <Label wrap="FALSE"/>
alignment Set alignment mode, it has three values: LEFT, CENTER, and RIGHT. LEFT <Label alignment="CENTER"/>
dataName Get data from data layer according to the dataName. NULL <Label dataName="dataname"/>
image Set image file for label. Default path of the image file is located in root directory of the application, but you can set relative path in the attribute. If you set image and text together, there only show text.So if you want to set image, you can’t set text for the label. When image size is larger than label size, only part of image can be shown. NULL <Label image="imagename"/>
helpID helpId is defined in myHelpContexts.xml, you press shortcut key when the focus is on the label, it will pop up help message about the label NULL <Label helpId="labelId"/>


Feedback