软件包 | 描述 |
---|---|
javax.swing |
提供了一套“轻量级”(所有的java语言)组件,以最大可能的程度,在所有平台上工作。
|
javax.swing.plaf.basic |
根据基本的外观和感觉提供内置的用户界面对象。
|
javax.swing.plaf.metal |
提供用户界面对象建立根据java的外观和感觉(一次代号为金属),它是默认的外观和感觉。
|
javax.swing.text |
提供类和接口处理编辑和不可编辑的文本组件。
|
javax.swing.text.html |
提供类
HTMLEditorKit 和创建HTML文本编辑器支持类。
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractAction
这个类提供了JFC
Action 接口的默认实现。
|
Modifier and Type | Method and Description |
---|---|
Action |
ActionMap.get(Object key)
返回绑定消息
key ,母
ActionMap 如果结合不确定。
|
Action |
JComboBox.getAction()
返回当前设置为这个
ActionEvent 源
Action ,或
null 如果没有
Action 设置。
|
Action |
AbstractButton.getAction()
返回当前设置为这个
ActionEvent 源
Action ,或
null 如果没有
Action 设置。
|
Action |
JTextField.getAction()
返回当前设置为这个
ActionEvent 源
Action ,或
null 如果没有
Action 设置。
|
Action[] |
JFormattedTextField.getActions()
获取编辑命令列表。
|
protected Action[] |
JFormattedTextField.AbstractFormatter.getActions()
子类并重写如果你希望提供一个自定义组
Action s。
|
Action[] |
JTextField.getActions()
获取编辑命令列表。
|
static Action |
TransferHandler.getCopyAction()
返回执行复制操作,复制到剪贴板
Action 。
|
static Action |
TransferHandler.getCutAction()
返回执行切割操作剪贴板上的
Action 。
|
static Action |
TransferHandler.getPasteAction()
返回执行粘贴操作从剪贴板上的
Action 。
|
Modifier and Type | Method and Description |
---|---|
protected void |
JMenuItem.actionPropertyChanged(Action action, String propertyName)
更新按钮的状态以响应关联动作中的属性更改。
|
protected void |
JComboBox.actionPropertyChanged(Action action, String propertyName)
更新组合框的状态响应性能变化相关的动作。
|
protected void |
AbstractButton.actionPropertyChanged(Action action, String propertyName)
更新按钮的状态以响应关联动作中的属性更改。
|
protected void |
JTextField.actionPropertyChanged(Action action, String propertyName)
更新的状态响应性能变化相关的动作。
|
JMenuItem |
JMenu.add(Action a)
创建一个新的菜单项连接到指定的
Action 对象并将其添加到该菜单的末尾。
|
JMenuItem |
JPopupMenu.add(Action a)
添加一个新的菜单项的菜单,将指定的
Action 对象结束。
|
JButton |
JToolBar.add(Action a)
增加了一个新的
JButton 调度的作用。
|
protected void |
JMenuItem.configurePropertiesFromAction(Action a)
设置这个按钮的属性与指定的
Action 。
|
protected void |
JComboBox.configurePropertiesFromAction(Action a)
在这个组合框的属性设置与指定的
Action 。
|
protected void |
AbstractButton.configurePropertiesFromAction(Action a)
设置这个按钮的属性与指定的
Action 。
|
protected void |
JTextField.configurePropertiesFromAction(Action a)
在这个文本框的属性设置为与指定的
Action 。
|
protected JMenuItem |
JMenu.createActionComponent(Action a)
工厂方法创建的
JMenuItem
Action s添加到
JMenu 。
|
protected JMenuItem |
JPopupMenu.createActionComponent(Action a)
工厂方法创建的
JMenuItem
Actions 添加到
JPopupMenu 。
|
protected JButton |
JToolBar.createActionComponent(Action a)
工厂方法创建的
JButton
Action s添加到
JToolBar 。
|
protected PropertyChangeListener |
JComboBox.createActionPropertyChangeListener(Action a)
创建并返回一个
PropertyChangeListener 负责侦听来自指定的
Action 变化和更新相应的属性。
|
protected PropertyChangeListener |
AbstractButton.createActionPropertyChangeListener(Action a)
创建并返回一个
PropertyChangeListener 负责侦听来自指定的
Action 变化和更新相应的属性。
|
protected PropertyChangeListener |
JTextField.createActionPropertyChangeListener(Action a)
创建并返回一个
PropertyChangeListener 负责侦听来自指定的
Action 变化和更新相应的属性。
|
JMenuItem |
JMenu.insert(Action a, int pos)
插入一个新的菜单项连接到指定的
Action 对象在一个给定的位置。
|
void |
JPopupMenu.insert(Action a, int index)
插入一个菜单项的指定
Action 对象在一个给定的位置。
|
static boolean |
SwingUtilities.notifyAction(Action action, KeyStroke ks, KeyEvent event, Object sender, int modifiers)
如果在调用
actionPerformed
action
action 启用(而非
null )。
|
void |
ActionMap.put(Object key, Action action)
添加一个绑定到
action
key 。
|
void |
JComboBox.setAction(Action a)
设置为
ActionEvent 源
Action 。
|
void |
AbstractButton.setAction(Action a)
集
Action 。
|
void |
JTextField.setAction(Action a)
设置为
ActionEvent 源
Action 。
|
Constructor and Description |
---|
JButton(Action a)
创建一个按钮,在属性是从
Action 提供。
|
JCheckBox(Action a)
创建一个检查框,属性从所提供的操作中取出。
|
JCheckBoxMenuItem(Action a)
创建一个菜单项,其属性是从所提供的操作中取的。
|
JMenu(Action a)
构建了一个菜单的属性是从
Action 提供。
|
JMenuItem(Action a)
创建一个菜单项的属性是从指定的
Action 。
|
JRadioButton(Action a)
创建一个单选按钮在属性是从行动提供。
|
JRadioButtonMenuItem(Action a)
创建一个单选按钮菜单项的属性是从
Action 提供。
|
JToggleButton(Action a)
创建一个切换按钮,其中属性从所提供的动作中取出。
|
Modifier and Type | Field and Description |
---|---|
protected Action |
BasicInternalFrameTitlePane.closeAction |
protected Action |
BasicInternalFrameTitlePane.iconifyAction |
protected Action |
BasicInternalFrameTitlePane.maximizeAction |
protected Action |
BasicInternalFrameTitlePane.moveAction |
protected Action |
BasicTreeUI.KeyHandler.repeatKeyAction
正在生成的关键代码。
|
protected Action |
BasicInternalFrameTitlePane.restoreAction |
protected Action |
BasicInternalFrameTitlePane.sizeAction |
Modifier and Type | Method and Description |
---|---|
protected Action |
BasicLookAndFeel.createAudioAction(Object key)
创建并返回一个
Action 用来播放声音。
|
Action |
BasicFileChooserUI.getApproveSelectionAction() |
Action |
BasicFileChooserUI.getCancelSelectionAction() |
Action |
BasicFileChooserUI.getChangeToParentDirectoryAction() |
Action |
BasicFileChooserUI.getGoHomeAction() |
Action |
BasicFileChooserUI.getNewFolderAction() |
Action |
BasicFileChooserUI.getUpdateAction() |
Modifier and Type | Method and Description |
---|---|
protected void |
BasicLookAndFeel.playSound(Action audioAction)
如果有必要,在调用
actionPerformed
audioAction 播放声音。
|
Modifier and Type | Class and Description |
---|---|
protected class |
MetalFileChooserUI.DirectoryComboBoxAction
当DirectoryComboBox改变了行为选择的项目。
|
Modifier and Type | Class and Description |
---|---|
static class |
DefaultEditorKit.BeepAction
创建一个蜂。
|
static class |
DefaultEditorKit.CopyAction
复制选定区域并将其内容放置到系统剪贴板中。
|
static class |
DefaultEditorKit.CutAction
剪切选定区域并将其内容放置到系统剪贴板中。
|
static class |
DefaultEditorKit.DefaultKeyTypedAction
这是默认情况下,如果执行关键类型的事件被接收,并没有你所进入的动作。
|
static class |
DefaultEditorKit.InsertBreakAction
将行/段落分解到文档中。
|
static class |
DefaultEditorKit.InsertContentAction
将内容放置到相关的文档中。
|
static class |
DefaultEditorKit.InsertTabAction
将标签字符放置到文档中。
|
static class |
DefaultEditorKit.PasteAction
浆料系统的剪贴板的内容到选定的区域,或在插入符号如果没有选择。
|
static class |
StyledEditorKit.AlignmentAction
设置段落对齐的动作。
|
static class |
StyledEditorKit.BoldAction
切换大胆属性的动作。
|
static class |
StyledEditorKit.FontFamilyAction
一个动作在相关jeditorpane设置字体。
|
static class |
StyledEditorKit.FontSizeAction
一个动作在相关jeditorpane设置字体大小。
|
static class |
StyledEditorKit.ForegroundAction
设置前景色的动作。
|
static class |
StyledEditorKit.ItalicAction
切换斜体属性的作用。
|
static class |
StyledEditorKit.StyledTextAction
一个动作,假设它是一个stylededitorkit jeditorpane解雇(或子类)安装。
|
static class |
StyledEditorKit.UnderlineAction
切换下划线属性的一个动作。
|
class |
TextAction
用于在多个不同的文本组件共享的键绑定中使用的操作实现。
|
Modifier and Type | Method and Description |
---|---|
static Action[] |
TextAction.augmentList(Action[] list1, Action[] list2)
以一个命令列表和增强它与另一个命令列表。
|
Action |
Keymap.getAction(KeyStroke key)
取行动适当的象征性的事件序列。
|
Action[] |
StyledEditorKit.getActions()
获取编辑命令列表。
|
abstract Action[] |
EditorKit.getActions()
获取可用于文本组件,使用该试剂盒模型和视图的命令集。
|
protected Action[] |
InternationalFormatter.getActions()
如果
getSupportsIncrement 返回真,返回两个动作适合递增/递减价值。
|
Action[] |
DefaultEditorKit.getActions()
获取可用于文本组件,使用该试剂盒模型和视图的命令集。
|
Action[] |
JTextComponent.getActions()
获取编辑命令列表。
|
Action[] |
Keymap.getBoundActions()
获取所有的在这个你所定义的行为。
|
Action |
Keymap.getDefaultAction()
取火的默认动作如果钥匙型(即
|
Modifier and Type | Method and Description |
---|---|
void |
Keymap.addActionForKeyStroke(KeyStroke key, Action a)
添加一个绑定的键盘布局。
|
static Action[] |
TextAction.augmentList(Action[] list1, Action[] list2)
以一个命令列表和增强它与另一个命令列表。
|
static Action[] |
TextAction.augmentList(Action[] list1, Action[] list2)
以一个命令列表和增强它与另一个命令列表。
|
KeyStroke[] |
Keymap.getKeyStrokesForAction(Action a)
获取键盘输入,将导致特定动作。
|
static void |
JTextComponent.loadKeymap(Keymap map, JTextComponent.KeyBinding[] bindings, Action[] actions)
加载一大堆绑定键映射。
|
void |
Keymap.setDefaultAction(Action a)
如果一个键被类型化,则将默认动作设置为火。
|
Modifier and Type | Class and Description |
---|---|
static class |
HTMLEditorKit.HTMLTextAction
一个抽象的行动提供一些方便的方法,可以插入HTML到现有的文件是有用的。
|
static class |
HTMLEditorKit.InsertHTMLTextAction
inserthtmltextaction可以插入HTML任意字符串到一个现有的HTML文档。
|
Modifier and Type | Method and Description |
---|---|
Action[] |
HTMLEditorKit.getActions()
获取编辑命令列表。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.