< prev index next >
src/java.desktop/unix/classes/sun/awt/X11/XMenuWindow.java
Print this page
*** 190,207 ****
* Implementation of abstract methods
*
************************************************/
/**
! * @see XBaseMenuWindow.getParentMenuWindow()
*/
protected XBaseMenuWindow getParentMenuWindow() {
return (menuPeer != null) ? menuPeer.getContainer() : null;
}
/**
! * @see XBaseMenuWindow.map()
*/
protected MappingData map() {
//TODO:Implement popup-menu caption mapping and painting and tear-off
int itemCnt;
if (!isCreated()) {
--- 190,207 ----
* Implementation of abstract methods
*
************************************************/
/**
! * @see XBaseMenuWindow#getParentMenuWindow()
*/
protected XBaseMenuWindow getParentMenuWindow() {
return (menuPeer != null) ? menuPeer.getContainer() : null;
}
/**
! * @see XBaseMenuWindow#map()
*/
protected MappingData map() {
//TODO:Implement popup-menu caption mapping and painting and tear-off
int itemCnt;
if (!isCreated()) {
*** 272,282 ****
MappingData mappingData = new MappingData(itemVector, captionRect, new Dimension(width, height), maxLeftIndent, shortcutOrigin, rightMarkOrigin);
return mappingData;
}
/**
! * @see XBaseMenuWindow.getSubmenuBounds()
*/
protected Rectangle getSubmenuBounds(Rectangle itemBounds, Dimension windowSize) {
Rectangle globalBounds = toGlobal(itemBounds);
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
Rectangle res;
--- 272,282 ----
MappingData mappingData = new MappingData(itemVector, captionRect, new Dimension(width, height), maxLeftIndent, shortcutOrigin, rightMarkOrigin);
return mappingData;
}
/**
! * @see XBaseMenuWindow#getSubmenuBounds
*/
protected Rectangle getSubmenuBounds(Rectangle itemBounds, Dimension windowSize) {
Rectangle globalBounds = toGlobal(itemBounds);
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
Rectangle res;
< prev index next >