View Javadoc
1   package com.atlassian.plugin.web.api.model;
2   
3   import com.atlassian.plugin.web.api.WebSection;
4   
5   import javax.annotation.Nonnull;
6   import java.util.Map;
7   
8   public class WebSectionImpl extends AbstractWebFragment implements WebSection {
9       private final String location;
10  
11      WebSectionImpl(final String completeKey, final String label, final String title, final String styleClass, final String id, final Map<String, String> params, final int weight,
12                     final String location) {
13          super(completeKey, label, title, styleClass, id, params, weight);
14          this.location = location;
15      }
16  
17      @Nonnull
18      @Override
19      public String getLocation() {
20          return location;
21      }
22  
23      @Override
24      protected String toStringOfFields() {
25          return super.toStringOfFields() + ", location=" + location;
26      }
27  }