Constructor and Description |
---|
TVScroller(TWidget parent,
int x,
int y,
int height)
Public constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
bigDecrement()
Perform a big step change up.
|
void |
bigIncrement()
Perform a big step change down.
|
void |
decrement()
Perform a small step change up.
|
void |
draw()
Draw a vertical scroll bar.
|
int |
getBigChange()
Set the increment for clicking in the bar between the box and an
arrow.
|
int |
getBottomValue()
Get the value that corresponds to being on the bottom edge of the
scroll bar.
|
int |
getSmallChange()
Get the increment for clicking on an arrow.
|
int |
getTopValue()
Get the value that corresponds to being on the top edge of the scroll
bar.
|
int |
getValue()
Get current value of the scroll.
|
void |
increment()
Perform a small step change down.
|
void |
onMouseDown(TMouseEvent mouse)
Handle mouse press events.
|
void |
onMouseMotion(TMouseEvent mouse)
Handle mouse movement events.
|
void |
onMouseUp(TMouseEvent mouse)
Handle mouse button releases.
|
void |
setBigChange(int bigChange)
Set the increment for clicking in the bar between the box and an
arrow.
|
void |
setBottomValue(int bottomValue)
Set the value that corresponds to being on the bottom edge of the
scroll bar.
|
void |
setSmallChange(int smallChange)
Set the increment for clicking on an arrow.
|
void |
setTopValue(int topValue)
Set the value that corresponds to being on the top edge of the scroll
bar.
|
void |
setValue(int value)
Set current value of the scroll.
|
void |
toBottom()
Go to the bottom edge of the scroller.
|
void |
toTop()
Go to the top edge of the scroller.
|
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, onResize, putAll, putAttrXY, putAttrXY, putCharXY, putCharXY, putCharXY, putStringXY, putStringXY, remove, remove, remove, remove, removeAll, resetTabOrder, setActive, setCursorVisible, setCursorX, setCursorY, setDimensions, setEnabled, setHeight, setLayoutManager, setParent, setupForTWindow, setVisible, setWidth, setWindow, setX, setY, splitHorizontal, splitVertical, switchWidget, toPrettyString, toPrettyString, toString, vLineXY
public TVScroller(TWidget parent, int x, int y, int height)
parent
- parent widgetx
- column relative to parenty
- row relative to parentheight
- height of scroll barpublic void onMouseUp(TMouseEvent mouse)
public void onMouseMotion(TMouseEvent mouse)
onMouseMotion
in class TWidget
mouse
- mouse motion eventpublic void onMouseDown(TMouseEvent mouse)
onMouseDown
in class TWidget
mouse
- mouse button press eventpublic int getTopValue()
public void setTopValue(int topValue)
topValue
- the new scroll valuepublic int getBottomValue()
public void setBottomValue(int bottomValue)
bottomValue
- the new scroll valuepublic int getValue()
public void setValue(int value)
value
- the new scroll valuepublic int getSmallChange()
public void setSmallChange(int smallChange)
smallChange
- the new increment valuepublic int getBigChange()
public void setBigChange(int bigChange)
bigChange
- the new increment valuepublic void decrement()
public void increment()
public void bigDecrement()
public void bigIncrement()
public void toTop()
public void toBottom()
Copyright © 2019 Kevin Lamonte. Licensed MIT.