Make simple code to remove perspective buttons

FEA: ItEr75S04BugFixing
This commit is contained in:
Manuel Rego Casasnovas 2011-10-31 16:46:25 +01:00
parent ad511c51d3
commit ad3e033ed8

View file

@ -257,13 +257,9 @@ public class OrderCRUDController extends GenericForwardComposer {
} }
private void setupGlobalButtons() { private void setupGlobalButtons() {
Hbox perspectiveButtonsInsertionPoint = (Hbox) page Hbox perspectiveButtonsInsertionPoint = (Hbox) page
.getFellow("perspectiveButtonsInsertionPoint"); .getFellow("perspectiveButtonsInsertionPoint");
perspectiveButtonsInsertionPoint.getChildren().clear();
List<Component> children = perspectiveButtonsInsertionPoint
.getChildren();
perspectiveButtonsInsertionPoint.getChildren().removeAll(children);
createOrderButton.setParent(perspectiveButtonsInsertionPoint); createOrderButton.setParent(perspectiveButtonsInsertionPoint);
createOrderButton.addEventListener(Events.ON_CLICK, createOrderButton.addEventListener(Events.ON_CLICK,