Class PartyVoteHistoryPageModContentFactoryImpl

java.lang.Object
com.hack23.cia.web.impl.ui.application.views.common.pagemode.AbstractPageModContentFactoryImpl
com.hack23.cia.web.impl.ui.application.views.common.pagemode.AbstractItemPageModContentFactoryImpl<com.hack23.cia.model.internal.application.data.party.impl.ViewRiksdagenParty>
com.hack23.cia.web.impl.ui.application.views.user.party.pagemode.PartyVoteHistoryPageModContentFactoryImpl
All Implemented Interfaces:
PageModeContentFactory

@Component public final class PartyVoteHistoryPageModContentFactoryImpl extends AbstractItemPageModContentFactoryImpl<com.hack23.cia.model.internal.application.data.party.impl.ViewRiksdagenParty>
The Class VoteHistoryPageModContentFactoryImpl.
  • Field Details

  • Constructor Details

    • PartyVoteHistoryPageModContentFactoryImpl

      public PartyVoteHistoryPageModContentFactoryImpl()
      Instantiates a new party vote history page mod content factory impl.
  • Method Details

    • createContent

      @Secured({"ROLE_ANONYMOUS","ROLE_USER","ROLE_ADMIN"}) public com.vaadin.ui.Layout createContent(String parameters, com.vaadin.ui.MenuBar menuBar, com.vaadin.ui.Panel panel)
      Description copied from interface: PageModeContentFactory
      Creates a new PageModeContent object.
      Parameters:
      parameters - the parameters
      menuBar - the menu bar
      panel - the panel
      Returns:
      the layout
    • matches

      public boolean matches(String page, String parameters)
      Description copied from interface: PageModeContentFactory
      Matches.
      Parameters:
      page - the page
      parameters - the parameters
      Returns:
      true, if successful
    • getItem

      protected com.hack23.cia.model.internal.application.data.party.impl.ViewRiksdagenParty getItem(String parameters)
      Description copied from class: AbstractItemPageModContentFactoryImpl
      Gets the item.
      Specified by:
      getItem in class AbstractItemPageModContentFactoryImpl<com.hack23.cia.model.internal.application.data.party.impl.ViewRiksdagenParty>
      Parameters:
      parameters - the parameters
      Returns:
      the item
    • getPartyMenuItemFactory

      protected final PartyMenuItemFactory getPartyMenuItemFactory()
      Gets the party menu item factory.
      Returns:
      the party menu item factory
    • pageCompleted

      protected final void pageCompleted(String parameters, com.vaadin.ui.Component panel, String pageId, com.hack23.cia.model.internal.application.data.party.impl.ViewRiksdagenParty viewRiksdagenParty)
      Page completed.
      Parameters:
      parameters - the parameters
      panel - the panel
      pageId - the page id
      viewRiksdagenParty - the view riksdagen party