public class ComboInitializer implements IInitializer { public void initialize(IXUIWidget source) { ((XUICombo) source).getWidget().setText("I'm the combo text from Initializer.");}}
See the following table for detailed information about Initializer:
Widget | Injection | Injection description | Sample in UI.xui |
---|---|---|---|
Label | initializer | After the label created, the initializer will run. | <Label background="240,0,0"> <list Injection="initializers"> <com.ibm.btt.sample.xui.AccNumberInitializer /> </list> </Label> |
Button | initializer | After the button created, the initializer will run. | <Button> <list Injection="initializers"> <com.ibm.btt.sample.xui.AccNumberInitializer/> </list> </Button> |
Text | initializer | After the text created, the initializer will run. | <Text background="240,0,0"> <list Injection="initializers"> <com.ibm.btt.sample.xui.AccNumberInitializer /> </list> </Text> |
Password | initializer | After the password widget created, the initializer will run. | <Password background="240,0,0"> <list Injection="initializers"> <com.ibm.btt.sample.xui.AccNumberInitializer /> </list> </Password > |
Check | initializer | After the check widget created, the initializer will run. | <Check> <list Injection="initializers"> <com.ibm.btt.sample.xui.AccNumberInitializer/> </list> </Check > |
Radio | initializer | After the redio widget created, the initializer will run. | <Radio> <list Injection="initializers"> <com.ibm.btt.sample.xui.AccNumberInitializer/> </list> </Radio> |
Combo | initializer | After the combo widget created, the initializer will run. | <Combo background="240,0,0"> <list Injection="initializers"> <com.ibm.btt.sample.xui.AccNumberInitializer /> </list> </Combo> |
Table | initializer | After the Table widget created, the initializer will run. | <Table> <list Injection="initializers"> <com.ibm.btt.sample.xui.AccNumberInitializer /> </list> </Table> |
Composite | initializer | After the composite created, the initializer will run. | <Composite background="240,0,0"> <list Injection="initializers"> <com.ibm.btt.sample.xui.AccNumberInitializer /> </list> </Composite> |
List | initializer | After the list created, the initializer will run. | <List> <list Injection="initializers"> <com.ibm.btt.sample.xui.AccNumberInitializer/> </list> </List> |
Group | initializer | After the group created, the initializer will run. | <Group background="240,0,0"> <list Injection="initializers"> <com.ibm.btt.sample.xui.AccNumberInitializer /> </list> </Group> |