HorizontalPanel hp = new HorizontalPanel();
hp.setVerticalAlignment( VerticalPanel.ALIGN_MIDDLE );
hp.setHorizontalAlignment( HorizontalPanel.ALIGN_CENTER );
hp.setWidth( "100%" );
FocusPanel fp;
fp = new FocusPanel();
fp.setHeight( "100%" );
fp.setWidth( "50%" );
fp.add( new Image( resource.selectorAdd() ) );
fp.addClickHandler( new ClickHandler() {
public void onClick(ClickEvent event) {
hasRows.insertRowBefore( row );
}
} );
hp.add( fp );
fp = new FocusPanel();
fp.setHeight( "100%" );
fp.setWidth( "50%" );
fp.add( new Image( resource.selectorDelete() ) );
fp.addClickHandler( new ClickHandler() {
public void onClick(ClickEvent event) {
hasRows.deleteRow( row );
}