public class SliderWidget extends ControlEntity<SliderConfig> implements SliderInterface, Hoverable
BaseEntity.CharsPixels
ALIGN_COLON, ALIGN_LEFT, ALIGN_RIGHT
group
config, deleted, frame, internalScreenValueUsage, realizeOnAttributeAccess
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. |
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, _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, 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, 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, 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, setReadOnly, setRetainShape, setRetainShape, setScreenLock, 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, underline, underline, valid, validate, validateFields, validateFields, validateFields, validateLabelAssignment, view, warningAlreadyRealized, widgetName
firstResource, firstResource, getHead, getNextSibling, getPrevSibling, getPrivateData, getTail, hasName, hasNameConstraints, hasNextSibling, hasPrevSibling, hasPrivateData, interlink, lastResource, lastResource, moveInChain, name, name, setHead, setNextSibling, setNextSibling, setPrevSibling, setPrevSibling, setPrivateData, setPrivateData, setPrivateData, validateName
doDelete, getResourceType, id, id, incrementTrigger, instantiatingProcedure, invalidAttribute, processResource, registerResource, setInstantiatingProcedure, toString, type, unableToAssignUnknown, unknown
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
endFileDrop, getDroppedFile, getDroppedFile, getNumDroppedFiles, setDropTarget
getIdEx, getListItems, isEditCanUndo, setListItems, setListItems, 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 void setDataType(character dataType)
setDataType
in interface CommonField
setDataType
in class ControlEntity<SliderConfig>
dataType
- new value of DATA-TYPE attributepublic void setDataType(java.lang.String dataType)
setDataType
in interface CommonField
setDataType
in class ControlEntity<SliderConfig>
dataType
- new value of DATA-TYPE attributepublic 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 setMousePointerName(java.lang.String name)
setMousePointerName
in interface Hoverable
name
- the attribute valuepublic java.lang.String getMousePointerImpl()
getMousePointerImpl
in interface Hoverable
public void setSideLabelHandle(handle label)
setSideLabelHandle
in interface CommonWidget
setSideLabelHandle
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 CommonWidget
getSideLabelHandle
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()