com.vaadin.polymer.paper.widget.PaperProgress Maven / Gradle / Ivy
/*
* This code was generated with Vaadin Web Component GWT API Generator,
* from paper-progress project by The Polymer Authors
* that is licensed with http://polymer.github.io/LICENSE.txt license.
*/
package com.vaadin.polymer.paper.widget;
import com.vaadin.polymer.paper.element.*;
import com.vaadin.polymer.PolymerWidget;
import com.vaadin.polymer.elemental.*;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.core.client.JavaScriptObject;
/**
* The progress bars are for situations where the percentage completed can be
determined. They give users a quick sense of how much longer an operation
will take.
* Example:
* <paper-progress value="10"></paper-progress>
*
*
*
There is also a secondary progress which is useful for displaying intermediate
progress, such as the buffer level during a streaming playback progress bar.
* Example:
* <paper-progress value="10" secondary-progress="30"></paper-progress>
*
*
*
Styling progress bar:
* To change the active progress bar color:
* paper-progress {
* --paper-progress-active-color: #e91e63;
* }
*
*
*
To change the secondary progress bar color:
* paper-progress {
* --paper-progress-secondary-color: #f8bbd0;
* }
*
*
*
To change the progress bar background color:
* paper-progress {
* --paper-progress-container-color: #64ffda;
* }
*
*
*
*/
public class PaperProgress extends PolymerWidget {
/**
* Default Constructor.
*/
public PaperProgress() {
this("");
}
/**
* Constructor used by UIBinder to create widgets with content.
*/
public PaperProgress(String html) {
super(PaperProgressElement.TAG, PaperProgressElement.SRC, html);
}
/**
* Gets a handle to the Polymer object's underlying DOM element.
*/
public PaperProgressElement getPolymerElement() {
return (PaperProgressElement) getElement();
}
/**
* Use an indeterminate progress indicator.
*
* JavaScript Info:
* @property indeterminate
* @type Boolean
*
*/
public boolean getIndeterminate(){
return getPolymerElement().getIndeterminate();
}
/**
* Use an indeterminate progress indicator.
*
* JavaScript Info:
* @property indeterminate
* @type Boolean
*
*/
public void setIndeterminate(boolean value) {
getPolymerElement().setIndeterminate(value);
}
/**
* The number that represents the current secondary progress.
*
* JavaScript Info:
* @property secondaryProgress
* @type Number
*
*/
public double getSecondaryProgress(){
return getPolymerElement().getSecondaryProgress();
}
/**
* The number that represents the current secondary progress.
*
* JavaScript Info:
* @property secondaryProgress
* @type Number
*
*/
public void setSecondaryProgress(double value) {
getPolymerElement().setSecondaryProgress(value);
}
/**
* The number that represents the current secondary progress.
*
* JavaScript Info:
* @attribute secondary-progress
*
*/
public void setSecondaryProgress(String value) {
getPolymerElement().setAttribute("secondary-progress", value);
}
/**
* The secondary ratio
*
* JavaScript Info:
* @property secondaryRatio
* @type Number
*
*/
public double getSecondaryRatio(){
return getPolymerElement().getSecondaryRatio();
}
/**
* The secondary ratio
*
* JavaScript Info:
* @property secondaryRatio
* @type Number
*
*/
public void setSecondaryRatio(double value) {
getPolymerElement().setSecondaryRatio(value);
}
/**
* The secondary ratio
*
* JavaScript Info:
* @attribute secondary-ratio
*
*/
public void setSecondaryRatio(String value) {
getPolymerElement().setAttribute("secondary-ratio", value);
}
/**
*
*
* JavaScript Info:
* @property observers
* @type Array
*
*/
public JsArray getObservers(){
return getPolymerElement().getObservers();
}
/**
*
*
* JavaScript Info:
* @property observers
* @type Array
*
*/
public void setObservers(JsArray value) {
getPolymerElement().setObservers(value);
}
/**
* The number that indicates the maximum value of the range.
*
* JavaScript Info:
* @property max
* @type Number
* @behavior PaperSlider
*/
public double getMax(){
return getPolymerElement().getMax();
}
/**
* The number that indicates the maximum value of the range.
*
* JavaScript Info:
* @property max
* @type Number
* @behavior PaperSlider
*/
public void setMax(double value) {
getPolymerElement().setMax(value);
}
/**
* The number that indicates the maximum value of the range.
*
* JavaScript Info:
* @attribute max
* @behavior PaperSlider
*/
public void setMax(String value) {
getPolymerElement().setAttribute("max", value);
}
/**
* The number that indicates the minimum value of the range.
*
* JavaScript Info:
* @property min
* @type Number
* @behavior PaperSlider
*/
public double getMin(){
return getPolymerElement().getMin();
}
/**
* The number that indicates the minimum value of the range.
*
* JavaScript Info:
* @property min
* @type Number
* @behavior PaperSlider
*/
public void setMin(double value) {
getPolymerElement().setMin(value);
}
/**
* The number that indicates the minimum value of the range.
*
* JavaScript Info:
* @attribute min
* @behavior PaperSlider
*/
public void setMin(String value) {
getPolymerElement().setAttribute("min", value);
}
/**
* Returns the ratio of the value.
*
* JavaScript Info:
* @property ratio
* @type Number
* @behavior PaperSlider
*/
public double getRatio(){
return getPolymerElement().getRatio();
}
/**
* Returns the ratio of the value.
*
* JavaScript Info:
* @property ratio
* @type Number
* @behavior PaperSlider
*/
public void setRatio(double value) {
getPolymerElement().setRatio(value);
}
/**
* Returns the ratio of the value.
*
* JavaScript Info:
* @attribute ratio
* @behavior PaperSlider
*/
public void setRatio(String value) {
getPolymerElement().setAttribute("ratio", value);
}
/**
* Specifies the value granularity of the range’s value.
*
* JavaScript Info:
* @property step
* @type Number
* @behavior PaperSlider
*/
public double getStep(){
return getPolymerElement().getStep();
}
/**
* Specifies the value granularity of the range’s value.
*
* JavaScript Info:
* @property step
* @type Number
* @behavior PaperSlider
*/
public void setStep(double value) {
getPolymerElement().setStep(value);
}
/**
* Specifies the value granularity of the range’s value.
*
* JavaScript Info:
* @attribute step
* @behavior PaperSlider
*/
public void setStep(String value) {
getPolymerElement().setAttribute("step", value);
}
/**
* The number that represents the current value.
*
* JavaScript Info:
* @property value
* @type Number
* @behavior PaperSlider
*/
public double getValue(){
return getPolymerElement().getValue();
}
/**
* The number that represents the current value.
*
* JavaScript Info:
* @property value
* @type Number
* @behavior PaperSlider
*/
public void setValue(double value) {
getPolymerElement().setValue(value);
}
/**
* The number that represents the current value.
*
* JavaScript Info:
* @attribute value
* @behavior PaperSlider
*/
public void setValue(String value) {
getPolymerElement().setAttribute("value", value);
}
}