private void addActionsButtonsToLayout( String title,
ClickHandler addBelowListener,
ClickHandler moveDownListener,
ClickHandler moveUpListener ) {
final DirtyableHorizontalPane hp = new DirtyableHorizontalPane();
Image addPattern = CommonAltedImages.INSTANCE.NewItemBelow();
addPattern.setTitle( title );
addPattern.addClickHandler( addBelowListener );
Image moveDown = CommonAltedImages.INSTANCE.MoveDown();
moveDown.setTitle( Constants.INSTANCE.MoveDown() );
moveDown.addClickHandler( moveDownListener );
Image moveUp = CommonAltedImages.INSTANCE.MoveUp();
moveUp.setTitle( Constants.INSTANCE.MoveUp() );
moveUp.addClickHandler( moveUpListener );
hp.add( addPattern );
hp.add( moveDown );
hp.add( moveUp );
layout.setWidget( currentLayoutRow,
4,
hp );
layout.getFlexCellFormatter().setHorizontalAlignment( currentLayoutRow,