Checkbox standardCheckbox = new Checkbox(TextProvider.get().identities_panel_label_standard(), "standard");
standardCheckbox.setDisabled(true);
this.detailsFormPanel.add(standardCheckbox);
TextField textfield = null;
KeyListener keyListener = new KeyListener() {
public void onKey( int key, EventObject e ) {
if (key == KeyboardListener.KEY_ENTER) {
resumeIdentities();
}
}
};
this.formFields = new ArrayList<Component>();
this.detailsFormPanel.add(textfield = new TextField(TextProvider.get().identities_panel_label_name(),
"displayName"), new AnchorLayoutData("80%"));
textfield.addKeyListener(KeyboardListener.KEY_ENTER, keyListener);
this.formFields.add(textfield);
this.detailsFormPanel.add(
textfield = new TextField(TextProvider.get().identities_panel_label_email(), "email"),
new AnchorLayoutData("80%"));
textfield.addKeyListener(KeyboardListener.KEY_ENTER, keyListener);
this.formFields.add(textfield);
this.detailsFormPanel.add(textfield = new TextField(TextProvider.get().identities_panel_label_organisation(),
"organisation"), new AnchorLayoutData("80%"));
textfield.addKeyListener(KeyboardListener.KEY_ENTER, keyListener);
this.formFields.add(textfield);
this.detailsFormPanel.add(textfield = new TextField(TextProvider.get().identities_panel_label_reply(),
"replyTo"), new AnchorLayoutData("80%"));
textfield.addKeyListener(KeyboardListener.KEY_ENTER, keyListener);
this.formFields.add(textfield);
this.detailsFormPanel.add(textfield = new TextField(TextProvider.get().identities_panel_label_bcc(), "bcc"),
new AnchorLayoutData("80%"));
textfield.addKeyListener(KeyboardListener.KEY_ENTER, keyListener);
this.formFields.add(textfield);
this.detailsFormPanel.add(textfield = new TextArea(TextProvider.get().identities_panel_label_signature(),
"signature"), new AnchorLayoutData("60%"));
this.formFields.add(textfield);