| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.swing.DefaultDesktopManager
public class DefaultDesktopManager
      此类是 DesktopManager 的实现。它当前实现了在任意父级中管理 JInternalFrame 的基本行为。不是 JDesktop 的子级的 JInternalFrame 将使用此组件来处理其类似桌面的操作。 
此类为各种 JInternalFrame 方法提供策略,不应该直接调用,而应该在 DesktopManager 中调用各种 JInternalFrame 方法。
JDesktopPane, 
    JInternalFrame
   | 构造方法摘要 | |
|---|---|
| DefaultDesktopManager() | |
| 方法摘要 | |
|---|---|
|  void | activateFrame(JInternalFrame f)此方法将激活 f,将它移动到前台。 | 
|  void | beginDraggingFrame(JComponent f)通常在用户已经指示他们将开始拖动某个组件时调用此方法。 | 
|  void | beginResizingFrame(JComponent f, int direction)通常在用户已经指示他们将开始重新调整窗体的大小时调用此方法。 | 
|  void | closeFrame(JInternalFrame f)从父窗体中移除窗体,如有必要,还要移除 desktopIcon。 | 
|  void | deactivateFrame(JInternalFrame f)通常指示此窗体失去焦点。 | 
|  void | deiconifyFrame(JInternalFrame f)从父窗体中移除 desktopIcon,并将其窗体添加到父窗体中。 | 
|  void | dragFrame(JComponent f, int newX, int newY)将正被拖动窗体的可见位置移动到指定位置。 | 
|  void | endDraggingFrame(JComponent f)此方法在拖动会话结束时发出信号。 | 
|  void | endResizingFrame(JComponent f)此方法在重新调整大小会话结束时发出信号。 | 
| protected  Rectangle | getBoundsForIconOf(JInternalFrame f)iconifyFrame() 代码调用此方法来确定 desktopIcon 的适当边界。 | 
| protected  Rectangle | getPreviousBounds(JInternalFrame f)在将组件最大化之前,获得该组件的普通边界。 | 
|  void | iconifyFrame(JInternalFrame f)从父窗体中移除窗体,并将其 desktopIcon添加到父窗体中。 | 
|  void | maximizeFrame(JInternalFrame f)重新调整窗体的大小,使其满足其父窗体的限制。 | 
|  void | minimizeFrame(JInternalFrame f)使窗体恢复回调用 maximizeFrame之前的大小和位置。 | 
|  void | openFrame(JInternalFrame f)通常不调用此方法。 | 
| protected  void | removeIconFor(JInternalFrame f)在需要时移除 f 的 desktopIcon 的便捷方法。 | 
|  void | resizeFrame(JComponent f, int newX, int newY, int newWidth, int newHeight)使用新值调用 setBoundsForFrame。 | 
|  void | setBoundsForFrame(JComponent f, int newX, int newY, int newWidth, int newHeight)此方法移动 JComponent并重新绘制已毁坏的区域。 | 
| protected  void | setPreviousBounds(JInternalFrame f, Rectangle r)在进行 maximize 调用之前存储组件的边界。 | 
| protected  void | setWasIcon(JInternalFrame f, Boolean value)设定组件已被图标化并且 desktopIcon的边界是有效的。 | 
| protected  boolean | wasIcon(JInternalFrame f)如果组件已被图标化并且 desktopIcon的边界是有效的,则返回true,否则返回false。 | 
| 从类 java.lang.Object 继承的方法 | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| 构造方法详细信息 | 
|---|
public DefaultDesktopManager()
| 方法详细信息 | 
|---|
public void openFrame(JInternalFrame f)
DesktopManager 中的 
      openFrame
     public void closeFrame(JInternalFrame f)
desktopIcon。 
    
DesktopManager 中的 
      closeFrame
     f - 要移除的 
      JInternalFrame
     public void maximizeFrame(JInternalFrame f)
DesktopManager 中的 
      maximizeFrame
     f - 要重新调整的窗体
     public void minimizeFrame(JInternalFrame f)
maximizeFrame 之前的大小和位置。 
    
DesktopManager 中的 
      minimizeFrame
     f - 要恢复的 
      JInternalFrame
     public void iconifyFrame(JInternalFrame f)
desktopIcon 添加到父窗体中。 
    
DesktopManager 中的 
      iconifyFrame
     f - 要图标化的 
      JInternalFrame
     public void deiconifyFrame(JInternalFrame f)
DesktopManager 中的 
      deiconifyFrame
     f - 要取消图标化的 
      JInternalFrame
     public void activateFrame(JInternalFrame f)
IS_SELECTED_PROPERTY 设置为 
    false。在所有层中,只能有一个活动窗体。 
    
DesktopManager 中的 
      activateFrame
     f - 要激活的 
      JInternalFrame
     public void deactivateFrame(JInternalFrame f)
DesktopManager 复制的描述
   
DesktopManager 中的 
      deactivateFrame
     public void beginDraggingFrame(JComponent f)
DesktopManager 复制的描述
   
DesktopManager 中的 
      beginDraggingFrame
     
public void dragFrame(JComponent f,
                      int newX,
                      int newY) 
  endDraggingFrame 之前,窗体的实际逻辑位置可能一直保持不变。 
    
DesktopManager 中的 
      dragFrame
     public void endDraggingFrame(JComponent f)
DesktopManager 复制的描述
   
DesktopManager 中的 
      endDraggingFrame
     
public void beginResizingFrame(JComponent f,
                               int direction) 
  DesktopManager 复制的描述
   
DesktopManager 中的 
      beginResizingFrame
     
public void resizeFrame(JComponent f,
                        int newX,
                        int newY,
                        int newWidth,
                        int newHeight) 
  setBoundsForFrame。 
    
DesktopManager 中的 
      resizeFrame
     f - 要重新调整大小的组件
     newX - 新的 x 坐标
     newY - 新的 y 坐标
     newWidth - 新的宽度
     newHeight - 新的高度
     public void endResizingFrame(JComponent f)
DesktopManager 复制的描述
   
DesktopManager 中的 
      endResizingFrame
     
public void setBoundsForFrame(JComponent f,
                              int newX,
                              int newY,
                              int newWidth,
                              int newHeight) 
  JComponent 并重新绘制已毁坏的区域。 
    
DesktopManager 中的 
      setBoundsForFrame
     protected void removeIconFor(JInternalFrame f)
protected Rectangle getBoundsForIconOf(JInternalFrame f)
protected void setPreviousBounds(JInternalFrame f,
                                 Rectangle r) 
  
f - 要重新调整大小的组件
     r - 要保存的普通边界
     protected Rectangle getPreviousBounds(JInternalFrame f)
f - 感兴趣的 
      JInternalFrame 
     
protected void setWasIcon(JInternalFrame f,
                          Boolean value) 
  desktopIcon 的边界是有效的。 
    
protected boolean wasIcon(JInternalFrame f)
desktopIcon 的边界是有效的,则返回 
    true,否则返回 
    false。 
    
f - 感兴趣的 
      JInternalFrame 
     true;否则返回 
      false
     | 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。