if (addAllFunctionalities || setOfFunctionalities.contains(DualFunctionality.TOP))
{
top = new IconButton(appearance.top());
top.setToolTip(DkMain.i18n().label_move_top());
top.addSelectHandler(new SelectHandler()
{
@Override
public void onSelect(final SelectEvent event)
{
onTop();
}
});
buttonBar.add(top);
}
if (addAllFunctionalities || setOfFunctionalities.contains(DualFunctionality.UP))
{
up = new IconButton(appearance.up());
up.setToolTip(DkMain.i18n().label_move_up());
up.addSelectHandler(new SelectHandler()
{
@Override
public void onSelect(final SelectEvent event)
{
onUp();
}
});
buttonBar.add(up);
}
if (addAllFunctionalities || setOfFunctionalities.contains(DualFunctionality.ALL_RIGHT))
{
allRight = new IconButton(appearance.allRight());
allRight.setToolTip(DkMain.i18n().label_add_all());
allRight.addSelectHandler(new SelectHandler()
{
@Override
public void onSelect(final SelectEvent event)
{
onAllRight();
}
});
buttonBar.add(allRight);
}
if (addAllFunctionalities || setOfFunctionalities.contains(DualFunctionality.RIGHT))
{
right = new IconButton(appearance.right());
right.setToolTip(DkMain.i18n().label_add());
right.addSelectHandler(new SelectHandler()
{
@Override
public void onSelect(final SelectEvent event)
{
onRight();
}
});
buttonBar.add(right);
}
if (addAllFunctionalities || setOfFunctionalities.contains(DualFunctionality.LEFT))
{
left = new IconButton(appearance.left());
left.setToolTip(DkMain.i18n().label_remove());
left.addSelectHandler(new SelectHandler()
{
@Override
public void onSelect(final SelectEvent event)
{
onLeft();
}
});
buttonBar.add(left);
}
if (addAllFunctionalities || setOfFunctionalities.contains(DualFunctionality.ALL_LEFT))
{
allLeft = new IconButton(appearance.allLeft());
allLeft.setToolTip(DkMain.i18n().label_remove_all());
allLeft.addSelectHandler(new SelectHandler()
{
@Override
public void onSelect(final SelectEvent event)
{
onAllLeft();
}
});
buttonBar.add(allLeft);
}
if (addAllFunctionalities || setOfFunctionalities.contains(DualFunctionality.DOWN))
{
down = new IconButton(appearance.down());
down.setToolTip(DkMain.i18n().label_move_down());
down.addSelectHandler(new SelectHandler()
{
@Override
public void onSelect(final SelectEvent event)
{
onDown();
}
});
buttonBar.add(down);
}
if (addAllFunctionalities || setOfFunctionalities.contains(DualFunctionality.BOTTOM))
{
bottom = new IconButton(appearance.bottom());
bottom.setToolTip(DkMain.i18n().label_move_bottom());
bottom.addSelectHandler(new SelectHandler()
{
@Override
public void onSelect(final SelectEvent event)
{