| 
 | JavaTM 2 Platform Standard Ed. 5.0 | |||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||
| 使用 AbstractButton 的软件包 | |
|---|---|
| javax.swing | 提供一组“轻量级”(全部是 Java 语言)组件,尽量让这些组件在所有平台上的工作方式都相同。 | 
| javax.swing.plaf.basic | 提供了根据基本外观构建的用户界面对象。 | 
| javax.swing.plaf.metal | 提供根据 Java 外观(曾经代称为 Metal)构建的用户界面对象,Java 外观是默认外观。 | 
| javax.swing 中 AbstractButton 的使用 | 
|---|
| javax.swing 中 AbstractButton 的子类 | |
|---|---|
|  class | JButton"push" 按钮的实现。 | 
|  class | JCheckBox复选框的实现,复选框是一个可以被选定和取消选定的项,它将其状态显示给用户。 | 
|  class | JCheckBoxMenuItem可以被选定或取消选定的菜单项。 | 
|  class | JMenu菜单的该实现是一个包含 JMenuItem的弹出窗口,用户选择JMenuBar上的项时会显示该 JMenuItem。 | 
|  class | JMenuItem菜单中的项的实现。 | 
|  class | JRadioButton实现一个单选按钮,此按钮项可被选择或取消选择,并可为用户显示其状态。 | 
|  class | JRadioButtonMenuItem一个单选按钮菜单项的实现。 | 
|  class | JToggleButton具有两个状态的(two-state)按钮的实现。 | 
| 类型参数类型为 AbstractButton 的 javax.swing 中的字段 | |
|---|---|
| protected  Vector<AbstractButton> | ButtonGroup.buttons | 
| 返回变量类型为 AbstractButton 的类型的 javax.swing 中的方法 | |
|---|---|
|  Enumeration<AbstractButton> | ButtonGroup.getElements()返回此按钮组中的所有按钮。 | 
| 参数类型为 AbstractButton 的 javax.swing 中的方法 | |
|---|---|
|  void | ButtonGroup.add(AbstractButton b)将按钮添加到组中。 | 
|  void | ButtonGroup.remove(AbstractButton b)从组中移除按钮。 | 
| javax.swing.plaf.basic 中 AbstractButton 的使用 | 
|---|
| javax.swing.plaf.basic 中 AbstractButton 的子类 | |
|---|---|
|  class | BasicArrowButton一个 JButton 对象,它绘制朝某个基本方向的缩放箭头。 | 
| 参数类型为 AbstractButton 的 javax.swing.plaf.basic 中的方法 | |
|---|---|
| protected  void | BasicButtonListener.checkOpacity(AbstractButton b) | 
| protected  BasicButtonListener | BasicButtonUI.createButtonListener(AbstractButton b) | 
|  int | BasicButtonUI.getDefaultTextIconGap(AbstractButton b) | 
| static Dimension | BasicGraphicsUtils.getPreferredButtonSize(AbstractButton b,
                       int textIconGap) | 
| protected  void | BasicButtonUI.installDefaults(AbstractButton b) | 
| protected  void | BasicRadioButtonUI.installDefaults(AbstractButton b) | 
| protected  void | BasicButtonUI.installKeyboardActions(AbstractButton b) | 
| protected  void | BasicButtonUI.installListeners(AbstractButton b) | 
| protected  void | BasicButtonUI.paintButtonPressed(Graphics g,
                   AbstractButton b) | 
| protected  void | BasicButtonUI.paintFocus(Graphics g,
           AbstractButton b,
           Rectangle viewRect,
           Rectangle textRect,
           Rectangle iconRect) | 
| protected  void | BasicToggleButtonUI.paintIcon(Graphics g,
          AbstractButton b,
          Rectangle iconRect) | 
| protected  void | BasicButtonUI.paintText(Graphics g,
          AbstractButton b,
          Rectangle textRect,
          String text)呈现当前按钮文本的方法。 | 
| protected  void | BasicButtonUI.uninstallDefaults(AbstractButton b) | 
| protected  void | BasicRadioButtonUI.uninstallDefaults(AbstractButton b) | 
| protected  void | BasicButtonUI.uninstallKeyboardActions(AbstractButton b) | 
| protected  void | BasicButtonUI.uninstallListeners(AbstractButton b) | 
| 参数类型为 AbstractButton 的 javax.swing.plaf.basic 中的构造方法 | |
|---|---|
| BasicButtonListener(AbstractButton b) | |
| javax.swing.plaf.metal 中 AbstractButton 的使用 | 
|---|
| javax.swing.plaf.metal 中 AbstractButton 的子类 | |
|---|---|
|  class | MetalComboBoxButton协助 MetalComboBoxUI 的 JButton 子类 警告:此类的已序列化对象与以后的 Swing 版本不兼容。 | 
|  class | MetalScrollButtonMetal 滚动条箭头的 JButton 对象。 | 
| 参数类型为 AbstractButton 的 javax.swing.plaf.metal 中的方法 | |
|---|---|
| protected  BasicButtonListener | MetalButtonUI.createButtonListener(AbstractButton b) | 
|  void | MetalButtonUI.installDefaults(AbstractButton b) | 
|  void | MetalToggleButtonUI.installDefaults(AbstractButton b) | 
|  void | MetalRadioButtonUI.installDefaults(AbstractButton b) | 
|  void | MetalCheckBoxUI.installDefaults(AbstractButton b) | 
| protected  void | MetalButtonUI.paintButtonPressed(Graphics g,
                   AbstractButton b) | 
| protected  void | MetalToggleButtonUI.paintButtonPressed(Graphics g,
                   AbstractButton b) | 
| protected  void | MetalButtonUI.paintFocus(Graphics g,
           AbstractButton b,
           Rectangle viewRect,
           Rectangle textRect,
           Rectangle iconRect) | 
| protected  void | MetalToggleButtonUI.paintFocus(Graphics g,
           AbstractButton b,
           Rectangle viewRect,
           Rectangle textRect,
           Rectangle iconRect) | 
| protected  void | MetalToggleButtonUI.paintIcon(Graphics g,
          AbstractButton b,
          Rectangle iconRect)在空间 iconRect中绘制按钮b的适当图标。 | 
|  void | MetalButtonUI.uninstallDefaults(AbstractButton b) | 
| protected  void | MetalToggleButtonUI.uninstallDefaults(AbstractButton b) | 
| protected  void | MetalRadioButtonUI.uninstallDefaults(AbstractButton b) | 
| protected  void | MetalCheckBoxUI.uninstallDefaults(AbstractButton b) | 
| 
 | JavaTM 2 Platform Standard Ed. 5.0 | |||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||
版权所有 2004 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。