/** * The participating component == this. * * @see org.apache.wicket.extensions.breadcrumb.IBreadCrumbParticipant#getComponent() */ @Override public Component getComponent() { return decorated.getComponent(); }
/** * The participating component == this. * * @see org.apache.wicket.extensions.breadcrumb.IBreadCrumbParticipant#getComponent() */ public Component getComponent() { return decorated.getComponent(); }
protected void activateParentAndDisplayInfo(final String infoMsg) { final IBreadCrumbParticipant parentBreadcrumb = activateParent(); parentBreadcrumb.getComponent().info(infoMsg); }
/** * @see org.apache.wicket.markup.html.link.Link#onClick() */ @Override public void onClick() { // get the currently active particpant final IBreadCrumbParticipant active = breadCrumbModel.getActive(); if (active == null) { throw new IllegalStateException("The model has no active bread crumb. Before using " + this + ", you have to have at least one bread crumb in the model"); } // get the participant to set as active final IBreadCrumbParticipant participant = getParticipant(active.getComponent().getId()); // add back button support addStateChange(); // set the next participant as the active one breadCrumbModel.setActive(participant); }
/** * Callback for the onClick event. If ajax failed and this event was generated via a normal link * the target argument will be null * * @param target * ajax target if this linked was invoked using ajax, null otherwise */ @Override public void onClick(AjaxRequestTarget target) { // get the currently active particpant final IBreadCrumbParticipant active = breadCrumbModel.getActive(); if (active == null) { throw new IllegalStateException("The model has no active bread crumb. Before using " + this + ", you have to have at least one bread crumb in the model"); } // get the participant to set as active final IBreadCrumbParticipant participant = getParticipant(active.getComponent().getId()); // add back button support addStateChange(); // set the next participant as the active one breadCrumbModel.setActive(participant); }
/** * @see org.apache.wicket.markup.html.link.Link#onClick() */ @Override public void onClick() { // get the currently active particpant final IBreadCrumbParticipant active = breadCrumbModel.getActive(); if (active == null) { throw new IllegalStateException("The model has no active bread crumb. Before using " + this + ", you have to have at least one bread crumb in the model"); } // get the participant to set as active final IBreadCrumbParticipant participant = getParticipant(active.getComponent().getId()); // add back button support addStateChange(new Change() { private static final long serialVersionUID = 1L; @Override public void undo() { breadCrumbModel.setActive(active); } }); // set the next participant as the active one breadCrumbModel.setActive(participant); }
MarkupContainer parent = previous.getComponent().getParent(); if (parent != null)
MarkupContainer parent = previous.getComponent().getParent(); if (parent != null)