Type Parameters:
T - The type of the model object for this link
All Implemented Interfaces:
Activatable, IBootstrapButton<BootstrapBookmarkablePageLink<T>>, Serializable, Iterable<Component>, IEventSink, IEventSource, IFeedbackContributor, IConverterLocator, IGenericComponent<T,Link<T>>, IMetadataContext<Serializable,Component>, IRequestListener, IHeaderContributor, IRequestableComponent, IHierarchical<Component>, IClusterable

public class MenuBookmarkablePageLink<T> extends BootstrapBookmarkablePageLink<T>
A bootstrap style BookmarkablePageLink
Author:
miha
See Also:
  • Constructor Details

    • MenuBookmarkablePageLink

      public MenuBookmarkablePageLink(Class<P> pageClass)
      Constructor.
      Type Parameters:
      P - type of the page class
      Parameters:
      pageClass - The class of page to link to
    • MenuBookmarkablePageLink

      public MenuBookmarkablePageLink(Class<P> pageClass, IModel<String> label)
      Constructor.
      Type Parameters:
      P - type of the page class
      Parameters:
      pageClass - The class of page to link to
      label - button label
    • MenuBookmarkablePageLink

      public MenuBookmarkablePageLink(Class<P> pageClass, PageParameters parameters, IModel<String> model)
      Constructor.
      Type Parameters:
      P - type of the page class
      Parameters:
      pageClass - The class of page to link to
      parameters - The page parameters
      model - The label
  • Method Details

    • isActive

      public boolean isActive(Component button)
      Description copied from interface: Activatable
      Decides whether the current instance (this) is the active item.
      Specified by:
      isActive in interface Activatable
      Overrides:
      isActive in class BootstrapBookmarkablePageLink<T>
      Parameters:
      button - the current instance as a Component
      Returns:
      true if the item is the current active one