update(numeric percent, numeric totalSizeKB, numeric completeSizeKB, numeric speedKBps)
Call me to update the screen.
Methods inherited from class lucee.Component
None
Constructor Detail
init
public init()
Property Detail
ConsolePainter
property any
ConsolePainter
Attributes:
access - public
required - false
returntype - any
inject - provider:ConsolePainter
serializable - true
active
property boolean
active
= [false]
Attributes:
access - public
required - false
returntype - any
serializable - true
job
property any
job
Attributes:
access - public
required - false
returntype - any
inject - provider:InteractiveJob
serializable - true
memento
property struct
memento
Attributes:
access - public
required - false
returntype - any
serializable - true
print
property any
print
Attributes:
access - public
required - false
returntype - any
inject - Print
serializable - true
shell
property any
shell
Attributes:
access - public
required - false
returntype - any
inject - shell
serializable - true
system
property any
system
Attributes:
access - public
required - false
returntype - any
inject - system@constants
serializable - true
Method Detail
clear
public any clear()
formatExecTime
public any formatExecTime([any sec])
Parameters:
sec
formatSize
private any formatSize([any sizeKB], [any numberChars])
Parameters:
sizeKB
numberChars
getActive
public string getActive()
getConsolePainter
public string getConsolePainter()
getJob
public string getJob()
getLines
public any getLines()
getMemento
public string getMemento()
getPrint
public string getPrint()
getShell
public string getShell()
getSystem
public string getSystem()
setActive
public any setActive(boolean active)
Parameters:
active
setConsolePainter
public any setConsolePainter(any ConsolePainter)
Parameters:
ConsolePainter
setJob
public any setJob(any job)
Parameters:
job
setMemento
public any setMemento(struct memento)
Parameters:
memento
setPrint
public any setPrint(any print)
Parameters:
print
setShell
public any setShell(any shell)
Parameters:
shell
setSystem
public any setSystem(any system)
Parameters:
system
update
public any update(numeric percent, numeric totalSizeKB, numeric completeSizeKB, numeric speedKBps)
Call me to update the screen. If another thread outputs to the console in the mean time, it will mess it up.
This method assumes it's on a fresh line with the cursor at the far left.
Will print a line break if the percent is 100