myLetterDoc.switchUserField("Greeting", xTextComponent.getText(), (chkUseGreeting.getState() != 0));
setControlProperty("lstGreeting", "Enabled", new Boolean(chkUseGreeting.getState() != 0));
}
private void setDefaultForGreetingAndSalutation() {
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]);
}
}