public void refresh() { if (elementWrapper != null) { nameText.removeModifyListener(this); nameText.setText(elementWrapper.getName()); nameText.addModifyListener(this); } }
public void modifyText(ModifyEvent arg0) { if (elementWrapper != null) { elementWrapper.setName(nameText.getText()); } }