Parse basic attributes and advanced attributes of Composite, and present it as described in the XML files.
Function | Function description | Default value | Sample in XML |
---|---|---|---|
background | Set background color for Composite | OS | <Composite background="240,0,0"/> |
bounds | Set margin bounds(X, Y, Width, Height) for Composite | OS | <Composite bounds="15, 15, 466, 18"/> |
enabled | If it is true, the Composite is enabled; If it is false, it is disabled. | TRUE | <Composite enabled="TRUE"/> |
visible | If it is true, the label is visible; If it is false, it is invisible. | TRUE | <Composite visible="TRUE"/> |
helpID | helpId is defined in myHelpContexts.xml, when you click on the button, it will pop up help message about the Composite | NULL | <Composite bounds="400,80,400,450"> <Button bounds="200, 10, 80, 20" text="helpButton" helpId="messageBUTTON"> <list Injection="actions"> <com.ibm.btt.rcp.xui.action.HelpButtonAction helpId="messageCOMPOSITE"/> </list> </Button></Composite> |
image | Set backgroud image for composite | NULL | Composite image="icons/background.jpg"/> |
imageAlignment | Set background image alignment. It has three available attributes, LEFT, CENTER and RIGHT. | LEFT | <Composite image="icons/background.jpg" alignment="CENTER"/> |