Java Doc for DesktopManager.java in  » 6.0-JDK-Core » swing » javax » swing » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
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
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » swing » javax.swing 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.swing.DesktopManager

All known Subclasses:   javax.swing.DefaultDesktopManager,
DesktopManager
public interface DesktopManager (Code)
DesktopManager objects are owned by a JDesktopPane object. They are responsible for implementing L&F specific behaviors for the JDesktopPane. JInternalFrame implementations should delegate specific behaviors to the DesktopManager. For instance, if a JInternalFrame was asked to iconify, it should try:
 getDesktopPane().getDesktopManager().iconifyFrame(frame);
 
This delegation allows each L&F to provide custom behaviors for desktop-specific actions. (For example, how and where the internal frame's icon would appear.)

This class provides a policy for the various JInternalFrame methods, it is not meant to be called directly rather the various JInternalFrame methods will call into the DesktopManager.


See Also:   JDesktopPane
See Also:   JInternalFrame
See Also:   JInternalFrame.JDesktopIcon
version:
   1.22 05/05/07
author:
   David Kloba




Method Summary
 voidactivateFrame(JInternalFrame f)
     Generally, indicate that this frame has focus.
 voidbeginDraggingFrame(JComponent f)
     This method is normally called when the user has indicated that they will begin dragging a component around.
 voidbeginResizingFrame(JComponent f, int direction)
     This methods is normally called when the user has indicated that they will begin resizing the frame.
 voidcloseFrame(JInternalFrame f)
     Generally, this call should remove the frame from it's parent.
 voiddeactivateFrame(JInternalFrame f)
     Generally, indicate that this frame has lost focus.
 voiddeiconifyFrame(JInternalFrame f)
     Generally, remove any iconic representation that is present and restore the frame to it's original size and location.
 voiddragFrame(JComponent f, int newX, int newY)
     The user has moved the frame.
 voidendDraggingFrame(JComponent f)
     This method signals the end of the dragging session.
 voidendResizingFrame(JComponent f)
     This method signals the end of the resize session.
 voidiconifyFrame(JInternalFrame f)
     Generally, remove this frame from it's parent and add an iconic representation.
 voidmaximizeFrame(JInternalFrame f)
     Generally, the frame should be resized to match it's parents bounds.
 voidminimizeFrame(JInternalFrame f)
     Generally, this indicates that the frame should be restored to it's size and position prior to a maximizeFrame() call.
 voidopenFrame(JInternalFrame f)
     If possible, display this frame in an appropriate location.
 voidresizeFrame(JComponent f, int newX, int newY, int newWidth, int newHeight)
     The user has resized the component.
 voidsetBoundsForFrame(JComponent f, int newX, int newY, int newWidth, int newHeight)
     This is a primitive reshape method.



Method Detail
activateFrame
void activateFrame(JInternalFrame f)(Code)
Generally, indicate that this frame has focus. This is usually called after the JInternalFrame's IS_SELECTED_PROPERTY has been set to true.



beginDraggingFrame
void beginDraggingFrame(JComponent f)(Code)
This method is normally called when the user has indicated that they will begin dragging a component around. This method should be called prior to any dragFrame() calls to allow the DesktopManager to prepare any necessary state. Normally f will be a JInternalFrame.



beginResizingFrame
void beginResizingFrame(JComponent f, int direction)(Code)
This methods is normally called when the user has indicated that they will begin resizing the frame. This method should be called prior to any resizeFrame() calls to allow the DesktopManager to prepare any necessary state. Normally f will be a JInternalFrame.



closeFrame
void closeFrame(JInternalFrame f)(Code)
Generally, this call should remove the frame from it's parent.



deactivateFrame
void deactivateFrame(JInternalFrame f)(Code)
Generally, indicate that this frame has lost focus. This is usually called after the JInternalFrame's IS_SELECTED_PROPERTY has been set to false.



deiconifyFrame
void deiconifyFrame(JInternalFrame f)(Code)
Generally, remove any iconic representation that is present and restore the frame to it's original size and location.



dragFrame
void dragFrame(JComponent f, int newX, int newY)(Code)
The user has moved the frame. Calls to this method will be preceded by calls to beginDraggingFrame(). Normally f will be a JInternalFrame.



endDraggingFrame
void endDraggingFrame(JComponent f)(Code)
This method signals the end of the dragging session. Any state maintained by the DesktopManager can be removed here. Normally f will be a JInternalFrame.



endResizingFrame
void endResizingFrame(JComponent f)(Code)
This method signals the end of the resize session. Any state maintained by the DesktopManager can be removed here. Normally f will be a JInternalFrame.



iconifyFrame
void iconifyFrame(JInternalFrame f)(Code)
Generally, remove this frame from it's parent and add an iconic representation.



maximizeFrame
void maximizeFrame(JInternalFrame f)(Code)
Generally, the frame should be resized to match it's parents bounds.



minimizeFrame
void minimizeFrame(JInternalFrame f)(Code)
Generally, this indicates that the frame should be restored to it's size and position prior to a maximizeFrame() call.



openFrame
void openFrame(JInternalFrame f)(Code)
If possible, display this frame in an appropriate location. Normally, this is not called, as the creator of the JInternalFrame will add the frame to the appropriate parent.



resizeFrame
void resizeFrame(JComponent f, int newX, int newY, int newWidth, int newHeight)(Code)
The user has resized the component. Calls to this method will be preceded by calls to beginResizingFrame(). Normally f will be a JInternalFrame.



setBoundsForFrame
void setBoundsForFrame(JComponent f, int newX, int newY, int newWidth, int newHeight)(Code)
This is a primitive reshape method.



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