public class AutoProgressBar extends ProgressBar
creationTime, currentRecord, lastUpdate, progress, progressBars, session, totalRecords
Constructor and Description |
---|
AutoProgressBar(ScrapingSession session,
java.util.List<ProgressBar> progressBarList,
java.lang.String sessionKey,
java.util.Collection<java.lang.String> values)
Builds a progress bar that will track itself using given values
|
AutoProgressBar(ScrapingSession session,
java.util.List<ProgressBar> progressBarList,
java.lang.String sessionKey,
java.lang.String... values)
Builds a progress bar that will track itself using given values
|
Modifier and Type | Method and Description |
---|---|
boolean |
autoUpdateProgressLevel()
Automatically updates the progress of this bar, base on the value of the appropriate session variable
|
boolean |
equals(java.lang.Object o)
Checks to see if this is equal to another object.
|
java.lang.String[] |
getLogDisplay()
Get the lines to show for this progress bar in the log
|
java.lang.String |
getSessionKey()
Returns the value this progress bar watches for in the session variable keys
|
java.lang.String |
getWebDisplay()
Generates the HTML code for this progress bar.
|
void |
reset()
Resets the values for this progress bar, as if it had been just barely created
|
add, getCreationTime, getCurrent, getIndex, getPercent, getRemainingTime, getTitle, getTotal, setCreationTime, setCurrent, setCurrent, setPercent, setProgress, setProgress, setTitle, setTotal, setTotal, updateProgress
public AutoProgressBar(ScrapingSession session, java.util.List<ProgressBar> progressBarList, java.lang.String sessionKey, java.lang.String... values)
session
- The scraping session this progress bar is attached toprogressBarList
- The list of progress bars this is linked tosessionKey
- The sessionKey (session variable) this uses to track it's progressvalues
- The values that can be set for this barpublic AutoProgressBar(ScrapingSession session, java.util.List<ProgressBar> progressBarList, java.lang.String sessionKey, @NotNull java.util.Collection<java.lang.String> values)
session
- The scraping session this progress bar is attached toprogressBarList
- The list of progress bars this is linked tosessionKey
- The sessionKey (session variable) this uses to track it's progressvalues
- The values that can be set for this barpublic java.lang.String getWebDisplay()
getWebDisplay
in class ProgressBar
public java.lang.String[] getLogDisplay()
getLogDisplay
in class ProgressBar
public boolean autoUpdateProgressLevel()
public void reset()
public java.lang.String getSessionKey()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- The other object