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
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.
|
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.
|
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.
|
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.
|
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 |
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.
|
(package private) boolean |
setScreenValue(ScreenBuffer frameBuf,
java.lang.Object value,
boolean inUIStmt)
Internal worker for setting the SCREEN-VALUE on a per-widget basis.
|
void |
setSensitive(boolean s)
Sets new value of SENSITIVE 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 radio-set.
|
protected int |
width(ControlSetItem[] items)
Calculate widget width for items' list
|
add, add, 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, isSort, itemIndex, lookup, lookup, pairs, replace, replace, replace, replace, replace, replace, replace, setDelimiter, setDelimiter, setHonorFormat, setListItemPairs, setListItemPairs, setListItems, setListItems, setMousePointerName, setSort, setSort, truncateValue, truncateValue, truncateValues, useListItemPairs, useListItems
changeFontWorker, getColon, getDataClass, getDataType, getIndex, getNextTabItem, getSideLabelHandle, getTitle, hasSideLabelHandle, isAutoResize, isDropTarget, isModified, 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
canSetPixelPositionInChui, getBgColor, getColumn, getDColor, getFgColor, getFont, getFrameColumn, getFrameRow, getFrameX, getFrameY, getHeightChars, getHeightPixels, getNextSibling, getParent, getParent, getPfColor, getPrevSibling, getRow, getTooltip, getValidParentTypes, getWidthChars, getWidthPixels, getX, getY, isMovable, isResizable, isSelected, isTabStop, prepareSizeChars, prepareSizePixels, setAlign, setBgColor, setBgColor, setBgColor, setColon, setColon, setColumn, setColumn, setColumnOrRow, setColumnOrRowWorker, setDColor, setDColor, setDColor, setFgColor, setFgColor, setFgColor, 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, 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, disable, dynamic, enable, finishConfigProcessing, finishSetup, getColumnFont, getColumnLabel, getContextHelpId, getConvert3D, getCursorOffset, getDbName, getFirstTabItem, getFormat, getFrame, getFrameHandle, getHelp, getHWND, getId, getLabel, getLabelFont, getLabelStr, getMaxHeightChars, getMaxWidthChars, getMenuKey, getMenuMouse, getMousePointer, getMousePosition, getNumColumns, getNumSelectedRows, getParentHandle, getPopupMenu, getPreviousTabItem, getQuery, getRetainShape, getStretchToFit, getTable, getTitleFont, getTransparent, getVirtHeight, getVirtHeightPixels, getVirtWidth, getVirtWidthPixels, getWidgetId, getWindow, hasNameReadOnly, hasParent, hide, hide, implicitDeletion, inputValue, isChained, isChecked, isEntered, isFocusedRowSelected, isHidden, isKeepFrameZOrder, isManualHighlight, isMultiple, isNotEntered, isReadOnly, isScrollable, isSelectable, isSelected, isSelected, isSensitive, 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, notSettable, notWorker, preRealizeCheck, pushScreenDefinition, readOnlyError, realize, refresh, resourceDelete, selectAll, selectFocusedRow, setAtFormatLength, setAutoReturn, setBlank, setChecked, setChecked, setColumnFont, setColumnFont, setContextHelpId, setContextHelpId, setConvert3D, setConvert3D, setCursorOffset, setCursorOffset, setDbname, setDeblank, setDisableAutoZap, setFirstTabItem, 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, setReadOnly, setRetainShape, setRetainShape, setScreenLock, setScreenValue, setScrollable, setScrollable, setSelectable, setSelectable, 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, validateLayout, view, widgetName
delete, firstResource, firstResource, getHead, getNextSibling, getPrevSibling, getPrivateData, getTail, hasName, hasNextSibling, hasPrevSibling, hasPrivateData, interlink, lastResource, lastResource, 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
apply, apply, apply, apply, asWidgetHandle, colorDisplay, colorPrompt, deselectRows, disable, enable, getBgColor, getColumn, getColumnFont, getContextHelpId, getCursorOffset, getDColor, getFgColor, getFirstTabItem, getFont, getFrame, getFrameColumn, getFrameHandle, getFrameRow, getFrameX, getFrameY, getHelp, getHWND, getId, getLabelFont, getLabelStr, getMaxHeightChars, getMaxWidthChars, getMenuKey, getMenuMouse, getMousePointer, getMousePosition, getNextTabItem, getNumColumns, getNumSelectedRows, getParent, getParentHandle, getPfColor, getPopupMenu, getPreviousTabItem, getQuery, getRow, getSideLabelHandle, getTitle, getTitleFont, getTooltip, getVirtHeight, getVirtHeightPixels, getVirtWidth, getVirtWidthPixels, getWidgetId, getWindow, hide, hide, inputValue, isAutoResize, isChecked, isEntered, isFocusedRowSelected, isHidden, isKeepFrameZOrder, isManualHighlight, isModified, isMovable, isMultiple, isNotEntered, isReadOnly, isResizable, isScrollable, isSelectable, isSelected, isSelected, isSelected, isTabStop, isThreeD, isValidatable, isVisible, loadMousePointer, loadMousePointer, moveAfterTab, moveAfterTab, moveBeforeTabItem, moveBeforeTabItem, moveToBottom, moveToTop, preRealizeCheck, realize, refresh, selectAll, selectFocusedRow, setAtFormatLength, setAutoResize, setAutoResize, setAutoReturn, setBgColor, setBlank, setChecked, setChecked, setColumn, setColumn, setColumnFont, setColumnFont, setContextHelpId, setContextHelpId, setCursorOffset, setCursorOffset, setDColor, setDColor, setDeblank, setDisableAutoZap, setFgColor, setFirstTabItem, setFont, setFont, setFormat, setFrame, setFrame, setFrame, setFrameHandle, setFrameHandle, setFrameHandle, setGroup, setHeader, setHelp, setHelp, 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, setResizable, setResizable, setRow, setRow, setScreenValue, setScreenValue, setScrollable, setScrollable, setSelectable, setSelectable, setSelected, setSelected, setSensitive, setSideLabelHandle, setTabStop, setTabStop, setThreeD, setThreeD, setTitle, setTitle, setTitleFont, setTitleFont, setTooltip, setTooltip, setValidation, setValidation, setVirtHeight, setVirtHeightPixels, setVirtWidth, setVirtWidthPixels, setVisible, setVisible, setWidgetId, setWidgetId, underline, underline, valid, validateFields, validateFields, validateFields, view
getNextSibling, getPrevSibling, getPrivateData, setPrivateData, setPrivateData
getResourceType, readOnlyError
id, id, unknown
getColumnLabel, getDataType, getFormat, getLabel, setColumnLabel, setColumnLabel, setDataType, setDataType, setFormat, setLabel, setLabel
getDbName, getTable
getHeightChars, getHeightPixels, getWidthChars, getWidthPixels, setHeightChars, setHeightChars, setHeightPixels, setHeightPixels, setWidthChars, setWidthChars, setWidthPixels, setWidthPixels
getX, getY, setX, 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 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.protected logical setEnabled(character label, boolean enabled)
label
- New label of the button to be enabled.enabled
- new 'enabled' statustrue
if successfulpublic void setSensitive(boolean s)
setSensitive
in interface Sensitive
setSensitive
in class GenericWidget<RadioSetConfig>
s
- new value of SENSITIVE attributepublic 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 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.boolean setScreenValue(ScreenBuffer frameBuf, java.lang.Object value, boolean inUIStmt)
setScreenValue
in class GenericWidget<RadioSetConfig>
frameBuf
- The frame buffer where to save the value.value
- The value to be set via SCREEN-VALUE attribute.inUIStmt
- Flag indicating this call originates from a UI statement.true
if the caller can proceed, as the screen-value can be set.private logical missingArgs()
private logical invalid3RdArg()