-
public class MetalCheckBoxUI extends MetalRadioButtonUI
MetalCheckboxUI的CheckboxUI实现警告:此类的序列化对象与将来的Swing版本不兼容。 当前的序列化支持适用于运行相同版本的Swing的应用程序之间的短期存储或RMI。 从1.4开始,支持所有JavaBeans的长期存储已被添加到
java.beans包中。 请参阅XMLEncoder。
-
-
Field Summary
-
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
-
Fields inherited from class javax.swing.plaf.basic.BasicRadioButtonUI
icon
-
Fields inherited from class javax.swing.plaf.metal.MetalRadioButtonUI
disabledTextColor, focusColor, selectColor
-
-
构造方法摘要
构造方法 Constructor 描述 MetalCheckBoxUI()
-
方法摘要
所有方法 静态方法 接口方法 具体的方法 Modifier and Type 方法 描述 static ComponentUIcreateUI(JComponent b)返回一个MetalCheckBoxUI的实例。StringgetPropertyPrefix()返回属性前缀。voidinstallDefaults(AbstractButton b)安装默认属性。protected voiduninstallDefaults(AbstractButton b)卸载默认属性。-
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, installKeyboardActions, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallUI
-
Methods inherited from class javax.swing.plaf.basic.BasicRadioButtonUI
getDefaultIcon, getPreferredSize, installListeners, uninstallListeners
-
Methods inherited from class javax.swing.plaf.basic.BasicToggleButtonUI
getTextShiftOffset, paintIcon
-
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
-
Methods inherited from class javax.swing.plaf.metal.MetalRadioButtonUI
getDisabledTextColor, getFocusColor, getSelectColor, paint, paintFocus
-
-
-
-
方法详细信息
-
createUI
public static ComponentUI createUI(JComponent b)
返回一个MetalCheckBoxUI的实例。- 参数
-
b- 一个组件 - 结果
-
一个新的例子
MetalCheckBoxUI
-
getPropertyPrefix
public String getPropertyPrefix()
说明从类别复制BasicButtonUI返回属性前缀。- 重写:
-
getPropertyPrefix在BasicRadioButtonUI - 结果
- 属性前缀
-
installDefaults
public void installDefaults(AbstractButton b)
描述从类复制:BasicButtonUI安装默认属性。- 重写:
-
installDefaults在MetalRadioButtonUI - 参数
-
b- 一个抽象按钮
-
uninstallDefaults
protected void uninstallDefaults(AbstractButton b)
描述从类复制:BasicButtonUI卸载默认属性。- 重写:
-
uninstallDefaults在MetalRadioButtonUI - 参数
-
b- 一个抽象按钮
-
-