| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private XComponentPeer | |
| private static PlatformLogger | log
Hides sun. |
| private PopupMenu | |
| private XMenuPeer |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected Dimension | getCaptionSize()
Overrides sun. Returns height of menu window's caption. |
| pack-priv Vector | getMenuTargetItems()
Overrides sun. Reads vector of items from target This function is overridden in XPopupMenuPeer |
| pack-priv Font | |
| pack-priv String | |
| protected Rectangle | getWindowBounds(Point
the origin point specified in show()
function converted to global coordinates origin, Dimension the desired size of menu's window windowSize)Calculates placement of popup menu window given origin in global coordinates and size of menu window. |
| protected void | handleEvent(AWTEvent event)
Overrides sun. The implementation of base window performs processing of paint events only. |
| public void | handleKeyPress(XEvent xev)
Overrides sun. Overridden XWindow keyboard processing |
| pack-priv boolean | |
| protected void | paintCaption(Graphics g, Rectangle rect)
Overrides sun. Paints menu window's caption. |
| public void | setEnabled(boolean enabled)
Implements java. Enables or disables the menu item. |
| public void | setFont(Font f)
Implements java. Implementation of interface methods |
| public void | setLabel(String label)
Implements java. Sets the label to be displayed in this menu item. |
| public void | show(Event e)
Implements java.
References Deprecated
Event is deprecated or references (maybe indirectly) at least one deprecated element.
Shows the popup menu. |
| pack-priv void | ungrabInputImpl()
Overrides sun. Overridden XWindow general-purpose functions |
| CAPTION_MARGIN_TOP | back to summary |
|---|---|
| private static final int CAPTION_MARGIN_TOP | |
| CAPTION_SEPARATOR_HEIGHT | back to summary |
|---|---|
| private static final int CAPTION_SEPARATOR_HEIGHT | |
| componentPeer | back to summary |
|---|---|
| private XComponentPeer componentPeer | |
| log | back to summary |
|---|---|
| private static PlatformLogger log Hides sun. Data members | |
| popupMenuTarget | back to summary |
|---|---|
| private PopupMenu popupMenuTarget | |
| showingMousePressedSubmenu | back to summary |
|---|---|
| private XMenuPeer showingMousePressedSubmenu Hides sun. | |
| XPopupMenuPeer | back to summary |
|---|---|
| pack-priv XPopupMenuPeer(PopupMenu target) Construction | |
| doDispose | back to summary |
|---|---|
| protected void doDispose() Overrides sun. Overridden XBaseMenuWindow functions
| |
| getCaptionSize | back to summary |
|---|---|
| protected Dimension getCaptionSize() Overrides sun. Returns height of menu window's caption. Can be overridden for popup menus and tear-off menus
| |
| getMenuTargetItems | back to summary |
|---|---|
| pack-priv Vector Overrides sun. Doc from sun. Reads vector of items from target This function is overridden in XPopupMenuPeer
| |
| getTargetFont | back to summary |
|---|---|
| pack-priv Font getTargetFont() Access to target's fields | |
| getTargetLabel | back to summary |
|---|---|
| pack-priv String getTargetLabel() | |
| getWindowBounds | back to summary |
|---|---|
| protected Rectangle getWindowBounds(Point origin, Dimension windowSize) Calculates placement of popup menu window given origin in global coordinates and size of menu window. Returns suggested rectangle for menu window in global coordinates | |
| handleEvent | back to summary |
|---|---|
| protected void handleEvent(AWTEvent event) Overrides sun. Doc from sun. The implementation of base window performs processing of paint events only. This behaviour is changed in descendants.
| |
| handleKeyPress | back to summary |
|---|---|
| public void handleKeyPress(XEvent xev) Overrides sun. Overridden XWindow keyboard processing
| |
| isTargetEnabled | back to summary |
|---|---|
| pack-priv boolean isTargetEnabled() | |
| paintCaption | back to summary |
|---|---|
| protected void paintCaption(Graphics g, Rectangle rect) Overrides sun. Paints menu window's caption. Can be overridden for popup menus and tear-off menus. Default implementation does nothing
| |
| setEnabled | back to summary |
|---|---|
| public void setEnabled(boolean enabled) Implements java. Doc from java. Enables or disables the menu item.
| |
| setFont | back to summary |
|---|---|
| public void setFont(Font f) Implements java. Implementation of interface methods
| |
| setLabel | back to summary |
|---|---|
| public void setLabel(String label) Implements java. Doc from java. Sets the label to be displayed in this menu item.
| |
| show | back to summary |
|---|---|
| public void show(Event e) Implements java. Doc from java. References Deprecated
See corresponding docs for further information. Shows the popup menu.
| |
| ungrabInputImpl | back to summary |
|---|---|
| pack-priv void ungrabInputImpl() Overrides sun. Overridden XWindow general-purpose functions
| |