addNewLabel.setEditable(true);
addNewLabel.addValueChangeHandler(new ValueChangeHandler<String>() {
@Override
public void onValueChange(ValueChangeEvent<String> event) {
labelsPanel.remove(addNewLabel);
AccLabel label = capability.addLabel(event.getValue());
createLabel(label);
addBlankLabel();
}
});
addNewLabel.setVisible(isEditable);