Class Progress
- java.lang.Object
-
- org.patternfly.component.BaseComponentFlat<HTMLElement,Progress>
-
- org.patternfly.component.progress.Progress
-
- All Implemented Interfaces:
Finder<HTMLElement>,HasElement<HTMLElement,Progress>,HasHTMLElement<HTMLElement,Progress>,IsElement<HTMLElement>,TypedBuilder<HTMLElement,Progress>,Component,HasValue<Integer>
public class Progress extends BaseComponentFlat<HTMLElement,Progress> implements HasValue<Integer>
A progress bar informs users about the completion status of an ongoing process or task.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Progressadd(HelperText helperText)ProgressaddHelperText(HelperText helperText)ProgressariaLabel(String label)ProgressariaLabeledBy(String labeledBy)voiddecrease()Decreases the value of the progress component by the step value.voidincrease()Increases the value of the progress component by the step value.Progresslabel(ProgressLabel label)intmax()Retrieves the maximum value of the progress component.Progressmax(int max)ProgressmeasureLocation(MeasureLocation location)intmin()Retrieves the minimum value of the progress component.Progressmin(int min)ProgressonChange(ChangeHandler<Progress,Integer> changeHandler)Sets the change handler for the progress component.static Progressprogress()int[]range()Retrieves the range of values for the progress component.Progressrange(int min, int max)Progressrange(int min, int max, int step)Progresssize(Size size)Progressstatus(Status status)intstep()Retrieves the current step value of the progress component.Progressstep(int step)Progressthat()Progresstitle(String title)Progresstruncate()Integervalue()Progressvalue(int value)-
Methods inherited from class org.patternfly.component.BaseComponentFlat
componentType, element
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
progress
public static Progress progress()
-
addHelperText
public Progress addHelperText(HelperText helperText)
-
add
public Progress add(HelperText helperText)
-
min
public Progress min(int min)
-
max
public Progress max(int max)
-
step
public Progress step(int step)
-
range
public Progress range(int min, int max)
-
range
public Progress range(int min, int max, int step)
-
label
public Progress label(ProgressLabel label)
-
measureLocation
public Progress measureLocation(MeasureLocation location)
-
title
public Progress title(String title)
- Specified by:
titlein interfaceHasHTMLElement<HTMLElement,Progress>
-
truncate
public Progress truncate()
-
value
public Progress value(int value)
-
that
public Progress that()
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,Progress>
-
onChange
public Progress onChange(ChangeHandler<Progress,Integer> changeHandler)
Sets the change handler for the progress component.- Parameters:
changeHandler- The change handler to be set.- Returns:
- The progress component.
-
decrease
public void decrease()
Decreases the value of the progress component by the step value. If the new value is less than the minimum value, the minimum value is used instead.
-
increase
public void increase()
Increases the value of the progress component by the step value. If the new value is greater than the maximum value, the maximum value is used instead.
-
min
public int min()
Retrieves the minimum value of the progress component.- Returns:
- The minimum value of the progress component.
-
max
public int max()
Retrieves the maximum value of the progress component.- Returns:
- The maximum value of the progress component.
-
step
public int step()
Retrieves the current step value of the progress component.- Returns:
- The current step value of the progress component.
-
range
public int[] range()
Retrieves the range of values for the progress component.- Returns:
- An array containing the minimum, maximum, and step values of the Progress component.
-
-