Tabnine Logo
IBreadCrumbModel.getActive
Code IndexAdd Tabnine to your IDE (free)

How to use
getActive
method
in
org.apache.wicket.extensions.breadcrumb.IBreadCrumbModel

Best Java code snippets using org.apache.wicket.extensions.breadcrumb.IBreadCrumbModel.getActive (Showing top 7 results out of 315)

origin: apache/wicket

@Override
public IBreadCrumbParticipant getActive()
{
  return decorated.getActive();
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * @see org.apache.wicket.extensions.breadcrumb.IBreadCrumbModel#getActive()
 */
public IBreadCrumbParticipant getActive()
{
  return decorated.getActive();
}
origin: apache/wicket

/**
 * Activates the provided participant, which typically has the effect of replacing this current
 * panel with the one provided - as the participant typically would be a {@link BreadCrumbPanel
 * bread crumb panel} - and updating the bread crumb model of this panel, pushing the bread
 * crumb for the given participant on top.
 * 
 * @param participant
 *            The participant to set as the active one
 */
public void activate(final IBreadCrumbParticipant participant)
{
  // get the currently active participant
  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");
  }
  // add back button support
  addStateChange();
  // set the bread crumb panel as the active one
  breadCrumbModel.setActive(participant);
}
origin: org.ops4j.pax.wicket/pax-wicket-service

final IBreadCrumbParticipant active = breadCrumbModel.getActive();
if (active == null)
origin: apache/wicket

/**
 * @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);
}
origin: org.onehippo.cms7/hippo-cms-api

/**
 * 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);
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * @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);
}
org.apache.wicket.extensions.breadcrumbIBreadCrumbModelgetActive

Javadoc

Gets the currently active participant, if any.

Popular methods of IBreadCrumbModel

  • allBreadCrumbParticipants
    Lists the bread crumb participants in this model.
  • setActive
    Sets the IBreadCrumbParticipant as the active one. Implementations should call IBreadCrumbModelListe
  • addListener
    Adds a bread crumb model listener.
  • removeListener
    Removes a bread crumb model listener.

Popular in Java

  • Finding current android device location
  • setRequestProperty (URLConnection)
  • addToBackStack (FragmentTransaction)
  • notifyDataSetChanged (ArrayAdapter)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Reference (javax.naming)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now