Revision ea112e7e
Added by Andreas Kohlbecker over 2 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/component/common/PersonField.java | ||
---|---|---|
198 | 198 |
nomenclaturalTitleButton.setHeight(22, Unit.PIXELS); |
199 | 199 |
nomenclaturalTitleButton.setDescription("Show the nomenclatural title cache."); |
200 | 200 |
nomenclaturalTitleButton.addClickListener( e -> { |
201 |
nomenclaturalTitleField.setVisible(true || !nomenclaturalTitleField.isVisible());
|
|
201 |
nomenclaturalTitleField.setVisible(!nomenclaturalTitleField.isVisible()); |
|
202 | 202 |
nomenclaturalTitleButtonChooseIcon(); |
203 | 203 |
if(nomenclaturalTitleField.isVisible()){ |
204 | 204 |
nomenclaturalTitleField.focus(); |
... | ... | |
215 | 215 |
// }); |
216 | 216 |
|
217 | 217 |
root.addComponent(nomenclaturalTitleField); |
218 |
root.addComponent(nomenclaturalTitleButton); |
|
218 | 219 |
|
219 | 220 |
unlockSwitch.addValueChangeListener(e -> { |
220 | 221 |
if(refreshMode()){ |
... | ... | |
257 | 258 |
* |
258 | 259 |
*/ |
259 | 260 |
protected void nomenclaturalTitleButtonChooseIcon() { |
260 |
nomenclaturalTitleButton.setIcon(true || nomenclaturalTitleField.isVisible() ? FontAwesome.ANGLE_UP : FontAwesome.ELLIPSIS_H);
|
|
261 |
nomenclaturalTitleButton.setIcon(nomenclaturalTitleField.isVisible() ? FontAwesome.ANGLE_UP : FontAwesome.ELLIPSIS_H); |
|
261 | 262 |
} |
262 | 263 |
|
263 | 264 |
/** |
Also available in: Unified diff
fix #9834 adding lost nomenclaturalTitleButton again & removing debug code modification