@@ -53,23 +53,23 @@ public class Carousel extends Component implements HasSize {
5353 private Slide [] slides ;
5454
5555 public Carousel (Slide ... paperSlides ) {
56- this . setSlides (paperSlides );
56+ setSlides (paperSlides );
5757 updateSlides (paperSlides );
5858 initProperties ();
5959 }
6060
6161 private void updateSlides (Slide ... paperSlides ) {
6262 for (Slide slide : paperSlides ) {
63- this . getElement ().appendChild (slide .getElement ());
63+ getElement ().appendChild (slide .getElement ());
6464 }
6565 }
6666
6767 private void initProperties () {
68- this . setAutoProgress (false );
69- this . setSlideDuration (DEFAULT_SLIDE_DURATION );
70- this . setStartPosition (0 );
71- this . setDisableSwipe (false );
72- this . setHideNavigation (false );
68+ setAutoProgress (false );
69+ setSlideDuration (DEFAULT_SLIDE_DURATION );
70+ setStartPosition (0 );
71+ setDisableSwipe (false );
72+ setHideNavigation (false );
7373 }
7474
7575 // PROPERTIES
@@ -83,68 +83,68 @@ public void setSlides(Slide[] slides) {
8383 }
8484
8585 public boolean isAutoProgress () {
86- return this . getElement ().getProperty (AUTO_PROGRESS , false );
86+ return getElement ().getProperty (AUTO_PROGRESS , false );
8787 }
8888
8989 public void setAutoProgress (boolean autoProgress ) {
90- this . getElement ().setAttribute (AUTO_PROGRESS , autoProgress );
90+ getElement ().setAttribute (AUTO_PROGRESS , autoProgress );
9191 }
9292
9393 public int getSlideDuration () {
94- return this . getElement ().getProperty (SLIDE_DURATION , 0 );
94+ return getElement ().getProperty (SLIDE_DURATION , 0 );
9595 }
9696
9797 public void setSlideDuration (int slideDuration ) {
98- this . getElement ().setProperty (SLIDE_DURATION , slideDuration );
98+ getElement ().setProperty (SLIDE_DURATION , slideDuration );
9999 }
100100
101101 public int getStartPosition () {
102- return this . getElement ().getProperty (POSITION , 0 );
102+ return getElement ().getProperty (POSITION , 0 );
103103 }
104104
105105 public void setStartPosition (int startPosition ) {
106- this . getElement ().setAttribute (POSITION , "" + startPosition );
106+ getElement ().setAttribute (POSITION , "" + startPosition );
107107 }
108108
109109 public boolean isDisableSwipe () {
110- return this . getElement ().getProperty (DISABLE_SWIPE , false );
110+ return getElement ().getProperty (DISABLE_SWIPE , false );
111111 }
112112
113113 public void setDisableSwipe (boolean disableSwipe ) {
114- this . getElement ().setAttribute (DISABLE_SWIPE , disableSwipe );
114+ getElement ().setAttribute (DISABLE_SWIPE , disableSwipe );
115115 }
116116
117117 public boolean isHideNavigation () {
118- return this . getElement ().getProperty (HIDE_NAV , false );
118+ return getElement ().getProperty (HIDE_NAV , false );
119119 }
120120
121121 public void setHideNavigation (boolean hideNavigation ) {
122- this . getElement ().setAttribute (HIDE_NAV , hideNavigation );
122+ getElement ().setAttribute (HIDE_NAV , hideNavigation );
123123 }
124124
125125 // FLUENT API
126126 public Carousel withAutoProgress () {
127- this . setAutoProgress (true );
127+ setAutoProgress (true );
128128 return this ;
129129 }
130130
131131 public Carousel withoutSwipe () {
132- this . setDisableSwipe (true );
132+ setDisableSwipe (true );
133133 return this ;
134134 }
135135
136136 public Carousel withoutNavigation () {
137- this . setHideNavigation (true );
137+ setHideNavigation (true );
138138 return this ;
139139 }
140140
141141 public Carousel withSlideDuration (int slideDuration ) {
142- this . setSlideDuration (slideDuration );
142+ setSlideDuration (slideDuration );
143143 return this ;
144144 }
145145
146146 public Carousel withStartPosition (int startPosition ) {
147- this . setStartPosition (startPosition );
147+ setStartPosition (startPosition );
148148 return this ;
149149 }
150150
@@ -163,12 +163,12 @@ public String getHeight() {
163163 // METHODS
164164 /** Move to the next slide */
165165 public void moveNext () {
166- this . getElement ().callJsFunction ("moveNext" );
166+ getElement ().callJsFunction ("moveNext" );
167167 }
168168
169169 /** Move to the previous slide */
170170 public void movePrev () {
171- this . getElement ().callJsFunction ("movePrev" );
171+ getElement ().callJsFunction ("movePrev" );
172172 }
173173
174174 /**
@@ -177,7 +177,7 @@ public void movePrev() {
177177 * @param slide
178178 */
179179 public void movePos (int slide ) {
180- this . getElement ().callJsFunction ("movePos" , "" + slide );
180+ getElement ().callJsFunction ("movePos" , "" + slide );
181181 }
182182
183183 // EVENTS
0 commit comments