public class SubMenuWidget extends MenuContainerWidget<SubMenuConfig> implements MnemonicInterface
BaseEntity.CharsPixels
group
config, deleted, frame
name, nextSibling, prevSibling
instProc
Constructor and Description |
---|
SubMenuWidget(boolean dynamic)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
static <T extends SubMenuDefinition> |
createStaticSubMenu(java.lang.Class<T> defCls,
java.lang.String name)
Creates new sub-menu as a proxy object (as a local resource).
|
MenuItemWidget |
findMenuItem(java.lang.String name)
Finds menu-item in this menu tree.
|
SubMenuWidget |
findSubMenu(java.lang.String name)
Finds sub-menu in this sub-menu tree.
|
static SubMenuWidget |
findSubMenuStatic(java.lang.String name)
Finds the first SUB-MENU with specified name in all menus.
|
handle |
firstChild()
Accesses the first window in the list of contained windows, having this window as parent.
|
character |
getLabel()
Get the label text for this widget.
|
integer |
getMnemonic()
Gets the mnemonic for this menu-item or sub-menu.
|
character |
getPreprocessedLabel()
Gets the preprocessed label text, as it appears in the UI.
|
protected java.lang.String[] |
getValidParentTypes()
Returns the widget types that can act as parent for this widget.
|
handle |
lastChild()
Accesses the last window in the list of contained windows, having this window as parent.
|
void |
setLabel(java.lang.String label)
Sets the label text, parsing mnemonic.
|
void |
setSensitive(boolean s)
Sets new value of SENSITIVE attribute.
|
addWidget, batch, batch, coreInitialize, findMenuItemInt, findRootMenu, findSubMenuInt, finishConfigProcessing, getFirstChild, getLastChild, getNextSibling, getNextSibling, getPrevSibling, getPrevSibling, isAttachedMenu, isBatch, isShared, listMenuTree, pushMenuDescription, pushScreenDefinition, pushWidgetAttr, pushWidgetAttr, removeWidget, resourceDelete, setShared, valid, widgets
_getHeightChars, _getHeightPixels, _getWidthChars, _getWidthPixels, canSetPixelPositionInChui, changeFontWorker, getBgColor, getBgColorRgb, getColumn, getDColor, getFgColor, getFgColorRgb, getFont, getFrameColumn, getFrameRow, getFrameX, getFrameY, getHeightChars, getHeightPixels, getParent, getParent, getPfColor, getRow, getSizeAttrs, getTitle, getTooltip, getWidthChars, getWidthPixels, getX, getY, isMovable, isResizable, isSelected, isTabStop, prepareSizeChars, prepareSizePixels, pushLocAttrs, pushSizeAttrs, resetAutoResize, setAlign, setBgColor, setBgColor, setBgColor, setBgColorRgb, setBgColorRgb, setBgColorRgb, setColon, setColon, setColumn, setColumn, setColumnOrRow, setColumnOrRowWorker, setDColor, setDColor, setDColor, setFgColor, setFgColor, setFgColor, setFgColorRgb, setFgColorRgb, setFgColorRgb, setFont, setGroup, setHeightChars, setHeightChars, setHeightCharsWorker, setHeightPixels, setHeightPixels, setHeightPixelsWorker, setMaxHeightCharsWorker, setMaxHeightPixelsWorker, setMaxWidthCharsWorker, setMaxWidthPixelsWorker, setMinHeightCharsWorker, setMinHeightPixelsWorker, setMinWidthCharsWorker, setMinWidthPixelsWorker, setMovable, setMovable, setParent, setPfColor, setPfColor, setPfColor, setResizable, setResizable, setRow, setRow, setSelected, setSelected, setSizeChars, setSizePixels, setTabStop, setTabStop, setTitle, setTitle, setTooltip, setTooltip, setVirtHeightCharsWorker, setVirtHeightPixelsWorker, setVirtWidthCharsWorker, setVirtWidthPixelsWorker, setWidthChars, setWidthChars, setWidthCharsWorker, setWidthPixels, setWidthPixels, setWidthPixelsWorker, setX, setX, setXorY, setXOrYWorker, setY, setY, useHandleChainSiblings, validateParent, validateSize, validColumnOrRow
_dynamic, _getDbName, _getFormat, _getTable, _isEntered, _isHidden, _isNotEntered, _isRealized, _isVisible, _setDynamic, _setVisible, afterConfigUpdate, apply, apply, apply, apply, asWidgetHandle, canAccess, canDelete, cleanup, colorDisplay, colorPrompt, config, deselectRows, detachMenu, disable, dynamic, enable, finishSetup, getColumnFont, getColumnLabel, getContextHelpId, getConvert3D, getCursorOffset, getDataType, getDbName, getFormat, getFrame, getFrameHandle, getHelp, getHWND, getId, getImage, getLabelFont, getLabelStr, getMaxHeightChars, getMaxWidthChars, getMenuKey, getMenuMouse, getMousePointer, getMousePosition, getNextTabItem, getNumColumns, getNumSelectedRows, getParentHandle, getPopupMenu, getPreviousTabItem, getQuery, getRetainShape, getScreenValue, getScreenValue, getSideLabelHandle, getStretchToFit, getTable, getTabPosition, getTitleFont, getTransparent, getValidationExpression, getValidationMessage, getVirtHeight, getVirtHeightPixels, getVirtWidth, getVirtWidthPixels, getWidgetId, getWindow, getZOrderClass, hasFormat, hasNameReadOnly, hasParent, hide, hide, implicitDeletion, inputValue, isAutoResize, isAutoReturn, isChained, isChecked, isDisableRedraw, isEntered, isFocusedRowSelected, isHidden, isKeepFrameZOrder, isManualHighlight, isModified, isMultiple, isNotEntered, isScrollable, isSelectable, isSelected, isSelected, isSensitive, isTabWidget, isTextSelected, isThreeD, isValidatable, isVisible, labelSizeCheck, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadMousePointer, loadMousePointer, moveAfterTab, moveAfterTab, moveBeforeTabItem, moveBeforeTabItem, moveToBottom, moveToTop, moveToWorker, name, notQueryable, notQueryable, notSettable, notSettable, notWorker, preRealizeCheck, processSideLabel, readOnlyError, realize, refresh, restoreSharedState, saveSharedState, selectAll, selectFocusedRow, setAtFormatLength, setAutoResize, setAutoResize, setAutoReturn, setAutoReturn, setBlank, setChecked, setChecked, setColumnFont, setColumnFont, setColumnLabel, setColumnLabel, setContextHelpId, setContextHelpId, setConvert3D, setConvert3D, setCursorOffset, setCursorOffset, setDataType, setDataType, setDbname, setDeblank, setDisableAutoZap, setDisableRedraw, setFont, setFormat, setFormat, setFrame, setFrame, setFrame, setFrameHandle, setFrameHandle, setFrameHandle, setHeader, setHelp, setHelp, setHelpDefault, setHelpStatic, setHidden, setHidden, setId, setKeepFrameZOrder, setKeepFrameZOrder, setLabel, setLabelFont, setLabelFont, setLabelInt, setManualHighlight, setManualHighlight, setMaxHeightChars, setMaxWidthChars, setMenuKey, setMenuKey, setMenuMouse, setMenuMouse, setModified, setModified, setMultiple, setMultiple, setNextTabItem, setNoAutoValidate, setNumSelectedRows, setParentHandle, setParentHandle, setPopupMenu, setPopupMenu, setQuery, setRetainShape, setRetainShape, setScreenLock, setScreenValue, setScreenValue, setScrollable, setScrollable, setSelectable, setSelectable, setSensitive, setSensitive, setSensitive, setSideLabelHandle, setStretchToFit, setStretchToFit, setTable, setThreeD, setThreeD, setTitleFont, setTitleFont, setTransparent, setTransparent, setValidation, setValidation, setVertical, setVirtHeight, setVirtHeightPixels, setVirtWidth, setVirtWidthPixels, setVisible, setVisible, setWidgetId, setWidgetId, truncatePixelSize, underline, underline, validate, validateFields, validateFields, validateFields, validateFields, view, widgetName
delete, firstResource, firstResource, getHead, getPrivateData, getTail, hasName, hasNextSibling, hasPrevSibling, hasPrivateData, interlink, lastResource, lastResource, moveInChain, name, name, setHead, setNextSibling, setNextSibling, setPrevSibling, setPrevSibling, setPrivateData, setPrivateData, setPrivateData
getResourceType, id, id, instantiatingProcedure, invalidAttribute, setInstantiatingProcedure, type, unknown
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setScreenValue
getPrivateData, setPrivateData, setPrivateData
getResourceType
id, id, unknown
setDisableRedraw
public SubMenuWidget(boolean dynamic)
dynamic
- Flag indicating if this is a static or dynamic resource.public integer getMnemonic()
getMnemonic
in interface MnemonicInterface
public character getPreprocessedLabel()
getPreprocessedLabel
in interface MnemonicInterface
public character getLabel()
getLabel
in interface CommonField
getLabel
in class GenericWidget<SubMenuConfig>
public void setLabel(java.lang.String label)
setLabel
in interface CommonField
setLabel
in class GenericWidget<SubMenuConfig>
label
- The new label text.public void setSensitive(boolean s)
GenericWidget
logic
(that enables widget in its frame).setSensitive
in interface Sensitive
setSensitive
in class MenuContainerWidget<SubMenuConfig>
s
- new value of SENSITIVE attributepublic MenuItemWidget findMenuItem(java.lang.String name)
MenuContainerWidget.findMenuItemInt(String)
name
- MENU-ITEM name.MenuItemWidget
or null if not found.public SubMenuWidget findSubMenu(java.lang.String name)
name
- Sub-menu name.SubMenuWidget
or null if not found.public handle firstChild()
firstChild
in interface CommonHandleTree
null
if no widgets are contained.public handle lastChild()
lastChild
in interface CommonHandleTree
null
if no widgets are contained.public static <T extends SubMenuDefinition> T createStaticSubMenu(java.lang.Class<T> defCls, java.lang.String name)
T
- Sub-menu definition class type.defCls
- The class of sub-menu definition.name
- The name of sub-menu.public static SubMenuWidget findSubMenuStatic(java.lang.String name)
name
- The name of searched SUB-MENUprotected java.lang.String[] getValidParentTypes()
getValidParentTypes
in class BaseEntity<SubMenuConfig>