| 
JavaTM 2 Platform Standard Ed. 6  | 
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.DesktopIconUI
javax.swing.plaf.basic.BasicDesktopIconUI
public class BasicDesktopIconUI
用于桌面最小化窗口的 L&F。
| 嵌套类摘要 | |
|---|---|
 class | 
BasicDesktopIconUI.MouseInputHandler
侦听鼠标移动及对其操作。  | 
| 字段摘要 | |
|---|---|
protected  JInternalFrame.JDesktopIcon | 
desktopIcon
 | 
protected  JInternalFrame | 
frame
 | 
protected  JComponent | 
iconPane
在桌面图标中使用的标题窗格组件。  | 
| 构造方法摘要 | |
|---|---|
BasicDesktopIconUI()
 | 
|
| 方法摘要 | |
|---|---|
protected  MouseInputListener | 
createMouseInputListener()
 | 
static ComponentUI | 
createUI(JComponent c)
 | 
 void | 
deiconize()
 | 
 Insets | 
getInsets(JComponent c)
 | 
 Dimension | 
getMaximumSize(JComponent c)
不能调整桌面图标的大小。  | 
 Dimension | 
getMinimumSize(JComponent c)
返回指定组件的适合外观的最小大小。  | 
 Dimension | 
getPreferredSize(JComponent c)
返回指定组件的适合外观的首选大小。  | 
protected  void | 
installComponents()
 | 
protected  void | 
installDefaults()
 | 
protected  void | 
installListeners()
 | 
 void | 
installUI(JComponent c)
配置指定组件,使其适合外观。  | 
protected  void | 
uninstallComponents()
 | 
protected  void | 
uninstallDefaults()
 | 
protected  void | 
uninstallListeners()
 | 
 void | 
uninstallUI(JComponent c)
在 installUI 期间,在指定组件上反向执行的配置操作。 | 
| 从类 javax.swing.plaf.ComponentUI 继承的方法 | 
|---|
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, paint, update | 
| 从类 java.lang.Object 继承的方法 | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| 字段详细信息 | 
|---|
protected JInternalFrame.JDesktopIcon desktopIcon
protected JInternalFrame frame
protected JComponent iconPane
| 构造方法详细信息 | 
|---|
public BasicDesktopIconUI()
| 方法详细信息 | 
|---|
public static ComponentUI createUI(JComponent c)
public void installUI(JComponent c)
ComponentUI 复制的描述ComponentUI 实例将作为 UI 委托安装在指定组件上时,可调用此方法。此方法应该为外观完整地配置组件,包括以下方面:
 LayoutManager。
PropertyChangeListener。
ComponentUI 中的 installUIc - 将安装此 UI 委托的组件ComponentUI.uninstallUI(javax.swing.JComponent), 
JComponent.setUI(javax.swing.plaf.ComponentUI), 
JComponent.updateUI()public void uninstallUI(JComponent c)
ComponentUI 复制的描述installUI 期间,在指定组件上反向执行的配置操作。当此 UIComponent 实例将作为 UI 委托从指定组件上移除时,可调用此方法。此方法应该取消在 installUI 中执行的配置操作,非常小心地使 JComponent 实例处于某种洁净状态(没有额外的侦听器、没有特定于外观的属性对象等等)。配置内容应该包括以下方面:
 
ComponentUI 中的 uninstallUIc - 从中移除此 UI 委托的组件;此参数常被忽略,但如果 UI 对象是无状态的并由多个组件共享,则可以使用该参数ComponentUI.installUI(javax.swing.JComponent), 
JComponent.updateUI()protected void installComponents()
protected void uninstallComponents()
protected void installListeners()
protected void uninstallListeners()
protected void installDefaults()
protected void uninstallDefaults()
protected MouseInputListener createMouseInputListener()
public Dimension getPreferredSize(JComponent c)
ComponentUI 复制的描述null,则首选大小将由组件的布局管理器计算(对于安装了特定布局管理器的组件而言,这是首选方法)。此方法的默认实现返回 null。
ComponentUI 中的 getPreferredSizec - 将查询其首选大小的组件;此参数常被忽略,但如果 UI 对象是无状态的并由多个组件共享,则可以使用该参数JComponent.getPreferredSize(), 
LayoutManager.preferredLayoutSize(java.awt.Container)public Dimension getMinimumSize(JComponent c)
ComponentUI 复制的描述null,则最小大小将由组件的布局管理器计算(对于安装了特定布局管理器的组件而言,这是首选方法)。此方法的默认实现调用 getPreferredSize 并返回该值。
ComponentUI 中的 getMinimumSizec - 将查询其最小大小的组件;此参数常被忽略,但如果 UI 对象是无状态的并由多个组件共享,则可以使用该参数
Dimension 对象或 nullJComponent.getMinimumSize(), 
LayoutManager.minimumLayoutSize(java.awt.Container), 
ComponentUI.getPreferredSize(javax.swing.JComponent)public Dimension getMaximumSize(JComponent c)
ComponentUI 中的 getMaximumSizec - 将查询其最大大小的组件;此参数常被忽略,但如果 UI 对象是无状态的并由多个组件共享,则可以使用该参数
Dimension 对象或 nullgetMinimumSize(javax.swing.JComponent)public Insets getInsets(JComponent c)
public void deiconize()
  | 
JavaTM 2 Platform Standard Ed. 6  | 
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only。