lucee.Component
commandbox.system.util.ConsolePainter
Copyright Since 2014 CommandBox by Ortus Solutions, Corp www.coldbox.org | www.ortussolutions.com Handles timed redraws of the console for downloadable progress bars, generic progress bars, and interactive jobs
| Property Summary | ||||
|---|---|---|---|---|
| type | property | default | serializable | required |
boolean
|
active
|
false
|
true
|
false
|
any
|
future
|
true
|
false
|
|
any
|
job
|
true
|
false
|
|
any
|
multiSelect
|
true
|
false
|
|
any
|
progressBar
|
true
|
false
|
|
any
|
progressBarGeneric
|
true
|
false
|
|
any
|
shell
|
true
|
false
|
|
any
|
taskScheduler
|
true
|
false
|
|
any
|
wirebox
|
true
|
false
|
|
| Method Summary | |
|---|---|
any
|
clear()
Clear the console. |
any
|
forceStop([string message=''])
Stops up the scheduled painting thread and forces any active jobs to error and any active progress bars to clear. |
string
|
getActive()
|
string
|
getFuture()
|
string
|
getJob()
|
string
|
getMultiSelect()
|
string
|
getProgressBar()
|
string
|
getProgressBarGeneric()
|
string
|
getShell()
|
string
|
getTaskScheduler()
|
string
|
getWirebox()
|
any
|
onDIComplete()
|
any
|
paint()
Draw the lines to the console. |
any
|
setActive(boolean active)
|
any
|
setFuture(any future)
|
any
|
setJob(any job)
|
any
|
setMultiSelect(any multiSelect)
|
any
|
setProgressBar(any progressBar)
|
any
|
setProgressBarGeneric(any progressBarGeneric)
|
any
|
setShell(any shell)
|
any
|
setTaskScheduler(any taskScheduler)
|
any
|
setWirebox(any wirebox)
|
any
|
start()
Starts up the scheduled painting thread if not already started. |
any
|
stop()
Stops the scheduled painting thread if no jobs or progress bars are active and it's not already stopped. |
| Methods inherited from class lucee.Component |
|---|
| None |
| Property Detail |
|---|
access - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyinject - InteractiveJobserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyinject - progressBarserializable - trueaccess - publicrequired - falsereturntype - anyinject - progressBarGenericserializable - trueaccess - publicrequired - falsereturntype - anyinject - shellserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyinject - wireboxserializable - true| Method Detail |
|---|
Clear the console
Stops up the scheduled painting thread and forces any active jobs to error and any active progress bars to clear
messageDraw the lines to the console
activefuturejobmultiSelectprogressBarprogressBarGenericshelltaskSchedulerwireboxStarts up the scheduled painting thread if not already started
Stops the scheduled painting thread if no jobs or progress bars are active and it's not already stopped