Type Parameters:
S - the type of the sorting parameter
All Implemented Interfaces:
Serializable, Iterable<Component>, IEventSink, IEventSource, IFeedbackContributor, IConverterLocator, IMetadataContext<Serializable,Component>, IQueueRegion, IHeaderContributor, IComponentResolver, IRequestableComponent, IHierarchical<Component>, IClusterable

public abstract class BootstrapOrderByBorder<S> extends Border
A Bootstrap stylized component that wraps markup with an OrderByLink. This has the advantage of being able to add the attribute modifier to the wrapping element as opposed to the link, so that it can be attached to <th> or any other element. A set of IconType must be provided. For example: <th wicket:id="order-by-border">Heading</th>
Author:
Eric Hamel eric.hamel@me.com
See Also:
  • Constructor Details

    • BootstrapOrderByBorder

      public BootstrapOrderByBorder(String id, S property, ISortStateLocator<S> stateLocator)
      Construct.
      Parameters:
      id - the component id
      property - the property to be sorted on
      stateLocator - the state locator
  • Method Details

    • newOrderByLink

      protected OrderByLink<S> newOrderByLink(String id, S property, ISortStateLocator<S> stateLocator)
      create new sort order toggling link
      Parameters:
      id - component id
      property - sort property
      stateLocator - sort state locator
      Returns:
      link
    • onSortChanged

      protected void onSortChanged()
      This method is a hook for subclasses to perform an action after sort has changed
    • ascendingIconType

      protected abstract de.agilecoders.wicket.core.markup.html.bootstrap.image.IconType ascendingIconType()
    • descendingIconType

      protected abstract de.agilecoders.wicket.core.markup.html.bootstrap.image.IconType descendingIconType()
    • unsortedIconType

      protected abstract de.agilecoders.wicket.core.markup.html.bootstrap.image.IconType unsortedIconType()