Constructor and Description |
---|
TProgressBar(TWidget parent,
int x,
int y,
int width,
int value)
Public constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
draw()
Draw a static progress bar.
|
int |
getCompletedChar()
Get the filled-in part of the bar.
|
int |
getLeftBorderChar()
Get the left border character.
|
int |
getMaxValue()
Get the value that corresponds to 100% progress.
|
int |
getMinValue()
Get the value that corresponds to 0% progress.
|
int |
getRemainingChar()
Get the remaining to be filled in part of the bar.
|
int |
getRightBorderChar()
Get the right border character.
|
int |
getValue()
Get the current value of the progress.
|
void |
setCompletedChar(int ch)
Set the filled-in part of the bar.
|
void |
setHeight(int height)
Override TWidget's height: we can only set height at construction
time.
|
void |
setLeftBorderChar(int ch)
Set the left border character.
|
void |
setMaxValue(int maxValue)
Set the value that corresponds to 100% progress.
|
void |
setMinValue(int minValue)
Set the value that corresponds to 0% progress.
|
void |
setRemainingChar(int ch)
Set the remaining to be filled in part of the bar.
|
void |
setRightBorderChar(int ch)
Set the right border character.
|
void |
setValue(int value)
Set the current value of the progress.
|
activate, activate, activate, activateAll, addButton, addCalendar, addCheckBox, addComboBox, addDirectoryList, addDirectoryList, addDirectoryList, addDirectoryList, addEditor, addField, addField, addField, addImage, addImage, addLabel, addLabel, addLabel, addLabel, addLabel, addLabel, addList, addList, addList, addList, addPanel, addPasswordField, addPasswordField, addPasswordField, addProgressBar, addRadioGroup, addSpinner, addSplitPane, addTable, addTable, addText, addText, addTreeViewWidget, addTreeViewWidget, close, compareTo, doRepaint, drawBox, drawBox, drawBoxShadow, fileOpenBox, fileOpenBox, fileOpenBox, fileOpenBox, fileSaveBox, getAbsoluteX, getAbsoluteY, getActiveChild, getApplication, getAttrXY, getChildren, getCursorAbsoluteX, getCursorAbsoluteY, getCursorX, getCursorY, getHeight, getLayoutManager, getParent, getScreen, getTheme, getWidth, getWindow, getX, getY, handleEvent, hLineXY, inputBox, inputBox, inputBox, isAbsoluteActive, isActive, isCursorVisible, isDrawable, isEnabled, isVisible, messageBox, messageBox, mouseWouldHit, onCommand, onIdle, onKeypress, onMenu, onMouseDoubleClick, onMouseDown, onMouseMotion, onMouseUp, onResize, putAll, putAttrXY, putAttrXY, putCharXY, putCharXY, putCharXY, putStringXY, putStringXY, remove, remove, remove, remove, removeAll, resetTabOrder, setActive, setCursorVisible, setCursorX, setCursorY, setDimensions, setEnabled, setLayoutManager, setParent, setupForTWindow, setVisible, setWidth, setWindow, setX, setY, splitHorizontal, splitVertical, switchWidget, toPrettyString, toPrettyString, toString, vLineXY
public TProgressBar(TWidget parent, int x, int y, int width, int value)
parent
- parent widgetx
- column relative to parenty
- row relative to parentwidth
- width of progress barvalue
- initial value of percent completepublic void setHeight(int height)
public int getMinValue()
public void setMinValue(int minValue)
minValue
- the value that corresponds to 0% progresspublic int getMaxValue()
public void setMaxValue(int maxValue)
maxValue
- the value that corresponds to 100% progresspublic int getValue()
public void setValue(int value)
value
- the current value of the progresspublic void setLeftBorderChar(int ch)
ch
- the char to usepublic int getLeftBorderChar()
public void setCompletedChar(int ch)
ch
- the char to usepublic int getCompletedChar()
public void setRemainingChar(int ch)
ch
- the char to usepublic int getRemainingChar()
public void setRightBorderChar(int ch)
ch
- the char to usepublic int getRightBorderChar()
Copyright © 2019 Kevin Lamonte. Licensed MIT.