public class RadioSetWidget extends ControlSetEntity<RadioSetConfig> implements RadioSetInterface
ControlSetEntity.BiPredicate<T,U>
BaseEntity.CharsPixels
COMPARE_LABEL, COMPARE_LABEL_IGNORE_CASE, COMPARE_VALUE_IGNORE_CASE, LTRIM, RTRIM
ALIGN_COLON, ALIGN_LEFT, ALIGN_RIGHT
group
config, deleted, frame, internalScreenValueUsage, realizeOnAttributeAccess
name, nextSibling, prevSibling
instProc
Constructor and Description |
---|
RadioSetWidget()
Default constructor.
|
RadioSetWidget(boolean dynamic)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
logical |
addFirst(character label,
BaseDataType value)
Implements the ADD-FIRST() widget method, which adds a single label
and value pair to the beginning of the list.
|
logical |
addLast(character label,
BaseDataType value)
Implements the ADD-LAST() widget method, which adds a single label
and value pair to the end of the list.
|
logical |
delete(character item)
Implements the DELETE() widget method, which removes the list item or
items specified.
|
logical |
delete(int64 idx)
Implements the DELETE() widget method, which removes the list item at the given index.
|
logical |
delete(long idx)
Implements the DELETE() widget method, which removes the list item at the given index.
|
logical |
delete(java.lang.String item)
Implements the DELETE() widget method, which removes the list item or
items specified.
|
logical |
disable(character label)
Disable RADIO-BUTTON in a RADIO-SET widget.
|
logical |
disable(java.lang.String label)
Disable RADIO-BUTTON in a RADIO-SET widget.
|
logical |
enable(character label)
Enable RADIO-BUTTON in a RADIO-SET widget.
|
logical |
enable(java.lang.String label)
Enable RADIO-BUTTON in a RADIO-SET widget.
|
character |
getFormat()
Gets the format specification.
|
private character |
getInitialValue()
Gets its initial value.
|
protected int |
getItemIndex(character itemId)
Get an item index, enumerated from 1.
|
integer |
getNumButtons()
Get the value of the NUM-BUTTONS attribute which is the number of buttions in the
RADIO-SET.
|
character |
getRadioButtons()
Get RADIO-BUTTONS 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. |
(package private) character |
getScreenValue(boolean initialized,
BaseDataType bdt,
java.lang.String fmt,
boolean ignoreFormat)
Internal worker for getting the SCREEN-VALUE on a per-widget basis.
|
handle |
getSideLabelHandle()
Obtains the text widget that is used as the side label for this widget.
|
boolean |
hasFormat()
Checks if the given widget has valid format string or even has the format attribute.
|
private logical |
invalid3RdArg()
Report invalid third argument for replace().
|
private void |
invalidArgument(java.lang.String attribute)
Report invalid argument for a radio-set.
|
logical |
isExpand()
Get the value of the EXPAND attribute for radio-set.
|
logical |
isHorizontal()
Get the value of the HORIZONTAL attribute for radio-set.
|
protected boolean |
isValidScreenValue(character value)
Check if the tested value is in the control-set values.
|
private logical |
missingArgs()
Report missing argument for replace().
|
logical |
replace(character newLabel,
BaseDataType newValue,
character oldItem)
REPLACE (new-label, new-value, list-item) method for COMBO-BOX/SELECTION-LIST,
REPLACE (new-label, new-value, old-label) method for RADIO-SET
|
logical |
replace(character newLabel,
BaseDataType newValue,
int listIndex)
REPLACE (new-label, new-value, list-index) method for COMBO-BOX/SELECTION-LIST
|
logical |
replace(character newLabel,
BaseDataType newValue,
integer listIndex)
REPLACE (new-label, new-value, list-index) method for COMBO-BOX/SELECTION-LIST
|
logical |
replace(character newItemList,
character listItem)
REPLACE(REPLACE (new-item-list, list-item )) method
(for COMBO-BOX and SELECTION-LIST)
not applicable to RADIO-SET
|
logical |
replace(character from,
character to,
int flag)
.
|
logical |
replace(character from,
character to,
integer flag)
REPLACE (old-string, new-string, flag ) method for EDITOR
not applicable to RADIO-SET
|
logical |
replace(character newItemList,
int listIndex)
REPLACE (new-item-list, list-index ) method
(for COMBO-BOX and SELECTION-LIST)
not applicable to RADIO-SET
|
logical |
replace(character newItemList,
integer listIndex)
REPLACE (new-item-list, list-index ) method
(for COMBO-BOX and SELECTION-LIST)
not applicable to RADIO-SET
|
logical |
replace(character newItemList,
java.lang.String listItem)
REPLACE(REPLACE (new-item-list, list-item )) method
(for COMBO-BOX and SELECTION-LIST)
not applicable to RADIO-SET
|
logical |
replace(character from,
java.lang.String to,
int flag)
REPLACE (old-string, new-string, flag ) method for EDITOR
not applicable to RADIO-SET
|
logical |
replace(character arg0,
java.lang.String arg1,
integer arg2)
REPLACE (new-label, new-value, list-index) method for COMBO-BOX/SELECTION-LIST
REPLACE (old-string, new-string, flag ) method for EDITOR
|
logical |
replace(java.lang.String newLabel,
BaseDataType newValue,
int listIndex)
REPLACE (new-label, new-value, list-index) method for COMBO-BOX/SELECTION-LIST
|
logical |
replace(java.lang.String newLabel,
BaseDataType newValue,
integer listIndex)
REPLACE (new-label, new-value, list-index) method for COMBO-BOX/SELECTION-LIST
|
logical |
replace(java.lang.String newItemList,
character listItem)
REPLACE(REPLACE (new-item-list, list-item )) method
(for COMBO-BOX and SELECTION-LIST)
not applicable to RADIO-SET
|
logical |
replace(java.lang.String from,
character to,
int flag)
.
|
logical |
replace(java.lang.String from,
character to,
integer flag)
.
|
logical |
replace(java.lang.String newItemList,
int listIndex)
REPLACE (new-item-list, list-index ) method
(for COMBO-BOX and SELECTION-LIST)
not applicable to RADIO-SET
|
logical |
replace(java.lang.String newItemList,
integer listIndex)
REPLACE (new-item-list, list-index ) method
(for COMBO-BOX and SELECTION-LIST)
not applicable to RADIO-SET
|
logical |
replace(java.lang.String newItemList,
java.lang.String listItem)
REPLACE(REPLACE (new-item-list, list-item )) method
(for COMBO-BOX and SELECTION-LIST)
not applicable to RADIO-SET
|
logical |
replace(java.lang.String from,
java.lang.String to,
int flag)
REPLACE (new-label, new-value, list-index) method for COMBO-BOX/SELECTION-LIST
REPLACE (old-string, new-string, flag ) method for EDITOR
not applicable to RADIO-SET
|
logical |
replace(java.lang.String from,
java.lang.String to,
integer flag)
REPLACE (new-label, new-value, list-index) method for COMBO-BOX/SELECTION-LIST
REPLACE (old-string, new-string, flag ) method for EDITOR
not applicable to RADIO-SET
|
protected boolean |
resetSize(ControlSetItem[] items)
Replace array of items in the config.
|
void |
setDataType(character dataType)
Sets new value of DATA-TYPE attribute.
|
void |
setDataType(java.lang.String dataType)
Sets new value of DATA-TYPE attribute.
|
protected logical |
setEnabled(character label,
boolean enabled)
Enable/Disable RADIO-BUTTON in a RADIO-SET widget.
|
void |
setExpand(boolean value)
Resets the value of the EXPAND attribute for radio-set.
|
void |
setExpand(logical value)
Resets the value of the EXPAND attribute for radio-set.
|
void |
setFormat(java.lang.String format)
Sets the format specification.
|
void |
setHorizontal(boolean value)
Resets the value of the HORIZONTAL attribute for radio-set.
|
void |
setHorizontal(logical value)
Resets the value of the HORIZONTAL attribute for radio-set.
|
void |
setItems(ControlSetItem[] items,
boolean pairs)
Store array of items into config.
|
void |
setRadioButtons(character c)
Set RADIO-BUTTONS attribute.
|
void |
setRadioButtons(java.lang.String s)
Set RADIO-BUTTONS attribute.
|
void |
setSideLabelHandle(handle label)
Sets the text widget that is used as the side label for this widget.
|
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 radio-set.
|
(package private) boolean |
validateScreenValue(character value)
Validate the value(s) for SCREEN-VALUE attribute.
|
protected int |
width(ControlSetItem[] items)
Calculate widget width for items' list
|
add, add, addFirst, addFirst, addFirst, addFirst, addFirst, addFirst, addFirst, addFirst, addLast, addLast, addLast, addLast, addLast, checkIfNotPairs, checkValue, controlSetItem, delete, delete, delete, entry, entry, getDelimiter, getListItemPairs, getListItems, getMousePointerImpl, ignore, ignore, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, invalid, isExpandLabel, isSort, isValidScreenValue, itemIndex, lookup, lookup, pairs, replace, replace, replace, replace, replace, replace, replace, resolveFormat, setDelimiter, setDelimiter, setHonorFormat, setItems, setListItemPairs, setListItemPairs, setListItemPairsWorker, setListItems, setListItems, setMousePointerName, setScreenValue, setSort, setSort, truncateValue, truncateValue, truncateValues, useListItemPairs, useListItems
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, getFrame, getFrameHandle, getFrameName, getHeight, getHelp, getHWND, getId, getImage, getLabel, getLabelFont, getLabelStr, getLogicalTerminal, getMaxHeightChars, getMaxWidthChars, getMenuKey, getMenuMouse, getMousePointer, getMousePosition, getNumColumns, getNumSelectedRows, getParentHandle, getPopupMenu, getQuery, getRetainShape, getStretchToFit, getTable, getTabPosition, getTitleFont, getTransparent, getValidationExpression, getValidationMessage, getVirtHeight, getVirtHeightPixels, getVirtWidth, getVirtWidthPixels, getWidgetId, getWidth, getWindow, getZOrderClass, hasNameReadOnly, hasParent, hide, hide, implicitDeletion, inputValue, isAutoCompletion, 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, 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, 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, setScreenValueInt, 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
apply, apply, apply, apply, asWidgetHandle, colorDisplay, colorPrompt, deselectRows, disable, editUndo, enable, getBgColor, getBgColorRgb, getColumnFont, getContextHelpId, getCursorOffset, getDColor, getFgColor, getFgColorRgb, getFont, getFrame, getFrameColumn, getFrameHandle, getFrameName, getFrameRow, getFrameX, getFrameY, getHWND, getId, getIdEx, getImage, getLabelFont, getLabelStr, getMaxHeightChars, getMaxWidthChars, getMenuKey, getMenuMouse, getMousePointer, getMousePosition, getNextTabItem, getNumColumns, getNumSelectedRows, getParent, getParentHandle, getPfColor, getPopupMenu, getPreviousTabItem, getQuery, getTabPosition, getTitle, getTitleFont, getTooltip, getVirtHeight, getVirtHeightPixels, getVirtWidth, getVirtWidthPixels, getWidgetId, getWindow, hide, hide, inputValue, isAutoCompletion, isAutoResize, isEditCanUndo, isEntered, isFocusedRowSelected, isHidden, isKeepFrameZOrder, isManualHighlight, isModified, isMovable, isMultiple, isNotEntered, isResizable, isScrollable, isSelectable, isSelected, isSelected, isSelected, isTabStop, isThreeD, isValidatable, loadMousePointer, loadMousePointer, moveAfterTab, moveAfterTab, moveBeforeTabItem, moveBeforeTabItem, moveToBottom, moveToTop, openPopup, preRealizeCheck, realize, refresh, selectAll, selectFocusedRow, setAtFormatLength, setAutoCompletion, setAutoCompletion, setAutoResize, setAutoResize, setBgColor, setBgColorRgb, setBlank, setColumnFont, setColumnFont, setContextHelpId, setContextHelpId, setCursorOffset, setCursorOffset, setDColor, setDColor, setDeblank, setDisableAutoZap, setFgColor, setFgColorRgb, setFont, setFont, setFrame, setFrame, setFrame, setFrameHandle, setFrameHandle, setFrameHandle, setGroup, setHeader, setHidden, setHidden, setId, setKeepFrameZOrder, setKeepFrameZOrder, setLabelFont, setLabelFont, setManualHighlight, setManualHighlight, setMaxHeightChars, setMaxWidthChars, setMenuKey, setMenuKey, setMenuMouse, setMenuMouse, setModified, setModified, setMovable, setMovable, setMultiple, setMultiple, setNextTabItem, setNumSelectedRows, setParent, setParentHandle, setParentHandle, setPfColor, setPfColor, setPopupMenu, setPopupMenu, setQuery, setReadOnly, setReadOnly, setResizable, setResizable, setScreenValue, setScreenValue, setScrollable, setScrollable, setSelectable, setSelectable, setSelected, setSelected, setSensitive, setTabStop, setTabStop, setThreeD, setThreeD, setTitle, setTitle, setTitleFont, setTitleFont, setTooltip, setTooltip, setValidation, setValidation, setVirtHeight, setVirtHeightPixels, setVirtWidth, setVirtWidthPixels, setWidgetId, setWidgetId, underline, underline, valid, validateFields, validateFields, validateFields, view
getNextSibling, getPrevSibling, getPrivateData, setPrivateData, setPrivateData
getResourceType, readOnlyError, readOnlyError
id, id, unknown
getColumnLabel, getDataType, getHelp, getLabel, setColumnLabel, setColumnLabel, setFormat, setHelp, setHelp, setLabel, setLabel, setLabel
getDbName, getTable
isDisableRedraw, setDisableRedraw, setDisableRedraw
isVisible, setVisible, setVisible
getHeight, getHeightChars, getHeightPixels, getWidth, getWidthChars, getWidthPixels, setHeight, setHeightChars, setHeightChars, setHeightPixels, setHeightPixels, setWidth, setWidthChars, setWidthChars, setWidthPixels, setWidthPixels
getColumn, getRow, getX, getY, setColumn, setColumn, setRow, setRow, setX, setX, setY, setY
getRetainShape, getStretchToFit, getTransparent, setRetainShape, setRetainShape, setStretchToFit, setStretchToFit, setTransparent, setTransparent
getConvert3D, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, setConvert3D, setConvert3D
replace, replace, replace, replace, replace, replace, replace, replace
endFileDrop, getDroppedFile, getDroppedFile, getNumDroppedFiles, setDropTarget
public RadioSetWidget()
public RadioSetWidget(boolean dynamic)
dynamic
- Flag indicating if this is a static or dynamic resource.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<RadioSetConfig>
value
- The new value of the VERTICAL option.public logical isExpand()
isExpand
in interface RadioSetInterface
public void setExpand(logical value)
setExpand
in interface RadioSetInterface
value
- The new value of the EXPAND attribute.public void setExpand(boolean value)
setExpand
in interface RadioSetInterface
value
- The new value of the EXPAND attribute.public character getRadioButtons()
getRadioButtons
in interface RadioSetInterface
public void setRadioButtons(java.lang.String s)
Example: Label1,value1,Label2,value2,..., LabelN,valueN
setRadioButtons
in interface RadioSetInterface
s
- New value of the attribute.public void setRadioButtons(character c)
Example: Label1,value1,Label2,value2,..., LabelN,valueN
setRadioButtons
in interface RadioSetInterface
c
- New value of the attribute.public logical delete(character item)
delete
in interface CommonListWidget<RadioSetConfig>
item
- The item or items to delete.true
if the method succeeds.public logical delete(java.lang.String item)
delete
in interface CommonListWidget<RadioSetConfig>
item
- The item or items to delete.true
if the method succeeds.public logical delete(int64 idx)
delete
in interface CommonListWidget<RadioSetConfig>
delete
in class ControlSetEntity<RadioSetConfig>
idx
- The index of the item to delete.true
if the method succeeds.public logical delete(long idx)
delete
in interface CommonListWidget<RadioSetConfig>
delete
in class ControlSetEntity<RadioSetConfig>
idx
- The index of the item to delete.true
if the method succeeds.public logical addLast(character label, BaseDataType value)
addLast
in interface CommonListWidget<RadioSetConfig>
addLast
in class ControlSetEntity<RadioSetConfig>
label
- The label of the item to add.value
- The value of the item to add.true
if the method succeeds.public void setDataType(character dataType)
setDataType
in interface CommonField
setDataType
in class ControlEntity<RadioSetConfig>
dataType
- new value of DATA-TYPE attributepublic void setDataType(java.lang.String dataType)
setDataType
in interface CommonField
setDataType
in class ControlEntity<RadioSetConfig>
dataType
- new value of DATA-TYPE attributepublic void setFormat(java.lang.String format)
setFormat
in interface CommonWidget
setFormat
in interface CommonField
setFormat
in class GenericWidget<RadioSetConfig>
format
- The format specification.public character getFormat()
getFormat
in interface CommonField
getFormat
in class GenericWidget<RadioSetConfig>
public boolean hasFormat()
hasFormat
in class GenericWidget<RadioSetConfig>
FALSE
.public logical addFirst(character label, BaseDataType value)
addFirst
in interface CommonListWidget<RadioSetConfig>
addFirst
in class ControlSetEntity<RadioSetConfig>
label
- The label of the item to add.value
- The value of the item to add.public void setItems(ControlSetItem[] items, boolean pairs)
setItems
in interface CommonListWidget<RadioSetConfig>
setItems
in class ControlSetEntity<RadioSetConfig>
items
- Array of new items.pairs
- true
if LIST_ITEM_PAIRS, RADIO_BUTTONS is set false if LIST_ITEMs is set.public logical enable(java.lang.String label)
enable
in interface RadioSetInterface
label
- New label of the button to be enabled.true
if successfulpublic logical enable(character label)
enable
in interface RadioSetInterface
label
- New label of the button to be enabled.true
if successfulpublic logical disable(java.lang.String label)
disable
in interface RadioSetInterface
label
- New label of the button to be disabled.true
if successfulpublic logical disable(character label)
disable
in interface RadioSetInterface
label
- New label of the button to be disabled.true
if successfulpublic integer getNumButtons()
getNumButtons
in interface RadioSetInterface
public logical replace(character from, character to, integer flag)
replace
in interface ReplaceInterface
replace
in class ControlSetEntity<RadioSetConfig>
from
- The source text.to
- The replacement text.flag
- the search modetrue
if the operation was successful.public logical replace(java.lang.String from, character to, integer flag)
replace
in interface ReplaceInterface
replace
in class ControlSetEntity<RadioSetConfig>
from
- The source text.to
- The replacement text.flag
- the search modetrue
if the operation was successful.public logical replace(character from, character to, int flag)
replace
in interface ReplaceInterface
replace
in class ControlSetEntity<RadioSetConfig>
from
- The source text.to
- The replacement text.flag
- the search modetrue
if the operation was successful.public logical replace(java.lang.String from, character to, int flag)
replace
in interface ReplaceInterface
replace
in class ControlSetEntity<RadioSetConfig>
from
- The source text.to
- The replacement text.flag
- the search modetrue
if the operation was successful.public logical replace(character from, java.lang.String to, int flag)
replace
in interface ReplaceInterface
replace
in class ControlSetEntity<RadioSetConfig>
from
- The source text.to
- The replacement text.flag
- the search modetrue
if the operation was successful.public logical replace(java.lang.String from, java.lang.String to, integer flag)
replace
in interface ReplaceInterface
replace
in class ControlSetEntity<RadioSetConfig>
from
- new item's label for COMBO-BOX/SELECTION-LIST,
the source text for EDITORto
- new item's value for COMBO-BOX/SELECTION-LIST,
replacement test for editorflag
- index of the item to be replaced for COMBO-BOX/SELECTION-LIST,
the search mode for EDITORtrue
if the operation was successful.public logical replace(java.lang.String from, java.lang.String to, int flag)
replace
in interface ReplaceInterface
replace
in class ControlSetEntity<RadioSetConfig>
from
- new item's label for COMBO-BOX/SELECTION-LIST,
the source text for EDITORto
- new item's value for COMBO-BOX/SELECTION-LIST,
replacement test for editorflag
- index of the item to be replaced for COMBO-BOX/SELECTION-LIST,
the search mode for EDITORtrue
if the operation was successful.public logical replace(character newItemList, character listItem)
replace
in interface ReplaceInterface
replace
in class ControlSetEntity<RadioSetConfig>
newItemList
- new item listlistItem
- old item's valuetrue
if the operation was successful.public logical replace(character newItemList, java.lang.String listItem)
replace
in interface ReplaceInterface
replace
in class ControlSetEntity<RadioSetConfig>
newItemList
- new item listlistItem
- old item's valuetrue
if the operation was successful.public logical replace(java.lang.String newItemList, character listItem)
replace
in interface ReplaceInterface
replace
in class ControlSetEntity<RadioSetConfig>
newItemList
- new item listlistItem
- old item's valuetrue
if the operation was successful.public logical replace(java.lang.String newItemList, java.lang.String listItem)
replace
in interface ReplaceInterface
replace
in class ControlSetEntity<RadioSetConfig>
newItemList
- new item listlistItem
- old item's valuetrue
if the operation was successful.public logical replace(character newItemList, integer listIndex)
replace
in interface ReplaceInterface
replace
in class ControlSetEntity<RadioSetConfig>
newItemList
- new item listlistIndex
- old item's indextrue
if the operation was successful.public logical replace(character newItemList, int listIndex)
replace
in interface ReplaceInterface
replace
in class ControlSetEntity<RadioSetConfig>
newItemList
- new item listlistIndex
- old item's indextrue
if the operation was successful.public logical replace(java.lang.String newItemList, integer listIndex)
replace
in interface ReplaceInterface
replace
in class ControlSetEntity<RadioSetConfig>
newItemList
- new item listlistIndex
- old item's indextrue
if the operation was successful.public logical replace(java.lang.String newItemList, int listIndex)
replace
in interface ReplaceInterface
replace
in class ControlSetEntity<RadioSetConfig>
newItemList
- new item listlistIndex
- old item's indextrue
if the operation was successful.public logical replace(character newLabel, BaseDataType newValue, character oldItem)
replace
in interface ReplaceInterface
replace
in class ControlSetEntity<RadioSetConfig>
newLabel
- new item's labelnewValue
- new item's valueoldItem
- oldItem (old-label for the READIO-SET, and list-item for the COMBO-BOX/SELECTION-LIST)true
if the operation was successful.public logical replace(character newLabel, BaseDataType newValue, integer listIndex)
replace
in interface ReplaceInterface
replace
in class ControlSetEntity<RadioSetConfig>
newLabel
- new item's labelnewValue
- new item's valuelistIndex
- index of the item to be replacedtrue
if the operation was successful.public logical replace(java.lang.String newLabel, BaseDataType newValue, integer listIndex)
replace
in interface ReplaceInterface
replace
in class ControlSetEntity<RadioSetConfig>
newLabel
- new item's labelnewValue
- new item's valuelistIndex
- index of the item to be replacedtrue
if the operation was successful.public logical replace(character arg0, java.lang.String arg1, integer arg2)
replace
in interface ReplaceInterface
replace
in class ControlSetEntity<RadioSetConfig>
arg0
- new item's label for COMBO-BOX/SELECTION-LIST,
the source text for EDITORarg1
- new item's value for COMBO-BOX/SELECTION-LIST,
replacement test for editorarg2
- index of the item to be replaced for COMBO-BOX/SELECTION-LIST,
the search mode for EDITORtrue
if the operation was successful.public logical replace(character newLabel, BaseDataType newValue, int listIndex)
replace
in interface ReplaceInterface
replace
in class ControlSetEntity<RadioSetConfig>
newLabel
- new item's labelnewValue
- new item's valuelistIndex
- index of the item to be replacedtrue
if the operation was successful.public logical replace(java.lang.String newLabel, BaseDataType newValue, int listIndex)
replace
in interface ReplaceInterface
replace
in class ControlSetEntity<RadioSetConfig>
newLabel
- new item's labelnewValue
- new item's valuelistIndex
- index of the item to be replacedtrue
if the operation was successful.public void setSideLabelHandle(handle label)
setSideLabelHandle
in interface CommonWidget
setSideLabelHandle
in class GenericWidget<RadioSetConfig>
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<RadioSetConfig>
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<RadioSetConfig>
character
type or the empty
string if the screen buffer value is uninitialized.protected logical setEnabled(character label, boolean enabled)
label
- New label of the button to be enabled.enabled
- new 'enabled' statustrue
if successfulprivate character getInitialValue()
protected int width(ControlSetItem[] items)
items
- list of itemsprotected boolean resetSize(ControlSetItem[] items)
items
- Array of new items.private void invalidArgument(java.lang.String attribute)
attribute
- The name of the attribute that is invalid (in uppercase).protected int getItemIndex(character itemId)
getItemIndex
in class ControlSetEntity<RadioSetConfig>
itemId
- Item's label or valuecharacter getScreenValue(boolean initialized, BaseDataType bdt, java.lang.String fmt, boolean ignoreFormat)
getScreenValue
in class GenericWidget<RadioSetConfig>
initialized
- Flag indicating if the widget is realized or not.bdt
- The current value in the frame's buffer.fmt
- The format to be applied, in case this is a formatted value.ignoreFormat
- Flag indicating if the format needs to be ignored.protected boolean isValidScreenValue(character value)
isValidScreenValue
in class ControlSetEntity<RadioSetConfig>
value
- The tested valueboolean validateScreenValue(character value)
validateScreenValue
in class ControlSetEntity<RadioSetConfig>
value
- The to be validated as SCREEN-VALUE attribute.true
if the value is a valid screen-value.private logical missingArgs()
private logical invalid3RdArg()