Project

General

Profile

Revision 31a2f09b

ID31a2f09bdfad95a97af3562f10fe69e1e9312d9c
Parent a78817ed
Child d13ec7ca

Added by Andreas Kohlbecker almost 4 years ago

fix #7224 adding initials to PersonField

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/component/common/PersonField.java
65 65

  
66 66
    private Mode currentMode = null;
67 67

  
68
    private float baseWidth = 100 / 8;
68
    private float baseWidth = 100 / 9;
69 69

  
70 70
    private CssLayout root = new CssLayout();
71 71
    private CssLayout selectOrNewContainer = new CssLayout();
72 72

  
73 73
    private TextField cacheField = new TextFieldNFix();
74 74
    private CssLayout detailsContainer = new CssLayout();
75
    private TextField initialsField = new TextFieldNFix();
75 76
    private TextField firstNameField = new TextFieldNFix();
76 77
    private TextField lastNameField = new TextFieldNFix();
77 78
    private TextField prefixField = new TextFieldNFix();
......
116 117

  
117 118
        // edit person
118 119
        addStyledComponent(cacheField);
120
        addStyledComponents(initialsField);
119 121
        addStyledComponent(firstNameField);
120 122
        addStyledComponent(lastNameField);
121 123
        addStyledComponent(prefixField);
......
166 168
        prefixField.setWidth(baseWidth, Unit.PERCENTAGE);
167 169
        prefixField.setInputPrompt("Prefix");
168 170

  
171
        initialsField.setWidth(baseWidth, Unit.PERCENTAGE);
172
        initialsField.setInputPrompt("Initials");
173

  
169 174
        firstNameField.setWidth(baseWidth * 3, Unit.PERCENTAGE);
170 175
        firstNameField.setInputPrompt("First Name");
171 176

  
......
177 182

  
178 183
        detailsContainer.setStyleName(ValoTheme.LAYOUT_COMPONENT_GROUP);
179 184
        detailsContainer.addComponent(prefixField);
185
        detailsContainer.addComponent(initialsField);
180 186
        detailsContainer.addComponent(firstNameField);
181 187
        detailsContainer.addComponent(lastNameField);
182 188
        detailsContainer.addComponent(suffixField);
......
206 212

  
207 213
        fieldGroup.bind(cacheField, "titleCache");
208 214
        fieldGroup.bind(prefixField, "prefix");
215
        fieldGroup.bind(initialsField, "initials");
209 216
        fieldGroup.bind(firstNameField, "firstname");
210 217
        fieldGroup.bind(lastNameField, "lastname");
211 218
        fieldGroup.bind(suffixField, "suffix");

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)