public void initializeCommunication() {
setControlProperty("lstCommunicationType", "StringItemList", resources.CommunicationLabels);
}
private void setDefaultForGreetingAndSalutationAndCommunication() {
XTextComponent xTextComponent;
xTextComponent = (XTextComponent) UnoRuntime.queryInterface(XTextComponent.class, lstSalutation);
if (xTextComponent.getText().equals("")) {
xTextComponent.setText(resources.SalutationLabels[0]);
}
xTextComponent = (XTextComponent) UnoRuntime.queryInterface(XTextComponent.class, lstGreeting);
if (xTextComponent.getText().equals("")) {
xTextComponent.setText(resources.GreetingLabels[0]);
}
xTextComponent = (XTextComponent) UnoRuntime.queryInterface(XTextComponent.class, lstCommunicationType);
if (xTextComponent.getText().equals("")) {
xTextComponent.setText(resources.CommunicationLabels[0]);
}
}