Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Code snippet from BeeStore
@Override
protected void onBind() {
setInSlot(SLOT_MAIN, shoppingCartPresenter);
addRegisteredHandler(CheckoutContinueEvent.TYPE, this);
}
@Override
public void onCheckoutContinue(CheckoutContinueEvent event) {
if (getChildren(SLOT_MAIN).contains(shoppingCartPresenter)) {
setInSlot(SLOT_MAIN, addressPresenter);
} else if (event.getSource() == addressPresenter) {
addToSlot(SLOT_MAIN, orderPresenter);
} else if (event.getSource() == orderPresenter) {
addToSlot(SLOT_MAIN, paymentPresenter);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.