Java Doc for NativeWindow.java in  » Apache-Harmony-Java-SE » org-package » org » apache » harmony » awt » wtk » 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 » Apache Harmony Java SE » org package » org.apache.harmony.awt.wtk 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.harmony.awt.wtk.NativeWindow

All known Subclasses:   org.apache.harmony.awt.wtk.windows.WinWindow,  org.apache.harmony.awt.wtk.linux.LinuxWindow,
NativeWindow
public interface NativeWindow (Code)
Provides cross-platform way to manipulate native window. Results of methods are reported through native messages.


Field Summary
final static  intBOUNDS_NOMOVE
    
final static  intBOUNDS_NOSIZE
    


Method Summary
 voiddispose()
     Destroys the asscoiated window.
 RectanglegetBounds()
     Returns last notified window bounds.
 longgetId()
    
 InsetsgetInsets()
     Returns last notified insets.
 MultiRectAreagetObscuredRegion(Rectangle part)
    
 PointgetScreenPos()
    
 voidgrabMouse()
    
 booleanisFocusable()
    
 voidplaceAfter(NativeWindow w)
     Changes window Z-order to place this window under, If w is null places places this window on the top.
 voidsetAlwaysOnTop(boolean value)
     Makes window top-most if value is true, non-topmost(normal) otherwise.
 voidsetBounds(int x, int y, int w, int h, int boundsMask)
     Tries to set desired window bounds.
 voidsetEnabled(boolean value)
     Enables/disables processing of input (key, mouse) event by window.
 booleansetFocus(boolean focus)
     Tries to set application input focus to the window or clear current focus from focused window.

For toplevel windows it's not gurantied focus will land in desired window even if function returns true.

 voidsetFocusable(boolean value)
     Sets the "focusable" window state.
 voidsetIMStyle()
     Make window an "input method window" by setting special window style, e.
 voidsetIconImage(Image image)
     Set the image to be displayed in the minimized icon for top-level [decorated] window.
 voidsetMaximizedBounds(Rectangle bounds)
     Set desired [top-level] window bounds when being in maximized state.
 voidsetPacked(boolean packed)
    
 voidsetResizable(boolean value)
    
 voidsetState(int state)
     Set extended state for top-level window.
 voidsetTitle(String title)
    
 voidsetVisible(boolean v)
    
 voidtoBack()
    
 voidtoFront()
    
 voidungrabMouse()
    

Field Detail
BOUNDS_NOMOVE
final static int BOUNDS_NOMOVE(Code)
Means only size should be changed



BOUNDS_NOSIZE
final static int BOUNDS_NOSIZE(Code)
Means only position should be changed





Method Detail
dispose
void dispose()(Code)
Destroys the asscoiated window. Attempts to use it thereafter can result in unpredictable bechavior.



getBounds
Rectangle getBounds()(Code)
Returns last notified window bounds. This means the last bounds reported by system event.

If child, position is relative to parent window. last notified window bounds




getId
long getId()(Code)
Returns system id of the associated window HWND on Windows, xwindow on X



getInsets
Insets getInsets()(Code)
Returns last notified insets. This means the last insets reported by system event. Insets are margins around client area ocupied by system provided decor, ususally border and titlebar. last notified insets



getObscuredRegion
MultiRectArea getObscuredRegion(Rectangle part)(Code)



getScreenPos
Point getScreenPos()(Code)
Get absolute position on the screen



grabMouse
void grabMouse()(Code)
Activate the mouse event capturing



isFocusable
boolean isFocusable()(Code)
current focusable window state



placeAfter
void placeAfter(NativeWindow w)(Code)
Changes window Z-order to place this window under, If w is null places places this window on the top. Z-order is per parent. Toplevels a children of desktop in terms of Z-order.
Parameters:
  w - - window to place under.



setAlwaysOnTop
void setAlwaysOnTop(boolean value)(Code)
Makes window top-most if value is true, non-topmost(normal) otherwise.



setBounds
void setBounds(int x, int y, int w, int h, int boundsMask)(Code)
Tries to set desired window bounds. It's not gurantied the property will have the desired value. The value change should be reported by system event (as for other properties).

If child, position is relative to parent window.
Parameters:
  x - - desired x
Parameters:
  y - - desired y
Parameters:
  w - - desired width
Parameters:
  h - - desired height
Parameters:
  boundsMask - - bitwise OR of BOUNDS_* constants.Governs the new bounds interpretation.




setEnabled
void setEnabled(boolean value)(Code)
Enables/disables processing of input (key, mouse) event by window. If disabled input events are ignored.
Parameters:
  value - - if enabled



setFocus
boolean setFocus(boolean focus)(Code)
Tries to set application input focus to the window or clear current focus from focused window.

For toplevel windows it's not gurantied focus will land in desired window even if function returns true. Focus traversal should be tracked by processing system events.
Parameters:
  focus - - if true sets focus, else clears focus if success




setFocusable
void setFocusable(boolean value)(Code)
Sets the "focusable" window state.
Parameters:
  value - - if true makes window focusable



setIMStyle
void setIMStyle()(Code)
Make window an "input method window" by setting special window style, e. g. small title bar, no close, minimize/maximize buttons. For internal use by input method framework.



setIconImage
void setIconImage(Image image)(Code)
Set the image to be displayed in the minimized icon for top-level [decorated] window.
Parameters:
  image - the icon image to be displayed



setMaximizedBounds
void setMaximizedBounds(Rectangle bounds)(Code)
Set desired [top-level] window bounds when being in maximized state. Fields set to Integer.MAX_VALUE are ignored[system-supplied values are used instead]



setPacked
void setPacked(boolean packed)(Code)
Set a window "packed" flag: the flag indicates that if insets change client area shouldn't be resized, but frame must be resized instead



setResizable
void setResizable(boolean value)(Code)
Makes the window resizable/not resizable by user
Parameters:
  value - - if resizable



setState
void setState(int state)(Code)
Set extended state for top-level window.
Parameters:
  state - - new state, bitmask of ICONIFIED, MAXIMIZED_BOTH, etc.



setTitle
void setTitle(String title)(Code)
Sets the window caption
Parameters:
  title - - caption text



setVisible
void setVisible(boolean v)(Code)
Shows/hides window
Parameters:
  v - - new visibility



toBack
void toBack()(Code)
Places window on bottom of Z-order



toFront
void toFront()(Code)
Places window on top of Z-order



ungrabMouse
void ungrabMouse()(Code)
Deactivate mouse event capturing



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