public class MenuConfig extends PaneConfig
Modifier and Type | Field and Description |
---|---|
boolean |
displayed
This flag is used to indicate the client state of widget.
|
int |
ownerId
OWNER property: window for menubar or other widget for pop-up menu,
or 0 if not assigned.
|
boolean |
popupOnly
Progress POPUP-ONLY attribute (Graphical interfaces only).
|
assignedVisible, boxSelectable, dropTarget, GRID_UNIT_SIZE_PIXELS_DEFAULT, gridFactorHorizontal, gridFactorVertical, gridSnap, gridUnitHeightPixels, gridUnitWidthPixels, gridVisible, numSelectedWidgets, threeD, virtualHeightChars, virtualHeightPixels, virtualWidthChars, virtualWidthPixels
align, bgcolor, clientColumn, clientHeightChars, clientHeightPixels, clientRow, clientWidthChars, clientWidthPixels, clientX, clientY, column, dcolor, dynamic, fgcolor, fixedHeight, fixedWidth, font, fontChanged, frameColumnOffset, frameRowOffset, frameXOffset, frameYOffset, heightChars, heightPixels, initColumn, initRow, initX, initY, INV_COORD, movable, name, parentId, pfcolor, resizable, row, selected, sysbgcolor, sysfgcolor, tabStop, title, titleDColor, titleFont, tooltip, widgetPlaced, widthChars, widthPixels, x, y
contextHelpId, enabled, frameDefValue, frameId, header, hidden, id, manualHightlight, menuKey, menuMouse, modified, popupMenuId, realized, selectable, state, visible, wasRealized
Constructor and Description |
---|
MenuConfig()
Default constructor (only used in deserialization).
|
MenuConfig(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.
|
getDynamicColumnLabel, getDynamicFormat, getDynamicHelp, getDynamicLabel, setDynamicFormat, setDynamicHeader, setDynamicHelp, setDynamicLabel, setDynamicLabels, toString
public boolean popupOnly
true
) or by window (false
).
Set by MENUBAR option in menu definition.public int ownerId
public boolean displayed
true
means the menu is dropped down (become visible).
Make sense only for pop-up menus.public MenuConfig()
public MenuConfig(WidgetId id)
id
- The ID of the widget to which this configuration belongs.public void applyConfig(WidgetConfig config)
applyConfig
in class PaneConfig
config
- 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.Externalizable
readExternal
in class PaneConfig
in
- The input source from which fields will be restored.java.io.IOException
- In case of I/O errors.java.lang.ClassNotFoundException
- If payload can't be instantiated.public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class PaneConfig
out
- The output destination to which fields will be saved.java.io.IOException
- In case of I/O errors.