JavaTM Platform
Standard Ed. 6

인터페이스
javax.swing.Action 의 사용

Action 를 사용하고 있는 패키지
javax.swing 모든 플랫폼에서 가능한 한 똑같이 기능하는 「경량」(Java 공통 언어) 컴퍼넌트세트를 제공합니다.  
javax.swing.plaf.basic 기본 Look & Feel 에 따라 구축된 사용자 인터페이스 객체를 제공합니다.  
javax.swing.plaf.metal 디폴트의 Look & Feel 인 Java Look & Feel (코드명은 Metal)에 따라 작성된 사용자 인터페이스 객체를 제공합니다.  
javax.swing.text 편집 가능한 텍스트 컴퍼넌트와 편집 불능인 텍스트 컴퍼넌트를 처리하는 클래스와 인터페이스를 제공합니다.  
javax.swing.text.html HTML 텍스트 문자 편집기를 작성하기 위한 HTMLEditorKit 클래스와 지원 클래스를 제공합니다.  
 

javax.swing 에서의 Action 의 사용
 

Action 를 구현하고 있는 javax.swing 의 클래스
 class AbstractAction
          이 클래스는, JFC 의 Action 인터페이스의 디폴트 구현을 제공합니다.
 

Action 를 돌려주는 javax.swing 의 메소드
 Action ActionMap. get (Object  key)
          바인딩이 로컬에 정의되어 있지 않은 경우는, 부모에게 ActionMap 를 통지해,key 의 바인딩을 돌려줍니다.
 Action JTextField. getAction ()
          이 ActionEvent 소스에 현재 설정되어 있는 Action 를 돌려줍니다.
 Action AbstractButton. getAction ()
          이 ActionEvent 소스에 현재 설정되어 있는 Action 를 돌려줍니다.
 Action JComboBox. getAction ()
          이 ActionEvent 소스에 현재 설정되어 있는 Action 를 돌려줍니다.
 Action [] JTextField. getActions ()
          에디터의 커멘드 리스트를 꺼냅니다.
 Action [] JFormattedTextField. getActions ()
          에디터의 커멘드 리스트를 꺼냅니다.
protected  Action [] JFormattedTextField.AbstractFormatter. getActions ()
          Action 의 커스텀 세트를 제공하는 경우는, 서브 클래스화해 오버라이드(override) 합니다.
static Action TransferHandler. getCopyAction ()
          클립보드에의 카피 조작을 실행하는 Action 를 돌려줍니다.
static Action TransferHandler. getCutAction ()
          클립보드에의 잘라내 조작을 실행하는 Action 를 돌려줍니다.
static Action TransferHandler. getPasteAction ()
          클립보드로부터의 붙이기 조작을 실행하는 Action 를 돌려줍니다.
 

Action 형의 파라미터를 가지는 javax.swing 의 메소드
protected  void JTextField. actionPropertyChanged (Action  action, String  propertyName)
          관련 액션의 프로퍼티의 변경에 응해 텍스트 필드 상태를 갱신합니다.
protected  void JMenuItem. actionPropertyChanged (Action  action, String  propertyName)
          관련 액션의 프로퍼티의 변경에 응해 버튼 상태를 갱신합니다.
protected  void AbstractButton. actionPropertyChanged (Action  action, String  propertyName)
          관련 액션의 프로퍼티의 변경에 응해 버튼 상태를 갱신합니다.
protected  void JComboBox. actionPropertyChanged (Action  action, String  propertyName)
          관련 액션의 프로퍼티의 변경에 응해 combobox 상태를 갱신합니다.
 JMenuItem JMenu. add (Action  a)
          지정된 Action 객체에 속하는 새로운 메뉴 항목을 작성해, 그것을 이 메뉴의 말미에 추가합니다.
 JButton JToolBar. add (Action  a)
          액션을 발송 하는 새로운 JButton 를 추가합니다.
 JMenuItem JPopupMenu. add (Action  a)
          메뉴의 말미에, 지정된 Action 객체를 배분하는 메뉴 항목을 추가합니다.
protected  void JTextField. configurePropertiesFromAction (Action  a)
          지정된 Action 의 프로퍼티에 일치하도록(듯이), 이 텍스트 필드에 프로퍼티을 설정합니다.
protected  void JMenuItem. configurePropertiesFromAction (Action  a)
          지정된 Action 의 프로퍼티에 일치하도록(듯이), 이 버튼에 프로퍼티을 설정합니다.
protected  void AbstractButton. configurePropertiesFromAction (Action  a)
          지정된 Action 의 프로퍼티에 일치하도록(듯이), 이 버튼에 프로퍼티을 설정합니다.
protected  void JComboBox. configurePropertiesFromAction (Action  a)
          지정된 Action 의 프로퍼티에 일치하도록(듯이), 이 combobox에 프로퍼티을 설정합니다.
protected  JMenuItem JMenu. createActionComponent (Action  a)
          JMenu 에 추가되는 ActionJMenuItem 를 작성하는 팩토리 메소드입니다.
protected  JButton JToolBar. createActionComponent (Action  a)
          JToolBar 에 추가된 ActionJButton 를 작성하는 팩토리 메소드입니다.
protected  JMenuItem JPopupMenu. createActionComponent (Action  a)
          JPopupMenu 에 추가된 ActionJMenuItem 를 작성하는 팩토리 메소드입니다.
protected  PropertyChangeListener JTextField. createActionPropertyChangeListener (Action  a)
          지정의 Action 로부터의 변경을 대기해, 적절한 프로퍼티을 갱신하는 PropertyChangeListener 를 작성해, 돌려줍니다.
protected  PropertyChangeListener AbstractButton. createActionPropertyChangeListener (Action  a)
          지정의 Action 로부터의 변경을 대기해, 적절한 프로퍼티을 갱신하는 PropertyChangeListener 를 작성해, 돌려줍니다.
protected  PropertyChangeListener JComboBox. createActionPropertyChangeListener (Action  a)
          지정의 Action 로부터의 변경을 대기해, 적절한 프로퍼티을 갱신하는 PropertyChangeListener 를 작성해, 돌려줍니다.
 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)
          action 가 사용 가능해, 한편 null 가 아닌 경우,actionactionPerformed 를 호출합니다.
 void ActionMap. put (Object  key, Action  action)
          actionkey 의 바인딩을 추가합니다.
 void JTextField. setAction (Action  a)
          ActionEvent 소스에 Action 를 설정합니다.
 void AbstractButton. setAction (Action  a)
          Action 를 설정합니다.
 void JComboBox. setAction (Action  a)
          ActionEvent 소스에 Action 를 설정합니다.
 

Action 형의 파라미터를 가지는 javax.swing 의 생성자
JButton (Action  a)
          지정된 Action 로부터 프로퍼티을 취득해 버튼을 생성합니다.
JCheckBox (Action  a)
          지정된 Action 로부터 프로퍼티을 취득하는 체크 박스를 생성합니다.
JCheckBoxMenuItem (Action  a)
          지정된 Action 로부터 프로퍼티을 취득하는 메뉴 항목을 생성합니다.
JMenu (Action  a)
          지정된 Action 로부터 프로퍼티을 취득하는 메뉴를 작성합니다.
JMenuItem (Action  a)
          지정된 Action 로부터 프로퍼티을 취득하는 메뉴 항목을 작성합니다.
JRadioButton (Action  a)
          지정된 Action 로부터 프로퍼티을 취득하는 라디오 버튼을 작성합니다.
JRadioButtonMenuItem (Action  a)
          지정된 Action 로부터 프로퍼티을 취득하는 라디오 버튼 메뉴 항목을 작성합니다.
JToggleButton (Action  a)
          지정된 Action 로부터 프로퍼티을 취득하는 토글버튼을 작성합니다.
 

javax.swing.plaf.basic 에서의 Action 의 사용
 

Action 를 구현하고 있는 javax.swing.plaf.basic 의 클래스
protected  class BasicDesktopPaneUI.CloseAction
          내부 프레임을 닫습니다.
protected  class BasicDesktopPaneUI.MaximizeAction
          내부 프레임을 최대화합니다.
protected  class BasicDesktopPaneUI.MinimizeAction
          내부 프레임을 최소화합니다.
protected  class BasicDesktopPaneUI.NavigateAction
          다음의 내부 프레임으로 이동합니다.
protected  class BasicDesktopPaneUI.OpenAction
          최소화 또는 최대화된 내부 프레임을 바탕으로 되돌립니다.
protected  class BasicFileChooserUI.ApproveSelectionAction
          Open 요구 또는 Save 요구에 응합니다.
protected  class BasicFileChooserUI.CancelSelectionAction
          취소의 요구에 응합니다.
protected  class BasicFileChooserUI.ChangeToParentDirectoryAction
           
protected  class BasicFileChooserUI.GoHomeAction
          Home 키 이벤트 또는 동등의 이벤트에 따라 처리를 실시합니다.
protected  class BasicFileChooserUI.NewFolderAction
          새로운 폴더를 작성합니다.
protected  class BasicFileChooserUI.UpdateAction
          현재의 디렉토리에서 파일을 주사 다시 합니다.
 class BasicInternalFrameTitlePane.CloseAction
          이 클래스는, 「protected」내부 클래스로서 취급하는 것을 추천합니다.
 class BasicInternalFrameTitlePane.IconifyAction
          이 클래스는, 「protected」내부 클래스로서 취급하는 것을 추천합니다.
 class BasicInternalFrameTitlePane.MaximizeAction
          이 클래스는, 「protected」내부 클래스로서 취급하는 것을 추천합니다.
 class BasicInternalFrameTitlePane.MoveAction
          이 클래스는, 「protected」내부 클래스로서 취급하는 것을 추천합니다.
 class BasicInternalFrameTitlePane.RestoreAction
          이 클래스는, 「protected」내부 클래스로서 취급하는 것을 추천합니다.
 class BasicInternalFrameTitlePane.SizeAction
          이 클래스는, 「protected」내부 클래스로서 취급하는 것을 추천합니다.
 class BasicSliderUI.ActionScroller
          문서로부터 삭제된 이 클래스는, Java 2 플랫폼 1.3 에서는 사용하지 않습니다.
 class BasicTreeUI.TreeCancelEditingAction
          액션이 실행되었을 때에 cancelEditing 을 호출하는 ActionListener 입니다.
 class BasicTreeUI.TreeHomeAction
          TreeHomeAction 는, 종료 또는 홈 액션을 처리하기 위해서 사용됩니다.
 class BasicTreeUI.TreeIncrementAction
          TreeIncrementAction 는, 상하의 액션을 처리하기 위해서 사용됩니다.
 class BasicTreeUI.TreePageAction
          TreePageAction 는, 페이지 업과 페이지 다운의 이벤트를 처리합니다.
 class BasicTreeUI.TreeToggleAction
          최초로 선택된 행으로, 전개 상태가 교체됩니다.
 class BasicTreeUI.TreeTraverseAction
          TreeTraverseAction 는, 왼쪽 또는 오른쪽 키를 위해서(때문에) 사용되는 액션입니다.
 

Action 로서 선언되고 있는 javax.swing.plaf.basic 의 필드
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
           
 

Action 를 돌려주는 javax.swing.plaf.basic 의 메소드
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 ()
           
 

Action 형의 파라미터를 가지는 javax.swing.plaf.basic 의 메소드
protected  void BasicLookAndFeel. playSound (Action  audioAction)
          필요에 따라서,audioAction 상에서 actionPerformed 를 호출해, 사운드를 재생합니다.
 

javax.swing.plaf.metal 에서의 Action 의 사용
 

Action 를 구현하고 있는 javax.swing.plaf.metal 의 클래스
protected  class MetalFileChooserUI.DirectoryComboBoxAction
          DirectoryComboBox 로 선택되고 있는 항목이 변경되었을 때에 액션을 일으킵니다.
 

javax.swing.text 에서의 Action 의 사용
 

Action 를 구현하고 있는 javax.swing.text 의 클래스
static class DefaultEditorKit.BeepAction
          beep음을 작성합니다.
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
          시스템 클립보드의 내용을, 선택된 범위, 혹은 caret의 전 (선택 범위가 없는 경우)에 붙입니다.
static class StyledEditorKit.AlignmentAction
          단락의 배치 방법을 설정하는 액션입니다.
static class StyledEditorKit.BoldAction
          볼드 속성을 바꾸는 액션입니다.
static class StyledEditorKit.FontFamilyAction
          관련하는 JEditorPane 의 폰트 패밀리를 설정하는 액션입니다.
static class StyledEditorKit.FontSizeAction
          관련하는 JEditorPane 의 font size를 설정하는 액션입니다.
static class StyledEditorKit.ForegroundAction
          foreground 칼라를 설정하는 액션입니다.
static class StyledEditorKit.ItalicAction
          이탤릭 속성을 바꾸는 액션입니다.
static class StyledEditorKit.StyledTextAction
          인스톨 된 StyledEditorKit (또는 서브 클래스)에 의해 JEditorPane 로 트리거된다고 보여지는 액션입니다.
static class StyledEditorKit.UnderlineAction
          밑줄 속성을 바꾸는 액션입니다.
 class TextAction
          많은 다른 텍스트 컴퍼넌트로 공유되는 키 바인딩에 편리한, 액션의 구현입니다.
 

Action 를 돌려주는 javax.swing.text 의 메소드
static Action [] TextAction. augmentList (Action [] list1, Action [] list2)
          커멘드 리스트를 1개 취득해, 그것을 하나 더의 다른 커멘드 리스트로 확장합니다.
 Action Keymap. getAction (KeyStroke  key)
          지정된 상징적 이벤트 순서에 적절한 액션을 가져옵니다.
 Action [] JTextComponent. getActions ()
          에디터의 커멘드 리스트를 꺼냅니다.
 Action [] DefaultEditorKit. getActions ()
          이 킷이 작성한 모델과 뷰를 사용하고 있는 텍스트 컴퍼넌트로 사용할 수 있는 커멘드세트를 가져옵니다.
abstract  Action [] EditorKit. getActions ()
          이 킷이 작성한 모델과 뷰를 사용하고 있는 텍스트 컴퍼넌트로 사용할 수 있는 커멘드세트를 가져옵니다.
 Action [] StyledEditorKit. getActions ()
          에디터의 커멘드 리스트를 가져옵니다.
protected  Action [] InternationalFormatter. getActions ()
          getSupportsIncrement 가 true 를 돌려주는 경우, 값의 증감에 적절한 2개의 Action 를 돌려줍니다.
 Action [] Keymap. getBoundActions ()
          이 키 맵으로 정의되고 있는 액션의 모든 것을 가져옵니다.
 Action Keymap. getDefaultAction ()
          키가 입력되어 (즉, KEY_TYPED 키 이벤트가 수신되어) 그 할당이 없는 경우에 발생하는 디폴트의 액션을 가져옵니다.
 

Action 형의 파라미터를 가지는 javax.swing.text 의 메소드
 void Keymap. addActionForKeyStroke (KeyStroke  key, Action  a)
          키 맵에 할당을 추가합니다.
static Action [] TextAction. augmentList (Action [] list1, Action [] list2)
          커멘드 리스트를 1개 취득해, 그것을 하나 더의 다른 커멘드 리스트로 확장합니다.
static Action [] TextAction. augmentList (Action [] list1, Action [] list2)
          커멘드 리스트를 1개 취득해, 그것을 하나 더의 다른 커멘드 리스트로 확장합니다.
 KeyStroke [] Keymap. getKeyStrokesForAction (Action  a)
          지정된 액션을 발생시키는 키스트로크(keystroke)를 가져옵니다.
static void JTextComponent. loadKeymap (Keymap  map, JTextComponent.KeyBinding [] bindings, Action [] actions)
           키 맵에 다수의 할당을 로드합니다.
 void Keymap. setDefaultAction (Action  a)
          키가 입력되었을 경우에 발생하는 디폴트 액션을 설정합니다.
 

javax.swing.text.html 에서의 Action 의 사용
 

Action 를 구현하고 있는 javax.swing.text.html 의 클래스
static class HTMLEditorKit.HTMLTextAction
          HTML 를 기존의 문서에 삽입하는데 편리한 편리한 메소드를 제공하는, abstract Action 입니다.
static class HTMLEditorKit.InsertHTMLTextAction
          InsertHTMLTextAction 는, 기존의 HTML 문서에 임의의 HTML 캐릭터 라인을 삽입하기 위해서 사용합니다.
 

Action 를 돌려주는 javax.swing.text.html 의 메소드
 Action [] HTMLEditorKit. getActions ()
          에디터의 커멘드 리스트를 가져옵니다.
 


JavaTM Platform
Standard Ed. 6

버그의 보고와 기능의 요청
한층 더 자세한 API 레퍼런스 및 개발자 문서에 대해서는,Java SE 개발자용 문서를 참조해 주세요. 개발자전용의 상세한 해설, 개념의 개요, 용어의 정의, 버그의 회피책, 및 코드 실례가 포함되어 있습니다.

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.