public class MenuItemConfig extends MnemonicConfig
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
accelerator
ACCELERATOR attr.
|
private static int |
ATTR_MASK_CHECKED
Bitwise mask to mark CHECKED atribute usage.
|
private static int |
ATTR_MASK_RO
Bitwise mask to mark READ ONLY atribute usage.
|
private static int |
ATTR_MASK_TOGGLE_BOX
Bitwise mask to mark TOGGLE BOX atribute usage.
|
boolean |
checked
Progress CHECKED attribute.
|
java.lang.Boolean |
initDisabled
Initial state of DISABLED flag, set during construction in menu definition
|
boolean |
readOnly
READ-ONLY attr.
|
static java.lang.String |
SBTP_NORMAL
Default SUBTYPE value.
|
static java.lang.String |
SBTP_RULE
This SUBTYPE denotes, that a rule or line is inserted at this point in the menu.
|
static java.lang.String |
SBTP_SKIP
This SUBTYPE denotes, that a blank line is inserted at this point in the menu.
|
java.lang.String |
subtype
SUBTYPE attr.
|
boolean |
toggleBox
TOGGLE-BOX attr.
|
mnemonic, preprocessedLabelalign, bgcolor, bgcolorRgb, captionFontSize, clientColumn, clientHeightChars, clientHeightPixels, clientRow, clientWidthChars, clientWidthPixels, clientX, clientY, column, dcolor, dynamic, fgcolor, fgcolorRgb, fixedHeight, fixedWidth, font, fontChanged, fontName, fontSize, fontStyle, frameColumnOffset, frameRowOffset, frameXOffset, frameYOffset, heightChars, heightPixels, initColumn, initHeightChars, initRow, initWidthChars, initX, initY, INV_COORD, locationChanged, movable, name, parentId, pfcolor, resizable, row, selected, sysbgcolor, sysfgcolor, systemParentId, tabStop, title, titleDColor, titleFont, tooltip, widgetPlaced, widthChars, widthPixels, x, ycfgClass, contextHelpId, disableRedraw, enabled, frameDefValue, frameId, fromOCX, header, hidden, id, manualHightlight, menuKey, menuMouse, modified, popupMenuId, realized, selectable, state, visible, wasRealized, zorder| Constructor and Description |
|---|
MenuItemConfig()
Default constructor (only used in deserialization).
|
MenuItemConfig(WidgetId id)
Create a new config and associate it with the given widget.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyConfig(WidgetConfig config)
Set new values from the provided configuration instance.
|
void |
readExternal(java.io.ObjectInput in)
Replacement for the default object reading method.
|
void |
writeExternal(java.io.ObjectOutput out)
Replacement for the default object writing method.
|
getConfigManager, getDynamicColumnLabel, getDynamicFormat, getDynamicHelp, getDynamicLabel, getDynamicUntranslatedLabel, markFieldsDirty, setDynamicFormat, setDynamicHeader, setDynamicHelp, setDynamicLabel, setDynamicLabels, setDynamicUntranslatedLabel, toStringpublic static final java.lang.String SBTP_NORMAL
public static final java.lang.String SBTP_SKIP
public static final java.lang.String SBTP_RULE
private static final int ATTR_MASK_RO
private static final int ATTR_MASK_TOGGLE_BOX
private static final int ATTR_MASK_CHECKED
public boolean readOnly
public boolean toggleBox
public java.lang.String accelerator
public java.lang.String subtype
SBTP_NORMAL,
SBTP_SKIP or SBTP_RULE. Specifies an appearance
and behavior of this menu-item. Can be specified only before realization.public boolean checked
public java.lang.Boolean initDisabled
public MenuItemConfig()
public MenuItemConfig(WidgetId id)
id - The ID of the widget to which this configuration belongs.public void applyConfig(WidgetConfig config)
applyConfig in class MnemonicConfigconfig - The instance from which to take values.public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.ExternalizablereadExternal in class MnemonicConfigin - The input source from which fields will be restored.java.io.IOException - In case of I/O errors.java.lang.ClassNotFoundException - If pay-load can't be instantiated.public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class MnemonicConfigout - The output destination to which fields will be saved.java.io.IOException - In case of I/O errors.