public class SliderWidget extends ControlEntity<SliderConfig> implements SliderInterface, Hoverable
BaseEntity.CharsPixels
ALIGN_COLON, ALIGN_LEFT, ALIGN_RIGHT
group
config, deleted, frame
name, nextSibling, prevSibling
instProc
Constructor and Description |
---|
SliderWidget()
Default constructor (creates static vertical slider).
|
SliderWidget(boolean dynamic)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
integer |
getFrequency()
Get the value of the FREQUENCY attribute.
|
integer |
getMaxValue()
Gets the MAX-VALUE writable attribute.
|
integer |
getMinValue()
Gets the MIN-VALUE writable attribute.
|
java.lang.String |
getMousePointerImpl()
Get the MOUSE-POINTER attribute
|
character |
getScreenValue()
Obtain the current value in the screen buffer of the backing data for
this widget and return it as a
character type. |
character |
getTicMarks()
Get the value of the TIC-MARKS attribute.
|
logical |
isHorizontal()
Get the value of the HORIZONTAL attribute for slider.
|
logical |
isLargeToSmall()
Get the value of the LARGE-TO-SMALL attribute.
|
logical |
isNoCurrentValue()
Get the value of the NO-CURRENT-VALUE attribute.
|
void |
setFrequency(int freq)
Set the value of the FREQUENCY attribute.
|
void |
setFrequency(NumberType freq)
Set the value of the FREQUENCY attribute.
|
void |
setHorizontal(boolean value)
Resets the value of the HORIZONTAL attribute for slider.
|
void |
setHorizontal(logical value)
Resets the value of the HORIZONTAL attribute for slider.
|
void |
setLargeToSmall(boolean value)
Set the value of the LARGE-TO-SMALL attribute.
|
void |
setLargeToSmall(logical value)
Set the value of the LARGE-TO-SMALL attribute.
|
void |
setMaxValue(int maxValue)
Sets the MAX-VALUE writable attribute.
|
void |
setMaxValue(NumberType maxValue)
Sets the MAX-VALUE writable attribute.
|
void |
setMinValue(int minValue)
Sets the MIN-VALUE writable attribute.
|
void |
setMinValue(NumberType minValue)
Sets the MIN-VALUE writable attribute.
|
void |
setMousePointerName(java.lang.String name)
Set the MOUSE-POINTER attribute
|
void |
setNoCurrentValue(boolean value)
Set the value of the NO-CURRENT-VALUE attribute.
|
void |
setNoCurrentValue(logical value)
Set the value of the NO-CURRENT-VALUE attribute.
|
void |
setScreenValue(character value)
Set the current value in the screen buffer of the backing data for
this widget.
|
void |
setTicMarks(character tMarks)
Set the value of the TICK-MARKS attribute.
|
void |
setTicMarks(java.lang.String tMarks)
Set the value of the TIC-MARKS attribute.
|
void |
setVertical(boolean value)
Resets the value of the HORIZONTAL attribute for radio-set.
|
void |
setVertical(logical value)
Resets the value of the HORIZONTAL attribute for slider.
|
private void |
updateSize()
Set the new size values depending on min, max, orientation.
|
changeFontWorker, firstChild, getColon, getDataClass, getDataType, getIndex, getNextTabItem, getPreviousTabItem, getPrevSibling, getSideLabelHandle, getSizeAttrs, getTitle, hasSideLabelHandle, isAutoResize, isDropTarget, isModified, lastChild, processSideLabel, resetAutoResize, setAttrSpace, setAutoResize, setAutoResize, setColumnLabel, setColumnLabel, setDataType, setDataType, setDropTarget, setForceLabel, setForceLabel, setHeightCharsWorker, setHeightPixelsWorker, setIndex, setIndex, setModified, setModified, setNoAttrSpace, setNoLabels, setTitle, setTitle, setTo, setTo, setWidthCharsWorker, setWidthPixelsWorker, validateFields
_getHeightChars, _getHeightPixels, _getWidthChars, _getWidthPixels, canSetPixelPositionInChui, getBgColor, getBgColorRgb, getColumn, getDColor, getFgColor, getFgColorRgb, getFont, getFrameColumn, getFrameRow, getFrameX, getFrameY, getHeightChars, getHeightPixels, getNextSibling, getParent, getParent, getPfColor, getRow, getTooltip, getValidParentTypes, getWidthChars, getWidthPixels, getX, getY, isMovable, isResizable, isSelected, isTabStop, prepareSizeChars, prepareSizePixels, pushLocAttrs, pushSizeAttrs, setAlign, setBgColor, setBgColor, setBgColor, setBgColorRgb, setBgColorRgb, setBgColorRgb, setColon, setColon, setColumn, setColumn, setColumnOrRow, setColumnOrRowWorker, setDColor, setDColor, setDColor, setFgColor, setFgColor, setFgColor, setFgColorRgb, setFgColorRgb, setFgColorRgb, setFont, setGroup, setHeightChars, setHeightChars, setHeightPixels, setHeightPixels, setMaxHeightCharsWorker, setMaxHeightPixelsWorker, setMaxWidthCharsWorker, setMaxWidthPixelsWorker, setMinHeightCharsWorker, setMinHeightPixelsWorker, setMinWidthCharsWorker, setMinWidthPixelsWorker, setMovable, setMovable, setParent, setPfColor, setPfColor, setPfColor, setResizable, setResizable, setRow, setRow, setSelected, setSelected, setSizeChars, setSizePixels, setTabStop, setTabStop, setTooltip, setTooltip, setVirtHeightCharsWorker, setVirtHeightPixelsWorker, setVirtWidthCharsWorker, setVirtWidthPixelsWorker, setWidthChars, setWidthChars, setWidthPixels, setWidthPixels, setX, setX, setXorY, setXOrYWorker, setY, setY, useHandleChainSiblings, validateParent, validateSize, validColumnOrRow
_dynamic, _getDbName, _getFormat, _getTable, _isEntered, _isHidden, _isNotEntered, _isRealized, _isVisible, _setDynamic, _setVisible, afterConfigUpdate, apply, apply, apply, apply, asWidgetHandle, canAccess, canDelete, cleanup, colorDisplay, colorPrompt, config, deselectRows, detachMenu, disable, dynamic, enable, finishConfigProcessing, finishSetup, getColumnFont, getColumnLabel, getContextHelpId, getConvert3D, getCursorOffset, getDbName, getFormat, getFrame, getFrameHandle, getHelp, getHWND, getId, getImage, getLabel, getLabelFont, getLabelStr, getMaxHeightChars, getMaxWidthChars, getMenuKey, getMenuMouse, getMousePointer, getMousePosition, getNumColumns, getNumSelectedRows, getParentHandle, getPopupMenu, getQuery, getRetainShape, getScreenValue, getStretchToFit, getTable, getTabPosition, getTitleFont, getTransparent, getValidationExpression, getValidationMessage, getVirtHeight, getVirtHeightPixels, getVirtWidth, getVirtWidthPixels, getWidgetId, getWindow, getZOrderClass, hasFormat, hasNameReadOnly, hasParent, hide, hide, implicitDeletion, inputValue, isAutoReturn, isChained, isChecked, isDisableRedraw, isEntered, isFocusedRowSelected, isHidden, isKeepFrameZOrder, isManualHighlight, isMultiple, isNotEntered, isScrollable, isSelectable, isSelected, isSelected, isSensitive, isTabWidget, isTextSelected, isThreeD, isValidatable, isVisible, labelSizeCheck, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadMousePointer, loadMousePointer, moveAfterTab, moveAfterTab, moveBeforeTabItem, moveBeforeTabItem, moveToBottom, moveToTop, moveToWorker, name, notQueryable, notQueryable, notSettable, notSettable, notWorker, preRealizeCheck, pushScreenDefinition, pushWidgetAttr, pushWidgetAttr, readOnlyError, realize, refresh, resourceDelete, restoreSharedState, saveSharedState, selectAll, selectFocusedRow, setAtFormatLength, setAutoReturn, setAutoReturn, setBlank, setChecked, setChecked, setColumnFont, setColumnFont, setContextHelpId, setContextHelpId, setConvert3D, setConvert3D, setCursorOffset, setCursorOffset, setDbname, setDeblank, setDisableAutoZap, setDisableRedraw, setFont, setFormat, setFormat, setFrame, setFrame, setFrame, setFrameHandle, setFrameHandle, setFrameHandle, setHeader, setHelp, setHelp, setHelpDefault, setHelpStatic, setHidden, setHidden, setId, setKeepFrameZOrder, setKeepFrameZOrder, setLabel, setLabel, setLabelFont, setLabelFont, setLabelInt, setManualHighlight, setManualHighlight, setMaxHeightChars, setMaxWidthChars, setMenuKey, setMenuKey, setMenuMouse, setMenuMouse, setMultiple, setMultiple, setNextTabItem, setNoAutoValidate, setNumSelectedRows, setParentHandle, setParentHandle, setPopupMenu, setPopupMenu, setQuery, setRetainShape, setRetainShape, setScreenLock, setScreenValue, setScrollable, setScrollable, setSelectable, setSelectable, setSensitive, setSensitive, setSensitive, setSensitive, setSideLabelHandle, setStretchToFit, setStretchToFit, setTable, setThreeD, setThreeD, setTitleFont, setTitleFont, setTransparent, setTransparent, setValidation, setValidation, setVirtHeight, setVirtHeightPixels, setVirtWidth, setVirtWidthPixels, setVisible, setVisible, setWidgetId, setWidgetId, truncatePixelSize, underline, underline, valid, validate, validateFields, validateFields, validateFields, view, widgetName
delete, firstResource, firstResource, getHead, getNextSibling, getPrevSibling, getPrivateData, getTail, hasName, hasNextSibling, hasPrevSibling, hasPrivateData, interlink, lastResource, lastResource, moveInChain, name, name, setHead, setNextSibling, setNextSibling, setPrevSibling, setPrevSibling, setPrivateData, setPrivateData, setPrivateData
getResourceType, id, id, instantiatingProcedure, invalidAttribute, setInstantiatingProcedure, type, unknown
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
endFileDrop, getDroppedFile, getDroppedFile, getNumDroppedFiles, setDropTarget
setScreenValue
getPrivateData, setPrivateData, setPrivateData
getResourceType
id, id, unknown
setDisableRedraw
public SliderWidget()
public SliderWidget(boolean dynamic)
dynamic
- Flag indicating if this is a static or dynamic resource.public integer getMinValue()
getMinValue
in interface SliderInterface
public void setMinValue(NumberType minValue)
setMinValue
in interface SliderInterface
minValue
- The new value for the MIN-VALUE attribute.public void setMinValue(int minValue)
setMinValue
in interface SliderInterface
minValue
- The new value for the MIN-VALUE attribute.public integer getMaxValue()
getMaxValue
in interface SliderInterface
public void setMaxValue(NumberType maxValue)
setMaxValue
in interface SliderInterface
maxValue
- The new value for the MAX-VALUE attribute.public void setMaxValue(int maxValue)
setMaxValue
in interface SliderInterface
maxValue
- The new value for the MAX-VALUE attribute.public void setHorizontal(logical value)
setHorizontal
in interface OrientationInterface
value
- The new value of the HORIZONTAL attribute.public void setHorizontal(boolean value)
setHorizontal
in interface OrientationInterface
value
- The new value of the HORIZONTAL attribute.public logical isHorizontal()
isHorizontal
in interface OrientationInterface
public void setVertical(logical value)
setVertical
in interface OrientationInterface
value
- The new value of the HORIZONTAL attribute.public void setVertical(boolean value)
setVertical
in interface CommonWidget
setVertical
in interface OrientationInterface
setVertical
in class GenericWidget<SliderConfig>
value
- The new value of the VERTICAL option.public logical isLargeToSmall()
isLargeToSmall
in interface SliderInterface
public void setLargeToSmall(logical value)
setLargeToSmall
in interface SliderInterface
value
- the new value of the attribute.public void setLargeToSmall(boolean value)
setLargeToSmall
in interface SliderInterface
value
- the new value of the attribute.public logical isNoCurrentValue()
isNoCurrentValue
in interface SliderInterface
public void setNoCurrentValue(logical value)
TRUE
the slider displays current value. If NO-CURRENT-VALUE is FALSE
slider does
not display the current value. The default value is TRUE
.setNoCurrentValue
in interface SliderInterface
value
- the new value of the attribute.public void setNoCurrentValue(boolean value)
TRUE
the slider displays current value. If NO-CURRENT-VALUE is FALSE
slider does
not display the current value. The default value is TRUE
.setNoCurrentValue
in interface SliderInterface
value
- the new value of the attribute.public character getTicMarks()
getTicMarks
in interface SliderInterface
public void setTicMarks(character tMarks)
setTicMarks
in interface SliderInterface
tMarks
- the new value of the attribute.public void setTicMarks(java.lang.String tMarks)
setTicMarks
in interface SliderInterface
tMarks
- the new value of the attribute.public integer getFrequency()
getFrequency
in interface SliderInterface
public void setFrequency(NumberType freq)
setFrequency
in interface SliderInterface
freq
- the new value of the attribute.public void setFrequency(int freq)
setFrequency
in interface SliderInterface
freq
- the new value of the attribute.public character getScreenValue()
character
type. If
there is no value in the screen buffer (if it is null
which is the representation for an uninitialized value), then return
the empty string.getScreenValue
in interface CommonWidget
getScreenValue
in class GenericWidget<SliderConfig>
character
type or the empty
string if the screen buffer value is uninitialized.public void setScreenValue(character value)
null
then this
widget will be set to the uninitialized value.setScreenValue
in interface CommonWidget
setScreenValue
in class GenericWidget<SliderConfig>
value
- The new value for the widget, use null
to set
the value as uninitialized.private void updateSize()
public void setMousePointerName(java.lang.String name)
setMousePointerName
in interface Hoverable
name
- the attribute valuepublic java.lang.String getMousePointerImpl()
getMousePointerImpl
in interface Hoverable