@Override public void edit(final VnicProfileModel model) { driver.edit(model); publicInfo.setVisible(model.getPublicUse().getIsAvailable()); nameEditor.addKeyPressHandler( new KeyPressHandler() { @Override public void onKeyPress(KeyPressEvent event) { Scheduler.get() .scheduleDeferred( new ScheduledCommand() { @Override public void execute() { ValueChangeEvent.fire( nameEditor.asValueBox(), nameEditor.asValueBox().getValue()); } }); } }); nameEditor .asValueBox() .addValueChangeHandler( new ValueChangeHandler<Object>() { @Override public void onValueChange(ValueChangeEvent<Object> event) { ValueChangeEvent.fire(VnicProfileWidget.this, model); } }); }
private void initStyles() { nameEditor.addContentWidgetStyleName(style.name()); publicUseEditor.addContentWidgetStyleName(style.publicUse()); networkQoSEditor.addContentWidgetStyleName(style.qos()); }