All Implemented Interfaces:
Serializable, Iterable<Component>, IEventSink, IEventSource, IFeedbackContributor, IConverterLocator, IMetadataContext<Serializable,Component>, IHeaderContributor, IRequestableComponent, IHierarchical<Component>, IClusterable

public class ButtonList extends ListView<AbstractLink>
Author:
miha
See Also:
  • Constructor Details

    • ButtonList

      public ButtonList(String markupId, List<AbstractLink> list)
      Construct.
      Parameters:
      markupId - the component' id
      list - list of all buttons inside this button list
    • ButtonList

      public ButtonList(String id, IModel<List<AbstractLink>> model)
      Construct.
      Parameters:
      id - the component' id
      model - list model of all buttons inside this button list
  • Method Details

    • getButtonMarkupId

      public static String getButtonMarkupId()
      Returns:
      the markup id that is used for buttons in the list
    • hasActiveButton

      public final boolean hasActiveButton(Component activeButton)
      checks whether there is a button that is active or not
      Parameters:
      activeButton - the current active button
      Returns:
      true, if at least one button of button list is active
    • populateItem

      protected void populateItem(ListItem<AbstractLink> item)
      Specified by:
      populateItem in class ListView<AbstractLink>
    • configureLink

      protected void configureLink(AbstractLink link)