Revision fcba7787
Added by Andreas Kohlbecker almost 7 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/taxon/TaxonNamePopupEditor.java | ||
---|---|---|
26 | 26 |
import eu.etaxonomy.cdm.vaadin.component.SelectFieldFactory; |
27 | 27 |
import eu.etaxonomy.cdm.vaadin.component.common.TeamOrPersonField; |
28 | 28 |
import eu.etaxonomy.cdm.vaadin.security.AccessRestrictedView; |
29 |
import eu.etaxonomy.vaadin.component.SwitchableTextField; |
|
29 | 30 |
import eu.etaxonomy.vaadin.mvp.AbstractCdmPopupEditor; |
30 | 31 |
|
31 | 32 |
/** |
... | ... | |
56 | 57 |
|
57 | 58 |
private TextField infraSpecificEpithetField; |
58 | 59 |
|
60 |
private SwitchableTextField fullTitleCacheFiled; |
|
61 |
|
|
62 |
private SwitchableTextField protectedNameCacheField; |
|
63 |
|
|
59 | 64 |
|
60 | 65 |
|
61 | 66 |
/** |
... | ... | |
99 | 104 |
|
100 | 105 |
GridLayout grid = (GridLayout)getFieldLayout(); |
101 | 106 |
grid.setSpacing(true); |
102 |
grid.setMargin(true); |
|
103 | 107 |
|
104 | 108 |
/* |
105 | 109 |
- nameType: preset, needs to be set in the presenter for new names |
... | ... | |
161 | 165 |
grid.setComponentAlignment(rankSelect, Alignment.TOP_RIGHT); |
162 | 166 |
row++; |
163 | 167 |
// fullTitleCache |
164 |
addSwitchableTextField("Full title cache", "fullTitleCache", "protectedFullTitleCache", 0, row, GRID_COLS-1, row).setWidth(100, Unit.PERCENTAGE); |
|
168 |
fullTitleCacheFiled = addSwitchableTextField("Full title cache", "fullTitleCache", "protectedFullTitleCache", 0, row, GRID_COLS-1, row); |
|
169 |
fullTitleCacheFiled.setWidth(100, Unit.PERCENTAGE); |
|
165 | 170 |
row++; |
166 |
addSwitchableTextField("Name cache", "nameCache", "protectedNameCache", 0, row, GRID_COLS-1, row).setWidth(100, Unit.PERCENTAGE); |
|
171 |
protectedNameCacheField = addSwitchableTextField("Name cache", "nameCache", "protectedNameCache", 0, row, GRID_COLS-1, row); |
|
172 |
protectedNameCacheField.setWidth(100, Unit.PERCENTAGE); |
|
167 | 173 |
row++; |
168 | 174 |
genusOrUninomialField = addTextField("Genus or uninomial", "genusOrUninomial", 0, row, 1, row); |
169 | 175 |
genusOrUninomialField.setWidth(200, Unit.PIXELS); |
... | ... | |
184 | 190 |
addField(exBasionymAuthorshipField, "exBasionymAuthorship", 0, row, GRID_COLS-1, row); |
185 | 191 |
row++; |
186 | 192 |
|
187 |
|
|
193 |
setAdvancedModeEnabled(true); |
|
194 |
registerAdvancedModeComponents(fullTitleCacheFiled, protectedNameCacheField); |
|
195 |
setAdvancedMode(false); |
|
188 | 196 |
|
189 | 197 |
} |
190 | 198 |
|
Also available in: Unified diff
ref #6169 advanced mode for popup editors