Java Doc for XMenuWindow.java in  » 6.0-JDK-Platform » solaris » sun » awt » X11 » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Platform » solaris » sun.awt.X11 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   sun.awt.X11.XBaseWindow
      sun.awt.X11.XWindow
         sun.awt.X11.XBaseMenuWindow
            sun.awt.X11.XMenuWindow

All known Subclasses:   sun.awt.X11.XPopupMenuPeer,
XMenuWindow
public class XMenuWindow extends XBaseMenuWindow (Code)

Inner Class :static class MappingData extends XBaseMenuWindow.MappingData


Constructor Summary
 XMenuWindow(XMenuPeer menuPeer)
    

Method Summary
 booleanensureCreated()
    
protected  DimensiongetCaptionSize()
     Returns size of menu window's caption or null if window has no caption.
 DimensiongetDesiredSize()
    
 XMenuPeergetMenuPeer()
    
 VectorgetMenuTargetItems()
    
protected  XBaseMenuWindowgetParentMenuWindow()
    
protected  RectanglegetSubmenuBounds(Rectangle itemBounds, Dimension windowSize)
    
 voidhide()
    
 booleanisCreated()
    
protected  MappingDatamap()
    
public  voidpaint(Graphics g)
    
protected  voidpaintCaption(Graphics g, Rectangle rect)
     Paints menu window's caption.
 voidpostInit(XCreateWindowParams params)
    
 voidshow(Rectangle bounds)
    
protected  voidupdateSize()
    


Constructor Detail
XMenuWindow
XMenuWindow(XMenuPeer menuPeer)(Code)
Constructs XMenuWindow for specified XMenuPeer null for XPopupMenuWindow




Method Detail
ensureCreated
boolean ensureCreated()(Code)
Performs delayed creation of menu window if necessary



getCaptionSize
protected Dimension getCaptionSize()(Code)
Returns size of menu window's caption or null if window has no caption. Can be overriden for popup menus and tear-off menus



getDesiredSize
Dimension getDesiredSize()(Code)
Returns desired size calculated while mapping



getMenuPeer
XMenuPeer getMenuPeer()(Code)
Returns corresponding menu peer



getMenuTargetItems
Vector getMenuTargetItems()(Code)
Reads vector of items from target This function is overriden in XPopupMenuPeer



getParentMenuWindow
protected XBaseMenuWindow getParentMenuWindow()(Code)

See Also:    XBaseMenuWindow.getParentMenuWindow()



getSubmenuBounds
protected Rectangle getSubmenuBounds(Rectangle itemBounds, Dimension windowSize)(Code)

See Also:    XBaseMenuWindow.getSubmenuBounds()



hide
void hide()(Code)
Hides menu window



isCreated
boolean isCreated()(Code)
Checks if menu window is created



map
protected MappingData map()(Code)

See Also:    XBaseMenuWindow.map()



paint
public void paint(Graphics g)(Code)
Paints menu window



paintCaption
protected void paintCaption(Graphics g, Rectangle rect)(Code)
Paints menu window's caption. Can be overriden for popup menus and tear-off menus. Default implementation does nothing



postInit
void postInit(XCreateWindowParams params)(Code)
Initialization



show
void show(Rectangle bounds)(Code)
Init window if it's not inited yet and show it at specified coordinates
Parameters:
  bounds - bounding rectangle of window in global coordinates



updateSize
protected void updateSize()(Code)
It's likely that size of items was changed invoke resizing of window on eventHandlerThread



Fields inherited from sun.awt.X11.XBaseMenuWindow
protected Point grabInputPoint(Code)(Java Doc)
protected boolean hasPointerMoved(Code)(Java Doc)

Methods inherited from sun.awt.X11.XBaseMenuWindow
public void addItem(MenuItem item)(Code)(Java Doc)
XMenuItemPeer[] copyItems()(Code)(Java Doc)
public void delItem(int index)(Code)(Java Doc)
public void dispose()(Code)(Java Doc)
protected void doDispose()(Code)(Java Doc)
void doHandleJavaKeyEvent(KeyEvent event)(Code)(Java Doc)
void doHandleJavaMouseEvent(MouseEvent mouseEvent)(Code)(Java Doc)
void doHandleJavaPaintEvent(PaintEvent event)(Code)(Java Doc)
void draw3DRect(Graphics g, int x, int y, int width, int height, boolean raised)(Code)(Java Doc)
Rectangle fitWindowAbove(Rectangle itemBounds, Dimension windowSize, Dimension screenSize)(Code)(Java Doc)
Rectangle fitWindowBelow(Rectangle itemBounds, Dimension windowSize, Dimension screenSize)(Code)(Java Doc)
Rectangle fitWindowLeft(Rectangle itemBounds, Dimension windowSize, Dimension screenSize)(Code)(Java Doc)
Rectangle fitWindowRight(Rectangle itemBounds, Dimension windowSize, Dimension screenSize)(Code)(Java Doc)
Rectangle fitWindowToScreen(Dimension windowSize, Dimension screenSize)(Code)(Java Doc)
Color getBackgroundColor()(Code)(Java Doc)
Color getDarkShadowColor()(Code)(Java Doc)
Color getDisabledColor()(Code)(Java Doc)
XMenuItemPeer getFirstSelectableItem()(Code)(Java Doc)
Color getForegroundColor()(Code)(Java Doc)
XMenuItemPeer getItem(int index)(Code)(Java Doc)
XMenuItemPeer getItemFromPoint(Point pt)(Code)(Java Doc)
Color getLightShadowColor()(Code)(Java Doc)
MappingData getMappingData()(Code)(Java Doc)
static Object getMenuTreeLock()(Code)(Java Doc)
XBaseMenuWindow getMenuWindowFromPoint(Point pt)(Code)(Java Doc)
XMenuItemPeer getNextSelectableItem()(Code)(Java Doc)
abstract protected XBaseMenuWindow getParentMenuWindow()(Code)(Java Doc)
XMenuItemPeer getPrevSelectableItem()(Code)(Java Doc)
XBaseMenuWindow getRootMenuWindow()(Code)(Java Doc)
Color getSelectedColor()(Code)(Java Doc)
XMenuItemPeer getSelectedItem()(Code)(Java Doc)
XBaseMenuWindow getShowingLeaf()(Code)(Java Doc)
XMenuPeer getShowingSubmenu()(Code)(Java Doc)
abstract protected Rectangle getSubmenuBounds(Rectangle itemBounds, Dimension windowSize)(Code)(Java Doc)
public boolean grabInput()(Code)(Java Doc)
protected void handleEvent(AWTEvent event)(Code)(Java Doc)
void instantPreInit(XCreateWindowParams params)(Code)(Java Doc)
protected boolean isEventDisabled(XEvent e)(Code)(Java Doc)
abstract protected MappingData map()(Code)(Java Doc)
void postEvent(AWTEvent event)(Code)(Java Doc)
void postPaintEvent()(Code)(Java Doc)
public void reloadItems(Vector items)(Code)(Java Doc)
void replaceColors(Color backgroundColor)(Code)(Java Doc)
void resetColors()(Code)(Java Doc)
protected void resetMapping()(Code)(Java Doc)
void selectItem(XMenuItemPeer item, boolean showWindowIfMenu)(Code)(Java Doc)
final void setItemsFont(Font font)(Code)(Java Doc)
abstract protected void updateSize()(Code)(Java Doc)

Fields inherited from sun.awt.X11.XWindow
final public static String TARGETREPARENTED(Code)(Java Doc)
Color backgroundColor(Code)(Java Doc)
static Field bdata(Code)(Java Doc)
static int clickCount(Code)(Java Doc)
final static Font defaultFont(Code)(Java Doc)
protected X11GraphicsConfig graphicsConfig(Code)(Java Doc)
protected AwtGraphicsConfigData graphicsConfigData(Code)(Java Doc)
static long lastButton(Code)(Java Doc)
static long lastTime(Code)(Java Doc)
static WeakReference lastWindowRef(Code)(Java Doc)
static int lastXlastY(Code)(Java Doc)
static Method m_sendMessage(Code)(Java Doc)
int oldHeight(Code)(Java Doc)
int oldWidth(Code)(Java Doc)
XRepaintArea paintArea(Code)(Java Doc)
XWindow parent(Code)(Java Doc)
static int rbutton(Code)(Java Doc)
SurfaceData surfaceData(Code)(Java Doc)
Component target(Code)(Java Doc)

Methods inherited from sun.awt.X11.XWindow
public void dispose()(Code)(Java Doc)
protected boolean doEraseBackground()(Code)(Java Doc)
public void doLayout(int x, int y, int width, int height)(Code)(Java Doc)
protected void flush()(Code)(Java Doc)
native static int getAWTKeyCodeForKeySym(int keysym)(Code)(Java Doc)
public ColorModel getColorModel(int transparency)(Code)(Java Doc)
public ColorModel getColorModel()(Code)(Java Doc)
public Component getEventSource()(Code)(Java Doc)
public FontMetrics getFontMetrics(Font font)(Code)(Java Doc)
Graphics getGraphics(SurfaceData surfData, Color afore, Color aback, Font afont)(Code)(Java Doc)
public Graphics getGraphics()(Code)(Java Doc)
public GraphicsConfiguration getGraphicsConfiguration()(Code)(Java Doc)
public AwtGraphicsConfigData getGraphicsConfigurationData()(Code)(Java Doc)
native static int getKeySymForAWTKeyCode(int keycode)(Code)(Java Doc)
public Point getLocationOnScreen()(Code)(Java Doc)
static int getModifiers(int state, int button, int keyCode)(Code)(Java Doc)
static int getMouseMovementSmudge()(Code)(Java Doc)
native int getNativeColor(Color clr, GraphicsConfiguration gc)(Code)(Java Doc)
static long getParentWindowID(Component target)(Code)(Java Doc)
static XWindow getParentXWindowObject(Component target)(Code)(Java Doc)
static int getRightButtonNumber()(Code)(Java Doc)
public SurfaceData getSurfaceData()(Code)(Java Doc)
public Object getTarget()(Code)(Java Doc)
public Rectangle getTargetBounds()(Code)(Java Doc)
native long getTopWindow(long window, long rootWin)(Code)(Java Doc)
protected String[] getWMClass()(Code)(Java Doc)
native void getWMInsets(long window, long left, long top, long right, long bottom, long border)(Code)(Java Doc)
public Color getWinBackground()(Code)(Java Doc)
native void getWindowBounds(long window, long x, long y, long width, long height)(Code)(Java Doc)
static int getXModifiers(AWTKeyStroke stroke)(Code)(Java Doc)
public void handleButtonPressRelease(XEvent xev)(Code)(Java Doc)
public void handleConfigureNotifyEvent(XEvent xev)(Code)(Java Doc)
public void handleExposeEvent(XEvent xev)(Code)(Java Doc)
public void handleExposeEvent(Component target, int x, int y, int w, int h)(Code)(Java Doc)
public void handleKeyPress(XEvent xev)(Code)(Java Doc)
final void handleKeyPress(XKeyEvent ev)(Code)(Java Doc)
public void handleKeyRelease(XEvent xev)(Code)(Java Doc)
public void handleMapNotifyEvent(XEvent xev)(Code)(Java Doc)
public void handleMotionNotify(XEvent xev)(Code)(Java Doc)
public void handleUnmapNotifyEvent(XEvent xev)(Code)(Java Doc)
public void handleXCrossingEvent(XEvent xev)(Code)(Java Doc)
native boolean haveCurrentX11InputMethodInstance()(Code)(Java Doc)
protected void initGraphicsConfiguration()(Code)(Java Doc)
public boolean isEmbedded()(Code)(Java Doc)
boolean isLocationByPlatform()(Code)(Java Doc)
boolean isParentOf(XWindow win)(Code)(Java Doc)
boolean isReparented()(Code)(Java Doc)
boolean isResizable()(Code)(Java Doc)
boolean isShowing()(Code)(Java Doc)
int keyEventType2Id(int xEventType)(Code)(Java Doc)
char keysymToUnicode(long keysym, int state)(Code)(Java Doc)
public void layout()(Code)(Java Doc)
void logIncomingKeyEvent(XKeyEvent ev)(Code)(Java Doc)
void paint(Graphics g)(Code)(Java Doc)
public void popup(int x, int y, int width, int height)(Code)(Java Doc)
void postEvent(AWTEvent event)(Code)(Java Doc)
static void postEventStatic(AWTEvent event)(Code)(Java Doc)
public void postEventToEventQueue(AWTEvent event)(Code)(Java Doc)
void postInit(XCreateWindowParams params)(Code)(Java Doc)
public void postKeyEvent(int id, long when, int keyCode, char keyChar, int keyLocation, int state, long event, int eventSize)(Code)(Java Doc)
void preInit(XCreateWindowParams params)(Code)(Java Doc)
boolean prePostEvent(AWTEvent e)(Code)(Java Doc)
public void repaint(int x, int y, int width, int height)(Code)(Java Doc)
public void repaint()(Code)(Java Doc)
public void reshape(Rectangle bounds)(Code)(Java Doc)
public void reshape(int x, int y, int width, int height)(Code)(Java Doc)
static void sendEvent(AWTEvent e)(Code)(Java Doc)
static void setBData(KeyEvent e, byte[] data)(Code)(Java Doc)
public void setBackground(Color c)(Code)(Java Doc)
void setReparented(boolean newValue)(Code)(Java Doc)
void updateSizeHints()(Code)(Java Doc)
void updateSizeHints(int x, int y, int width, int height)(Code)(Java Doc)
void updateSizeHints(int x, int y)(Code)(Java Doc)
void validateSurface()(Code)(Java Doc)
void winBackground(Color c)(Code)(Java Doc)
native public boolean x11inputMethodLookupString(long event, long[] keysymArray)(Code)(Java Doc)
final public void xSetBackground(Color c)(Code)(Java Doc)

Fields inherited from sun.awt.X11.XBaseWindow
final static int DEF_LOCATION(Code)(Java Doc)
final static int MIN_SIZE(Code)(Java Doc)
final public static String PARENT_WINDOWBOUNDSOVERRIDE_REDIRECTEVENT_MASKVALUE_MASKBORDER_PIXELCOLORMAPDEPTHVISUAL_CLASSVISUALEMBEDDEDDELAYEDPARENTBACKGROUND_PIXMAPVISIBLESAVE_UNDERBACKING_STOREBIT_GRAVITY(Code)(Java Doc)
Set<Long> children(Code)(Java Doc)
boolean embedded(Code)(Java Doc)
int height(Code)(Java Doc)
boolean mapped(Code)(Java Doc)
Rectangle maxBounds(Code)(Java Doc)
volatile XBaseWindow parentWindow(Code)(Java Doc)
protected StateLock state_lock(Code)(Java Doc)
boolean visible(Code)(Java Doc)
int width(Code)(Java Doc)
long window(Code)(Java Doc)
int x(Code)(Java Doc)
int y(Code)(Java Doc)

Methods inherited from sun.awt.X11.XBaseWindow
void awtLock()(Code)(Java Doc)
void awtLockNotifyAll()(Code)(Java Doc)
void awtLockWait() throws InterruptedException(Code)(Java Doc)
void awtUnlock()(Code)(Java Doc)
public boolean checkInitialised()(Code)(Java Doc)
protected void checkParams(XCreateWindowParams params)(Code)(Java Doc)
static void checkSecurity()(Code)(Java Doc)
public boolean contains(int x, int y)(Code)(Java Doc)
public boolean containsGlobal(int x, int y)(Code)(Java Doc)
void destroy()(Code)(Java Doc)
public void dispatchEvent(XEvent xev)(Code)(Java Doc)
static void dispatchToWindow(XEvent ev)(Code)(Java Doc)
void flush()(Code)(Java Doc)
public int getAbsoluteX()(Code)(Java Doc)
public int getAbsoluteY()(Code)(Java Doc)
public Rectangle getBounds()(Code)(Java Doc)
public Set<Long> getChildren()(Code)(Java Doc)
public long getContentWindow()(Code)(Java Doc)
public XBaseWindow getContentXWindow()(Code)(Java Doc)
public XCreateWindowParams getDelayedParams()(Code)(Java Doc)
int getHeight()(Code)(Java Doc)
public XSizeHints getHints()(Code)(Java Doc)
public XBaseWindow getParentWindow()(Code)(Java Doc)
long getScreen()(Code)(Java Doc)
long getScreenNumber()(Code)(Java Doc)
static long getScreenOfWindow(long window)(Code)(Java Doc)
public Dimension getSize()(Code)(Java Doc)
Object getStateLock()(Code)(Java Doc)
public XWindowPeer getToplevelXWindow()(Code)(Java Doc)
public XWMHints getWMHints()(Code)(Java Doc)
protected String getWMName()(Code)(Java Doc)
int getWidth()(Code)(Java Doc)
public long getWindow()(Code)(Java Doc)
int getX()(Code)(Java Doc)
static XRootWindow getXAWTRootWindow()(Code)(Java Doc)
int getY()(Code)(Java Doc)
public boolean grabInput()(Code)(Java Doc)
public void handleButtonPressRelease(XEvent xev)(Code)(Java Doc)
public void handleClientMessage(XEvent xev)(Code)(Java Doc)
public void handleConfigureNotifyEvent(XEvent xev)(Code)(Java Doc)
public void handleCreateNotify(XEvent xev)(Code)(Java Doc)
public void handleDestroyNotify(XEvent xev)(Code)(Java Doc)
public void handleExposeEvent(XEvent xev)(Code)(Java Doc)
public void handleKeyPress(XEvent xev)(Code)(Java Doc)
public void handleKeyRelease(XEvent xev)(Code)(Java Doc)
public void handleMapNotifyEvent(XEvent xev)(Code)(Java Doc)
public void handleMotionNotify(XEvent xev)(Code)(Java Doc)
public void handlePropertyNotify(XEvent xev)(Code)(Java Doc)
public void handleReparentNotifyEvent(XEvent xev)(Code)(Java Doc)
public void handleUnmapNotifyEvent(XEvent xev)(Code)(Java Doc)
public void handleVisibilityEvent(XEvent xev)(Code)(Java Doc)
public void handleXCrossingEvent(XEvent xev)(Code)(Java Doc)
final protected void init(long parentWindow, Rectangle bounds)(Code)(Java Doc)
final protected void init(XCreateWindowParams params)(Code)(Java Doc)
protected void initClientLeader()(Code)(Java Doc)
void instantPreInit(XCreateWindowParams params)(Code)(Java Doc)
boolean isDisposed()(Code)(Java Doc)
protected boolean isEventDisabled(XEvent e)(Code)(Java Doc)
static boolean isFullRelease(int buttonState, int button)(Code)(Java Doc)
static boolean isGrabbedEvent(XEvent ev, XBaseWindow target)(Code)(Java Doc)
boolean isMapped()(Code)(Java Doc)
public boolean isMinSizeSet()(Code)(Java Doc)
boolean isVisible()(Code)(Java Doc)
final protected void postInit()(Code)(Java Doc)
void postInit(XCreateWindowParams params)(Code)(Java Doc)
final protected void preInit()(Code)(Java Doc)
void preInit(XCreateWindowParams params)(Code)(Java Doc)
void setDisposed(boolean d)(Code)(Java Doc)
public void setSizeHints(long flags, int x, int y, int width, int height)(Code)(Java Doc)
void setWMClass(String[] cl)(Code)(Java Doc)
final public void setWMHints(XWMHints hints)(Code)(Java Doc)
public void toFront()(Code)(Java Doc)
Rectangle toGlobal(Rectangle rec)(Code)(Java Doc)
Point toGlobal(Point pt)(Code)(Java Doc)
Point toGlobal(int x, int y)(Code)(Java Doc)
Point toLocal(Point pt)(Code)(Java Doc)
Point toLocal(int x, int y)(Code)(Java Doc)
static Point toOtherWindow(long src, long dst, int x, int y)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
static void ungrabInput()(Code)(Java Doc)
void ungrabInputImpl()(Code)(Java Doc)
void updateWMName()(Code)(Java Doc)
public static long xGetInputFocus()(Code)(Java Doc)
public void xRequestFocus(long time)(Code)(Java Doc)
public void xRequestFocus()(Code)(Java Doc)
public void xSetBounds(Rectangle bounds)(Code)(Java Doc)
public void xSetBounds(int x, int y, int width, int height)(Code)(Java Doc)
public void xSetVisible(boolean visible)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.