| |
|
| java.lang.Object sun.awt.X11.XMenuItemPeer
All known Subclasses: sun.awt.X11.XMenuPeer, sun.awt.X11.XCheckboxMenuItemPeer,
Inner Class :static class TextMetrics implements Cloneable | |
action | void action(long when)(Code) | | This function is invoked when the user clicks
on menu item.
Parameters: when - the timestamp of action event |
calcTextMetrics | TextMetrics calcTextMetrics()(Code) | | Returns width of item's shortcut label,
0 if item has no shortcut.
The height of shortcut can be deternimed
from text dimensions.
This function does not use any locks
and is guaranteed to return some value
(possibly actual, possibly expired)
|
dispose | public void dispose()(Code) | | Implementaion of interface methods
|
getBounds | Rectangle getBounds()(Code) | | returns bounds of item that were previously set by map() function
|
getTargetActionCommand | String getTargetActionCommand()(Code) | | |
getTextMetrics | TextMetrics getTextMetrics()(Code) | | Returns text metrics of menu item.
This function does not use any locks
and is guaranteed to return some value
(possibly actual, possibly expired)
|
getTextOrigin | Point getTextOrigin()(Code) | | returns origin of item's text that was previously set by map() function
|
isContainerShowing | boolean isContainerShowing()(Code) | | Returns true if container exists and is showing
|
isSeparator | boolean isSeparator()(Code) | | This function should be overriden simply to
return false in inherited classes.
|
isTargetEnabled | boolean isTargetEnabled()(Code) | | |
isTargetItemEnabled | boolean isTargetItemEnabled()(Code) | | Returns true if item and all its parents are enabled
This function is used to fix
6184485: Popup menu is not disabled on XToolkit even when calling setEnabled (false)
|
map | void map(Rectangle bounds, Point textOrigin)(Code) | | Sets mapping of item to window.
Parameters: bounds - bounds of item in container's coordinates Parameters: textOrigin - point for drawString in container's coordinates See Also: XBaseMenuWindow.map() |
repaintIfShowing | void repaintIfShowing()(Code) | | Repaints item if it is showing
|
resetTextMetrics | void resetTextMetrics()(Code) | | |
setContainer | void setContainer(XBaseMenuWindow container)(Code) | | This function is called when filling item vectors
in XMenuWindow & XMenuBar. We need it because peers
are created earlier than windows.
Parameters: container - the window that this item belongs to. |
setEnabled | public void setEnabled(boolean enabled)(Code) | | |
|
|
|