View Javadoc

1   /*
2   Copyright 2010 James Pether Sörling Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. 
3   	$Id
4   */
5   package com.hack23.cia.web.views.user;
6   
7   import java.util.List;
8   
9   import com.hack23.cia.model.application.dto.common.UserSessionDTO;
10  import com.hack23.cia.model.application.impl.common.Agency;
11  import com.hack23.cia.model.sweden.impl.ParliamentMember;
12  import com.hack23.cia.web.common.ImageConstants;
13  import com.hack23.cia.web.views.components.gridboxes.ParliamentMemberGridBox;
14  import com.hack23.cia.web.views.components.panels.SimpleComponentPanel;
15  
16  /***
17   * The Class ParliamentMemberSearchResultPanel.
18   */
19  public class ParliamentMemberSearchResultPanel extends SimpleComponentPanel {
20  
21      /***
22       * Instantiates a new parliament member search result panel.
23       *
24       * @param userSessionDTO the user session dto
25       * @param currentList the current list
26       */
27      public ParliamentMemberSearchResultPanel(final UserSessionDTO userSessionDTO,
28              final List<ParliamentMember> currentList) {
29          super(userSessionDTO
30                  .getLanguageResource(Agency.LanguageContentKey.SEARCH_RESULT),
31                  ImageConstants.POLITICIAN_ICON_SMALL,
32                  new ParliamentMemberGridBox(userSessionDTO,currentList));
33      }
34  }