public class SubMenuWidget extends MenuContainerWidget<SubMenuConfig> implements MnemonicInterface
BaseEntity.CharsPixelsgroupconfig, deleted, frame, internalScreenValueUsage, realizeOnAttributeAccessname, nextSibling, prevSibling, wainstProc, pm| 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.
|
protected void |
pushScreenDefinition()
Push the definition to the client-side.
|
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, canPushWidgetAttr, coreInitialize, delete, findMenuItemInt, findRootMenu, findSubMenuInt, finishConfigProcessing, getFirstChild, getId, getLastChild, getNextSibling, getNextSibling, getPrevSibling, getPrevSibling, isAttachedMenu, isBatch, isShared, listMenuTree, pushMenuDescription, removeWidget, resourceDelete, setShared, valid, widgets_getHeightChars, _getHeightPixels, _getWidthChars, _getWidthPixels, canSetPixelPositionInChui, changeFontWorker, emit4084Warning, emitUnableToAssignUnknownAttributeWarning, getBgColor, getBgColorRgb, getColumn, getDColor, getFgColor, getFgColorRgb, getFont, getFontInfo, getFontName, getFontSize, getFrameColumn, getFrameRow, getFrameX, getFrameY, getHeightChars, getHeightPixels, getParent, getParent, getPfColor, getRow, getSizeAttrs, getTitle, getTooltip, getWidthChars, getWidthPixels, getX, getY, isFontBold, isFontItalic, isFontUnderline, isMovable, isResizable, isSelected, isTabStop, prepareSizeChars, prepareSizePixels, pushLocAttrs, pushSizeAttrs, resetAutoResize, 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, setHeightCharsWorker, setHeightImpl, 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, setSystemParent, setTabStop, setTabStop, setTitle, setTitle, setTooltip, setTooltip, setVirtHeightCharsWorker, setVirtHeightPixelsWorker, setVirtWidthCharsWorker, setVirtWidthPixelsWorker, setWidthChars, setWidthChars, setWidthCharsWorker, setWidthImpl, setWidthPixels, setWidthPixels, setWidthPixelsWorker, 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, cleanup, colorDisplay, colorPrompt, config, deselectRows, detachMenu, disable, dynamic, editUndo, enable, finishSetup, flushWidgetAttrs, genAssignUnknownWarning, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getColumnFont, getColumnLabel, getContextHelpId, getConvert3D, getCursorOffset, getDataType, getDbName, getFormat, getFrame, getFrameHandle, getFrameName, getHeight, getHelp, getHWND, getImage, getLabelFont, getLabelStr, getLogicalTerminal, 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, getWidth, getWindow, getZOrderClass, hasFormat, hasNameReadOnly, hasParent, hide, hide, implicitDeletion, inputValue, isAutoCompletion, isAutoResize, isAutoReturn, isChained, isChecked, isDisableRedraw, isEntered, isExpandLabel, isFocusedRowSelected, isHidden, isKeepFrameZOrder, isManualHighlight, isModified, 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, processSideLabel, pushWidgetAttr, pushWidgetAttr, readOnlyError, readOnlyError, realize, refresh, restoreSharedState, saveSharedState, selectAll, selectFocusedRow, setAtFormatLength, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttrs, setAutoCompletion, setAutoCompletion, 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, setFromOCX, setHeader, setHeight, setHelp, setHelp, setHelpDefault, setHelpStatic, setHidden, setHidden, setId, setKeepFrameZOrder, setKeepFrameZOrder, setLabel, setLabel, setLabelFont, setLabelFont, setLabelInt, setManualHighlight, setManualHighlight, setMaxHeightChars, setMaxWidthChars, setMenuKey, setMenuKey, setMenuMouse, setMenuMouse, setModified, setModified, setMultiple, setMultiple, setNextTabItem, setNoAutoValidate, setNumSelectedRows, setParentHandle, setParentHandle, setPopupMenu, setPopupMenu, setQuery, setReadOnly, setRetainShape, setRetainShape, setScreenLock, setScreenValue, setScreenValue, setScreenValue, setScreenValue, setScreenValueInt, setScreenValueNoErrorHandling, 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, setWidth, truncatePixelSize, type, underline, underline, validate, validateFields, validateFields, validateFields, validateFields, validateLabelAssignment, view, warningAlreadyRealized, widgetNamefirstResource, firstResource, getHead, 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, waitgetIdEx, getListItems, isEditCanUndo, setListItems, setListItems, setScreenValuegetPrivateData, setPrivateData, setPrivateDataresourceTypeid, id, unknownsetDisableRedrawsetReadOnlyallowDeletepublic SubMenuWidget(boolean dynamic)
dynamic - Flag indicating if this is a static or dynamic resource.public integer getMnemonic()
getMnemonic in interface MnemonicInterfacepublic character getPreprocessedLabel()
getPreprocessedLabel in interface MnemonicInterfacepublic character getLabel()
getLabel in interface CommonFieldgetLabel in class GenericWidget<SubMenuConfig>public void setLabel(java.lang.String label)
setLabel in interface CommonFieldsetLabel 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 SensitivesetSensitive 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 CommonHandleTreenull if no widgets are contained.public handle lastChild()
lastChild in interface CommonHandleTreenull 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 void pushScreenDefinition()
pushScreenDefinition in class MenuContainerWidget<SubMenuConfig>protected java.lang.String[] getValidParentTypes()
getValidParentTypes in class BaseEntity<SubMenuConfig>