1. Project Clover database Tue Dec 20 2016 21:24:09 CET
  2. Package org.xwiki.rendering.macro.gallery

File GalleryMacroParameters.java

 

Coverage histogram

../../../../../img/srcFileCovDistChart10.png
0% of files have more coverage

Code metrics

0
6
6
1
97
38
6
1
1
6
1

Classes

Class Line # Actions
GalleryMacroParameters 31 6 0% 6 0
1.0100%
 

Contributing tests

This file is covered by 3 tests. .

Source view

1    /*
2    * See the NOTICE file distributed with this work for additional
3    * information regarding copyright ownership.
4    *
5    * This is free software; you can redistribute it and/or modify it
6    * under the terms of the GNU Lesser General Public License as
7    * published by the Free Software Foundation; either version 2.1 of
8    * the License, or (at your option) any later version.
9    *
10    * This software is distributed in the hope that it will be useful,
11    * but WITHOUT ANY WARRANTY; without even the implied warranty of
12    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13    * Lesser General Public License for more details.
14    *
15    * You should have received a copy of the GNU Lesser General Public
16    * License along with this software; if not, write to the Free
17    * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18    * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19    */
20    package org.xwiki.rendering.macro.gallery;
21   
22    import org.xwiki.properties.annotation.PropertyDescription;
23    import org.xwiki.properties.annotation.PropertyId;
24   
25    /**
26    * Parameters for the {@link org.xwiki.rendering.internal.macro.gallery.GalleryMacro}.
27    *
28    * @version $Id: 8f56eb6e3c558943f89a66d5599be6ac86c1f5c8 $
29    * @since 8.3RC1
30    */
 
31    public class GalleryMacroParameters
32    {
33    private String width;
34   
35    private String height;
36   
37    private String classNames;
38   
39    /**
40    * @return the gallery width
41    */
 
42  9 toggle public String getWidth()
43    {
44  9 return width;
45    }
46   
47    /**
48    * Sets the gallery width.
49    *
50    * @param width the gallery width
51    */
 
52  2 toggle @PropertyDescription("The gallery width")
53    public void setWidth(String width)
54    {
55  2 this.width = width;
56    }
57   
58    /**
59    * @return the gallery height
60    */
 
61  9 toggle public String getHeight()
62    {
63  9 return height;
64    }
65   
66    /**
67    * Sets the gallery height.
68    *
69    * @param height the gallery height
70    */
 
71  2 toggle @PropertyDescription("The gallery height")
72    public void setHeight(String height)
73    {
74  2 this.height = height;
75    }
76   
77    /**
78    * @return the CSS class names
79    */
 
80  6 toggle public String getClassNames()
81    {
82  6 return classNames;
83    }
84   
85    /**
86    * Sets some custom CSS class names.
87    *
88    * @param classNames the custom CSS class names
89    */
 
90  1 toggle @PropertyId("class")
91    @PropertyDescription("Custom CSS class names to set on the gallery container. "
92    + "Use this parameter if you want to customize the appearance of a gallery instance.")
93    public void setClassNames(String classNames)
94    {
95  1 this.classNames = classNames;
96    }
97    }