public class SliderWidget extends ControlEntity<SliderConfig> implements SliderInterface, Hoverable
BaseEntity.CharsPixelsALIGN_COLON, ALIGN_LEFT, ALIGN_RIGHTgroupconfig, deleted, frame, internalScreenValueUsage, realizeOnAttributeAccessname, nextSibling, prevSibling, wainstProc, pm| 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. |
handle |
getSideLabelHandle()
Obtains the text widget that is used as the side label for this widget.
|
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 |
setDataType(character dataType)
Sets new value of DATA-TYPE attribute.
|
void |
setDataType(java.lang.String dataType)
Sets new value of DATA-TYPE 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.
|
protected void |
setScreenValueInt(character value)
Set the current value in the screen buffer of the backing data for
this widget.
|
void |
setSideLabelHandle(handle label)
Sets the text widget that is used as the side label 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, delete, firstChild, getColon, getDataClass, getDataType, getIndex, getNextTabItem, getPreviousTabItem, getPrevSibling, getSideLabelHandleWorker, getSizeAttrs, getTitle, hasSideLabelHandle, isAutoResize, isDropTarget, isModified, lastChild, processSideLabel, resetAutoResize, setAttrSpace, setAutoResize, setAutoResize, setColumnLabel, setColumnLabel, setDropTarget, setForceLabel, setForceLabel, setHeightCharsWorker, setHeightPixelsWorker, setIndex, setIndex, setModified, setModified, setNoAttrSpace, setNoLabels, setSideLabelHandleWorker, setTitle, setTitle, setTo, setTo, setWidthCharsWorker, setWidthPixelsWorker, validateFields_getHeightChars, _getHeightPixels, _getWidthChars, _getWidthPixels, canSetPixelPositionInChui, emit4084Warning, emitUnableToAssignUnknownAttributeWarning, getBgColor, getBgColorRgb, getColumn, getDColor, getFgColor, getFgColorRgb, getFont, getFontInfo, getFontName, getFontSize, getFrameColumn, getFrameRow, getFrameX, getFrameY, getHeightChars, getHeightPixels, getNextSibling, getParent, getParent, getPfColor, getRow, getTooltip, getValidParentTypes, getWidthChars, getWidthPixels, getX, getY, isFontBold, isFontItalic, isFontUnderline, isMovable, isResizable, isSelected, isTabStop, prepareSizeChars, prepareSizePixels, pushLocAttrs, pushSizeAttrs, setAlign, setBgColor, setBgColor, setBgColor, setBgColorRgb, setBgColorRgb, setColon, setColon, setColumn, setColumn, setColumnOrRow, setColumnOrRowWorker, setDColor, setDColor, setDColor, setFgColor, setFgColor, setFgColor, setFgColorRgb, setFgColorRgb, setFont, setFontBold, setFontItalic, setFontName, setFontSize, setFontUnderline, setGroup, setHeightChars, setHeightChars, setHeightImpl, setHeightPixels, setHeightPixels, setMaxHeightCharsWorker, setMaxHeightPixelsWorker, setMaxWidthCharsWorker, setMaxWidthPixelsWorker, setMinHeightCharsWorker, setMinHeightPixelsWorker, setMinWidthCharsWorker, setMinWidthPixelsWorker, setMovable, setMovable, setParent, setPfColor, setPfColor, setPfColor, setResizable, setResizable, setRow, setRow, setSelected, setSelected, setSizeChars, setSizePixels, setSystemParent, setTabStop, setTabStop, setTooltip, setTooltip, setVirtHeightCharsWorker, setVirtHeightPixelsWorker, setVirtWidthCharsWorker, setVirtWidthPixelsWorker, setWidthChars, setWidthChars, setWidthImpl, setWidthPixels, setWidthPixels, setX, setX, setXorY, setXOrYWorker, setY, setY, useHandleChainSiblings, validateParent, validateSize, validColumnOrRow_dynamic, _getDbName, _getFormat, _getTable, _isEntered, _isHidden, _isNotEntered, _isRealized, _isVisible, _name, _setDynamic, _setVisible, afterConfigUpdate, apply, apply, apply, apply, asWidgetHandle, canAccess, canDelete, canPushWidgetAttr, cleanup, colorDisplay, colorPrompt, config, deselectRows, detachMenu, disable, dynamic, editUndo, enable, finishConfigProcessing, finishSetup, flushWidgetAttrs, genAssignUnknownWarning, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getColumnFont, getColumnLabel, getContextHelpId, getConvert3D, getCursorOffset, getDbName, getFormat, getFrame, getFrameHandle, getFrameName, getHeight, getHelp, getHWND, getId, getImage, getLabel, getLabelFont, getLabelStr, getLogicalTerminal, 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, getWidth, getWindow, getZOrderClass, hasFormat, hasNameReadOnly, hasParent, hide, hide, implicitDeletion, inputValue, isAutoCompletion, isAutoReturn, isChained, isChecked, isDisableRedraw, isEntered, isExpandLabel, isFocusedRowSelected, isHidden, isKeepFrameZOrder, isManualHighlight, isMultiple, isNotEntered, isReadOnly, isScrollable, isSelectable, isSelected, isSelected, isSensitive, isTabWidget, isTextSelected, isThreeD, isValidatable, isVisible, labelSizeCheck, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadMousePointer, loadMousePointer, moveAfterTabItem, moveAfterTabItem, moveBeforeTabItem, moveBeforeTabItem, moveToBottom, moveToTop, moveToWorker, name, notQueryable, notQueryable, notSettable, notSettable, notWorker, openPopup, preRealizeCheck, pushScreenDefinition, pushWidgetAttr, pushWidgetAttr, readOnlyError, readOnlyError, realize, refresh, resourceDelete, restoreSharedState, saveSharedState, selectAll, selectFocusedRow, setAtFormatLength, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttrs, setAutoCompletion, setAutoCompletion, 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, setFromOCX, setHeader, setHeight, setHelp, setHelp, setHelpDefault, setHelpStatic, setHidden, setHidden, setId, setKeepFrameZOrder, setKeepFrameZOrder, setLabel, setLabel, setLabel, setLabelFont, setLabelFont, setLabelInt, setManualHighlight, setManualHighlight, setMaxHeightChars, setMaxWidthChars, setMenuKey, setMenuKey, setMenuMouse, setMenuMouse, setMultiple, setMultiple, setNextTabItem, setNoAutoValidate, setNumSelectedRows, setParentHandle, setParentHandle, setPopupMenu, setPopupMenu, setQuery, setReadOnly, setRetainShape, setRetainShape, setScreenLock, setScreenValue, setScreenValue, setScreenValue, setScreenValue, setScreenValueNoErrorHandling, setScrollable, setScrollable, setSelectable, setSelectable, setSensitive, setSensitive, setSensitive, setSensitive, setStretchToFit, setStretchToFit, setTable, setThreeD, setThreeD, setTitleFont, setTitleFont, setTransparent, setTransparent, setValidation, setValidation, setVirtHeight, setVirtHeightPixels, setVirtWidth, setVirtWidthPixels, setVisible, setVisible, setWidgetId, setWidgetId, setWidth, truncatePixelSize, type, underline, underline, valid, validate, validateFields, validateFields, validateFields, validateLabelAssignment, view, warningAlreadyRealized, widgetNamefirstResource, firstResource, getHead, getNextSibling, getPrevSibling, getPrivateData, getTail, hasName, hasNameConstraints, hasNextSibling, hasPrevSibling, hasPrivateData, interlink, lastResource, lastResource, moveInChain, name, name, resolveChainType, setHead, setNextSibling, setNextSibling, setPrevSibling, setPrevSibling, setPrivateData, setPrivateData, setPrivateData, validateName_instantiatingProcedure, addToPool, doDelete, equals, hashCode, id, id, incrementTrigger, instantiatingProcedure, invalidAttribute, processResource, registerResource, resourceType, setInstantiatingProcedure, toString, unableToAssignUnknown, unknownclone, finalize, getClass, notify, notifyAll, wait, wait, waitendFileDrop, getDroppedFile, getDroppedFile, getNumDroppedFiles, setDropTargetgetIdEx, getListItems, isEditCanUndo, setListItems, setListItems, setScreenValuegetPrivateData, setPrivateData, setPrivateDataresourceTypeid, id, unknownsetDisableRedrawsetReadOnlyallowDeletepublic SliderWidget()
public SliderWidget(boolean dynamic)
dynamic - Flag indicating if this is a static or dynamic resource.public void setDataType(character dataType)
setDataType in interface CommonFieldsetDataType in class ControlEntity<SliderConfig>dataType - new value of DATA-TYPE attributepublic void setDataType(java.lang.String dataType)
setDataType in interface CommonFieldsetDataType in class ControlEntity<SliderConfig>dataType - new value of DATA-TYPE attributepublic integer getMinValue()
getMinValue in interface SliderInterfacepublic void setMinValue(NumberType minValue)
setMinValue in interface SliderInterfaceminValue - The new value for the MIN-VALUE attribute.public void setMinValue(int minValue)
setMinValue in interface SliderInterfaceminValue - The new value for the MIN-VALUE attribute.public integer getMaxValue()
getMaxValue in interface SliderInterfacepublic void setMaxValue(NumberType maxValue)
setMaxValue in interface SliderInterfacemaxValue - The new value for the MAX-VALUE attribute.public void setMaxValue(int maxValue)
setMaxValue in interface SliderInterfacemaxValue - The new value for the MAX-VALUE attribute.public void setHorizontal(logical value)
setHorizontal in interface OrientationInterfacevalue - The new value of the HORIZONTAL attribute.public void setHorizontal(boolean value)
setHorizontal in interface OrientationInterfacevalue - The new value of the HORIZONTAL attribute.public logical isHorizontal()
isHorizontal in interface OrientationInterfacepublic void setVertical(logical value)
setVertical in interface OrientationInterfacevalue - The new value of the HORIZONTAL attribute.public void setVertical(boolean value)
setVertical in interface CommonWidgetsetVertical in interface OrientationInterfacesetVertical in class GenericWidget<SliderConfig>value - The new value of the VERTICAL option.public logical isLargeToSmall()
isLargeToSmall in interface SliderInterfacepublic void setLargeToSmall(logical value)
setLargeToSmall in interface SliderInterfacevalue - the new value of the attribute.public void setLargeToSmall(boolean value)
setLargeToSmall in interface SliderInterfacevalue - the new value of the attribute.public logical isNoCurrentValue()
isNoCurrentValue in interface SliderInterfacepublic 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 SliderInterfacevalue - 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 SliderInterfacevalue - the new value of the attribute.public character getTicMarks()
getTicMarks in interface SliderInterfacepublic void setTicMarks(character tMarks)
setTicMarks in interface SliderInterfacetMarks - the new value of the attribute.public void setTicMarks(java.lang.String tMarks)
setTicMarks in interface SliderInterfacetMarks - the new value of the attribute.public integer getFrequency()
getFrequency in interface SliderInterfacepublic void setFrequency(NumberType freq)
setFrequency in interface SliderInterfacefreq - the new value of the attribute.public void setFrequency(int freq)
setFrequency in interface SliderInterfacefreq - 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 CommonWidgetgetScreenValue in class GenericWidget<SliderConfig>character type or the empty
string if the screen buffer value is uninitialized.public void setMousePointerName(java.lang.String name)
setMousePointerName in interface Hoverablename - the attribute valuepublic java.lang.String getMousePointerImpl()
getMousePointerImpl in interface Hoverablepublic void setSideLabelHandle(handle label)
setSideLabelHandle in interface CommonWidgetsetSideLabelHandle in class GenericWidget<SliderConfig>label - The handle to the text widget to be used as the side label of this widget.public handle getSideLabelHandle()
getSideLabelHandle in interface CommonWidgetgetSideLabelHandle in class GenericWidget<SliderConfig>protected void setScreenValueInt(character value)
null then this
widget will be set to the uninitialized value.setScreenValueInt in class GenericWidget<SliderConfig>value - The new value for the widget, use null to set
the value as uninitialized.private void updateSize()