| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | XMenuBarPeer.
XBaseMenuWindow's mappingData is extended with desired height of menu bar |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private XFramePeer | |
| pack-priv static final int | |
| private XMenuPeer | |
| private static PlatformLogger | log
Data members
|
| private MenuBar | |
| pack-priv static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | addHelpMenu(Menu m)
Implements java. Adds a help menu to the menu bar. |
| public void | |
| public void | |
| protected void | |
| pack-priv int | |
| protected XBaseMenuWindow | getParentMenuWindow()
Implements abstract sun. Menu bar is always root window in menu window's hierarchy |
| protected Rectangle | getSubmenuBounds(Rectangle itemBounds, Dimension windowSize)
Implements abstract sun. Calculates placement of submenu window given bounds of item with submenu and size of submenu window. |
| protected void | handleEvent(AWTEvent event)
Overrides sun. Overridden XBaseMenuWindow event handling |
| pack-priv void | |
| public void | |
| public void | |
| pack-priv boolean | isFramePeerEnabled()
Returns true if framePeer is not null and is enabled Used to fix 6185057: Disabling a frame does not disable the menus on the frame, on solaris/linux |
| protected XMenuBarPeer. | |
| public void | paintPeer(Graphics g)
Overrides sun. Overridden XWindow painting & printing |
| pack-priv void | postInit(XCreateWindowParams params)
Overrides sun. Overridden initialization |
| pack-priv void | |
| public void | reshape(int x, int y, int width, int height)
Overrides sun. For menu bars this function is called from framePeer's reshape(...) and updateChildrenSizes() |
| public void | setFont(Font f)
Implements java. Implementation of interface methods |
| pack-priv void | |
| protected void | updateSize()
Implements abstract sun. This function is called when it's likely that size of items has changed. |
| BAR_ITEM_MARGIN_BOTTOM | back to summary |
|---|---|
| private static final int BAR_ITEM_MARGIN_BOTTOM | |
| BAR_ITEM_MARGIN_LEFT | back to summary |
|---|---|
| private static final int BAR_ITEM_MARGIN_LEFT | |
| BAR_ITEM_MARGIN_RIGHT | back to summary |
|---|---|
| private static final int BAR_ITEM_MARGIN_RIGHT | |
| BAR_ITEM_MARGIN_TOP | back to summary |
|---|---|
| private static final int BAR_ITEM_MARGIN_TOP | |
| BAR_ITEM_SPACING | back to summary |
|---|---|
| private static final int BAR_ITEM_SPACING | |
| BAR_SPACING_BOTTOM | back to summary |
|---|---|
| private static final int BAR_SPACING_BOTTOM | |
| BAR_SPACING_LEFT | back to summary |
|---|---|
| private static final int BAR_SPACING_LEFT | |
| BAR_SPACING_RIGHT | back to summary |
|---|---|
| private static final int BAR_SPACING_RIGHT | |
| BAR_SPACING_TOP | back to summary |
|---|---|
| private static final int BAR_SPACING_TOP | |
| framePeer | back to summary |
|---|---|
| private XFramePeer framePeer | |
| H_DIFF | back to summary |
|---|---|
| pack-priv static final int H_DIFF | |
| helpMenu | back to summary |
|---|---|
| private XMenuPeer helpMenu | |
| log | back to summary |
|---|---|
| private static PlatformLogger log Hides sun. Data members | |
| menuBarTarget | back to summary |
|---|---|
| private MenuBar menuBarTarget | |
| W_DIFF | back to summary |
|---|---|
| pack-priv static final int W_DIFF | |
| XMenuBarPeer | back to summary |
|---|---|
| pack-priv XMenuBarPeer(MenuBar menuBarTarget) Construction | |
| addHelpMenu | back to summary |
|---|---|
| public void addHelpMenu(Menu m) Implements java. Doc from java. Adds a help menu to the menu bar.
| |
| addMenu | back to summary |
|---|---|
| public void addMenu(Menu m) Implements java. Doc from java. Adds a menu to the menu bar.
| |
| delMenu | back to summary |
|---|---|
| public void delMenu(int index) Implements java. Doc from java. Deletes a menu from the menu bar.
| |
| doDispose | back to summary |
|---|---|
| protected void doDispose() Overrides sun. Doc from sun. Performs disposal of menu window. Should be called only on eventHandlerThread
| |
| getDesiredHeight | back to summary |
|---|---|
| pack-priv int getDesiredHeight() Returns desired height of menu bar | |
| getParentMenuWindow | back to summary |
|---|---|
| protected XBaseMenuWindow getParentMenuWindow() Implements abstract sun. Menu bar is always root window in menu window's hierarchy
| |
| getSubmenuBounds | back to summary |
|---|---|
| protected Rectangle getSubmenuBounds(Rectangle itemBounds, Dimension windowSize) Implements abstract sun. Doc from sun. Calculates placement of submenu window given bounds of item with submenu and size of submenu window. Returns suggested rectangle for submenu window in global coordinates
| |
| handleEvent | back to summary |
|---|---|
| protected void handleEvent(AWTEvent event) Overrides sun. Overridden XBaseMenuWindow event handling
| |
| handleF10KeyPress | back to summary |
|---|---|
| pack-priv void handleF10KeyPress(KeyEvent event) Overridden XWindow keyboard processing
| |
| handleKeyPress | back to summary |
|---|---|
| public void handleKeyPress(XEvent xev) Overrides sun.
| |
| init | back to summary |
|---|---|
| public void init(Frame frame) called from XFramePeer.setMenuBar | |
| isFramePeerEnabled | back to summary |
|---|---|
| pack-priv boolean isFramePeerEnabled() Returns true if framePeer is not null and is enabled Used to fix 6185057: Disabling a frame does not disable the menus on the frame, on solaris/linux | |
| map | back to summary |
|---|---|
| protected XMenuBarPeer. Implements abstract sun. Doc from sun. Performs mapping of items in window. This function creates and fills specific descendant of MappingData and sets mapping coordinates of items This function should return default menu data if errors occur
| |
| paintPeer | back to summary |
|---|---|
| public void paintPeer(Graphics g) Overrides sun. Overridden XWindow painting & printing
| |
| postInit | back to summary |
|---|---|
| pack-priv void postInit(XCreateWindowParams params) Overrides sun. Overridden initialization
| |
| back to summary | |
|---|---|
| pack-priv void print(Graphics g) | |
| reshape | back to summary |
|---|---|
| public void reshape(int x, int y, int width, int height) Overrides sun. For menu bars this function is called from framePeer's reshape(...) and updateChildrenSizes()
| |
| setFont | back to summary |
|---|---|
| public void setFont(Font f) Implements java. Implementation of interface methods
| |
| ungrabInputImpl | back to summary |
|---|---|
| pack-priv void ungrabInputImpl() Overrides sun. Performs ungrabbing of input
| |
| updateSize | back to summary |
|---|---|
| protected void updateSize() Implements abstract sun. This function is called when it's likely that size of items has changed. Invokes framePeer's updateChildrenSizes()
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int |
| desiredHeight | back to summary |
|---|---|
| pack-priv int desiredHeight | |
| MappingData | back to summary |
|---|---|
| pack-priv MappingData(XMenuItemPeer[] items, int desiredHeight) | |
| MappingData | back to summary |
|---|---|
| pack-priv MappingData() Constructs MappingData without items This constructor should be used in case of errors | |
| getDesiredHeight | back to summary |
|---|---|
| public int getDesiredHeight() | |