public class ProgressWidget extends LayoutWidget
LayoutWidget.Factory, LayoutWidget.OnBackingColorChangedListener, LayoutWidget.OnDragEnabledChangedListener
AbstractParentWidget.OnWidgetListChangedListener
MapWidget2.OnWidgetSizeChangedListener
MapWidget.OnClickListener, MapWidget.OnLongPressListener, MapWidget.OnMoveListener, MapWidget.OnPressListener, MapWidget.OnUnpressListener, MapWidget.OnVisibleChangedListener, MapWidget.OnWidgetPointChangedListener
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PROGRESS_BAR_COLOR |
Constructor and Description |
---|
ProgressWidget() |
Modifier and Type | Method and Description |
---|---|
int |
getMax()
Return the upper limit of this progress bar's range.=
|
int |
getMin()
Return the lower limit of this progress bar's range.=
|
int |
getProgress()
Get the progress bar's current level of progress.
|
boolean |
setHeight(float height) |
void |
setMax(int value)
Set the upper range of the progress bar max.
|
void |
setMin(int value)
Set the lower range of the progress bar to min.
|
boolean |
setProgress(int value)
Sets the current progress to the specified value
|
void |
setProgressBarColor(int color)
Sets the color of the progress bar.
|
boolean |
setWidth(float width) |
addOnBackingColorChangedListener, addOnDragEnabledChangedListener, fadeAlpha, getAlpha, getBackingColor, getDragEnabled, getNinePatchBG, isFadingAlpha, onBackingColorChanged, onDragEnabledChanged, removeOnBackingColorChangedListener, removeOnDragEnabledChangedListener, setAlpha, setBackingColor, setDragEnabled, setNinePatchBG
addChildWidget, addChildWidgetAt, addOnWidgetListChangedListener, addWidget, addWidgetAt, findWidget, getChildAt, getChildCount, getChildren, getChildWidgetAt, getChildWidgetCount, getChildWidgets, getParent, getSortedChildrenWidgets, getSortedWidgets, onActionBarToggled, onChildWidgetCanBeAdded, onWidgetAdded, onWidgetAdded, onWidgetCanBeAdded, onWidgetRemoved, onWidgetRemoved, orientationChanged, removeChildWidget, removeChildWidgetAt, removeOnWidgetListChangedListener, removeWidget, removeWidgetAt, seekHit, seekWidgetHit, setZOrder
addOnWidgetSizeChangedListener, getSize, onSizeChanged, removeOnWidgetSizeChangedListener, seekHit, testHit
addOnClickListener, addOnHoverListener, addOnLongPressListener, addOnMoveListener, addOnPressListener, addOnUnpressListener, addOnVisibleChangedListener, addOnWidgetPointChangedListener, equals, getAbsolutePath, getAbsolutePosition, getAbsoluteWidgetPosition, getHeight, getMargins, getName, getPadding, getPointX, getPointY, getPropertyValue, getSize, getWidth, getZOrder, hashCode, isEnterable, isTouchable, isVisible, onClick, onClick, onHover, onLongPress, onMove, onMove, onPointChanged, onPress, onPress, onUnpress, onUnpress, onVisibleChanged, registerForwardedListener, removeOnClickListener, removeOnHoverListener, removeOnLongPressListener, removeOnMoveListener, removeOnPressListener, removeOnUnpressListener, removeOnVisibleChangedListener, removeOnWidgetPointChangedListener, setMargins, setName, setPadding, setPadding, setParent, setPoint, setSize, setTouchable, setVisible, unregisterForwardedListener, visitPropertyInfos
public int getMax()
public void setMax(int value)
Set the upper range of the progress bar max.
value
- the upper range of this progress barpublic int getMin()
public void setMin(int value)
value
- the lower range of this progress barpublic int getProgress()
public boolean setProgress(int value)
public void setProgressBarColor(int color)
color
- the color to use.