public AttributesViewImpl() {
initWidget(uiBinder.createAndBindUi(this));
// When the widget list is reordered, notify the presenter.
attributesPanel.addWidgetsReorderedHandler(
new WidgetsReorderedHandler() {
@Override
public void onWidgetsReordered(WidgetsReorderedEvent event) {
List<Long> attributeIDs = Lists.newArrayList();
for (Widget widget : event.getWidgetOrdering()) {
attributeIDs.add(((AttributeViewImpl) widget).getAttributeId());