Hi,
When a user clicks in a field, we want the icon to become visible and the value in the field to be selected.
What I'm seeing is that the redraw() followed by the focusInItem isn't working. Hence, the value in the field is not selected. I tried with selectValue as well, same issue.
Could you please advice?
FYI my custom editor is extending a TextItem.
SmartClient Version: SC_SNAPSHOT-2010-12-14/EVAL Deployment
When a user clicks in a field, we want the icon to become visible and the value in the field to be selected.
What I'm seeing is that the redraw() followed by the focusInItem isn't working. Hence, the value in the field is not selected. I tried with selectValue as well, same issue.
Could you please advice?
FYI my custom editor is extending a TextItem.
Code:
FormItemIcon icon = new FormItemIcon(); icon.setSrc(SilkImageConstants.ICON_SKIN_CONTROLS_DATE); setIcons(icon); setShowIcons(false); // If user clicks in this field addFocusHandler(new FocusHandler() { public void onFocus(FocusEvent event) { event.getItem().setShowIcons(true); event.getItem().redraw(); event.getItem().focusInItem(); } });
Comment