Make use of GetUserCommand in the PropertiesCommand
[pithos] / src / gr / ebs / gss / client / ProgressBar.java
index 62a8d57..a2a19f2 100644 (file)
@@ -1,21 +1,19 @@
 /*
- * Copyright 2008, 2009 Electronic Business Systems Ltd.
+ * Copyright 2006 Robert Hanson <iamroberthanson AT gmail.com>
  *
- * This file is part of GSS.
+ * 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
  *
- * GSS is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
+ *    http://www.apache.org/licenses/LICENSE-2.0
  *
- * GSS is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with GSS.  If not, see <http://www.gnu.org/licenses/>.
+ * 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.
  */
+
 package gr.ebs.gss.client;
 
 import com.google.gwt.user.client.ui.FlexTable;
@@ -178,10 +176,10 @@ public class ProgressBar extends VerticalPanel {
        /**
         * Base constructor for this widget
         *
-        * @param elements The number of elements (bars) to show on the progress bar
+        * @param elementNo The number of elements (bars) to show on the progress bar
         * @param options The display options for the progress bar
         */
-       public ProgressBar(int elements, int options) {
+       public ProgressBar(int elementNo, int options) {
                // Read the options and set convenience variables
                if ((options & SHOW_TIME_REMAINING) == SHOW_TIME_REMAINING)
                        showRemaining = true;
@@ -189,19 +187,19 @@ public class ProgressBar extends VerticalPanel {
                        showText = true;
 
                // Set element count
-               this.elements = elements;
+               elements = elementNo;
 
                // Styling
                remainLabel.setStyleName("progressbar-remaining");
                textLabel.setStyleName("progressbar-text");
 
                // Initialize the progress elements
-               elementGrid = new Grid(1, elements);
+               elementGrid = new Grid(1, elementNo);
                elementGrid.setStyleName("progressbar-inner");
                elementGrid.setCellPadding(0);
                elementGrid.setCellSpacing(0);
 
-               for (int loop = 0; loop < elements; loop++) {
+               for (int loop = 0; loop < elementNo; loop++) {
                        Grid elm = new Grid(1, 1);
                        // elm.setHTML(0, 0, "&nbsp;");
                        elm.setHTML(0, 0, "");
@@ -238,10 +236,10 @@ public class ProgressBar extends VerticalPanel {
        /**
         * Constructor without options
         *
-        * @param elements The number of elements (bars) to show on the progress bar
+        * @param elementNo The number of elements (bars) to show on the progress bar
         */
-       public ProgressBar(int elements) {
-               this(elements, 0);
+       public ProgressBar(int elementNo) {
+               this(elementNo, 0);
        }
 
        /**
@@ -345,10 +343,10 @@ public class ProgressBar extends VerticalPanel {
         * placeholder must be {0}. For example, the following is a valid message:
         * "Hours remaining: {0}"
         *
-        * @param hoursMessage the hours message to set
+        * @param anHoursMessage the hours message to set
         */
-       public void setHoursMessage(String hoursMessage) {
-               this.hoursMessage = hoursMessage;
+       public void setHoursMessage(String anHoursMessage) {
+               hoursMessage = anHoursMessage;
        }
 
        /**
@@ -367,10 +365,10 @@ public class ProgressBar extends VerticalPanel {
         * placeholder must be {0}. For example, the following is a valid message:
         * "Minutes remaining: {0}"
         *
-        * @param minutesMessage the minutes message to set
+        * @param aMinutesMessage the minutes message to set
         */
-       public void setMinutesMessage(String minutesMessage) {
-               this.minutesMessage = minutesMessage;
+       public void setMinutesMessage(String aMinutesMessage) {
+               minutesMessage = aMinutesMessage;
        }
 
        /**
@@ -389,10 +387,10 @@ public class ProgressBar extends VerticalPanel {
         * placeholder must be {0}. For example, the following is a valid message:
         * "Seconds remaining: {0}"
         *
-        * @param secondsMessage the secondsMessage to set
+        * @param aSecondsMessage the secondsMessage to set
         */
-       public void setSecondsMessage(String secondsMessage) {
-               this.secondsMessage = secondsMessage;
+       public void setSecondsMessage(String aSecondsMessage) {
+               secondsMessage = aSecondsMessage;
        }
 
 }