JavaTM Platform
Standard Ed. 6

javax.swing.text
클래스 StyledEditorKit.StyledTextAction

java.lang.Object 
  상위를 확장 javax.swing.AbstractAction 
      상위를 확장 javax.swing.text.TextAction 
          상위를 확장 javax.swing.text.StyledEditorKit.StyledTextAction
모든 구현된 인터페이스:
ActionListener , Serializable , Cloneable , EventListener , Action
직계의 기존의 서브 클래스:
HTMLEditorKit.HTMLTextAction , StyledEditorKit.AlignmentAction , StyledEditorKit.BoldAction , StyledEditorKit.FontFamilyAction , StyledEditorKit.FontSizeAction , StyledEditorKit.ForegroundAction , StyledEditorKit.ItalicAction , StyledEditorKit.UnderlineAction
포함되어 있는 클래스:
StyledEditorKit


public abstract static class StyledEditorKit.StyledTextAction
extends TextAction

인스톨 된 StyledEditorKit (또는 서브 클래스)에 의해 JEditorPane 로 트리거된다고 보여지는 액션입니다. 이 액션은, 문자나 단락의 레벨 속성을 변경하는 편리한 메소드입니다. StyledDocument, JEditorPane, 또는 StyledEditorKit 가 true 가 되지 않았다고 보여지는 경우는, 이 편리한 메소드에 의해 IllegalArgumentException 가 throw 됩니다.

소스가 JEditorPane 형에 네로우 변환되는 경우, 이 액션의 영향을 받는 컴퍼넌트는 ActionEvent 의 소스가 됩니다. 소스가 네로우 변환할 수 없는 경우는, 마지막에 포커스가 있던 텍스트 컴퍼넌트가 변경됩니다. 어느 쪽도 아닌 경우, 액션은 실행되지 않습니다.

경고: 이 클래스의 직렬화 된 객체는, 향후의 Swing 릴리스와 호환은 아니게 될 예정입니다. 현재의 직렬화의 지원는, 단기간의 운용이나, 같은 버젼의 Swing 를 실행하는 어플리케이션간의 RMI 에 적절하고 있습니다. JDK Version 1.4 이후, 모든 JavaBeans 의 장기간의 운용 지원는,java.beans 패키지에 추가되고 있습니다. 자세한 것은,XMLEncoder 를 참조해 주세요.


필드의 개요
 
클래스 javax.swing. AbstractAction 로부터 상속된 필드
changeSupport , enabled
 
인터페이스 javax.swing. Action 로부터 상속된 필드
ACCELERATOR_KEY , ACTION_COMMAND_KEY , DEFAULT , DISPLAYED_MNEMONIC_INDEX_KEY , LARGE_ICON_KEY , LONG_DESCRIPTION , MNEMONIC_KEY , NAME , SELECTED_KEY , SHORT_DESCRIPTION , SMALL_ICON
 
생성자 의 개요
StyledEditorKit.StyledTextAction (String  nm)
          캐릭터 라인인 액션명으로부터, 새로운 StyledTextAction 를 작성합니다.
 
메소드의 개요
protected  JEditorPane getEditor (ActionEvent  e)
          액션의 타겟 에디터를 가져옵니다.
protected  StyledDocument getStyledDocument (JEditorPane  e)
          이 에디터 구획에 관련한 문서를 가져옵니다.
protected  StyledEditorKit getStyledEditorKit (JEditorPane  e)
          이 에디터 구획에 관련한 에디터 킷을 가져옵니다.
protected  void setCharacterAttributes (JEditorPane  editor, AttributeSet  attr, boolean replace)
          지정된 속성을 문자 컨텐츠에 적용합니다.
protected  void setParagraphAttributes (JEditorPane  editor, AttributeSet  attr, boolean replace)
          지정된 속성을 단락에 적용합니다.
 
클래스 javax.swing.text. TextAction 로부터 상속된 메소드
augmentList , getFocusedComponent , getTextComponent
 
클래스 javax.swing. AbstractAction 로부터 상속된 메소드
addPropertyChangeListener , clone , firePropertyChange , getKeys , getPropertyChangeListeners , getValue , isEnabled , putValue , removePropertyChangeListener , setEnabled
 
클래스 java.lang. Object 로부터 상속된 메소드
equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
 
인터페이스 java.awt.event. ActionListener 로부터 상속된 메소드
actionPerformed
 

생성자 의 상세

StyledEditorKit.StyledTextAction

public StyledEditorKit.StyledTextAction(String  nm)
캐릭터 라인인 액션명으로부터, 새로운 StyledTextAction 를 작성합니다.

파라미터:
nm - 액션의 이름
메소드의 상세

getEditor

protected final JEditorPane  getEditor(ActionEvent  e)
액션의 타겟 에디터를 가져옵니다.

파라미터:
e - 액션 이벤트
반환값:
에디터

getStyledDocument

protected final StyledDocument  getStyledDocument(JEditorPane  e)
이 에디터 구획에 관련한 문서를 가져옵니다.

파라미터:
e - 에디터
반환값:
문서
예외:
IllegalArgumentException - 부정한 문서형의 경우

getStyledEditorKit

protected final StyledEditorKit  getStyledEditorKit(JEditorPane  e)
이 에디터 구획에 관련한 에디터 킷을 가져옵니다.

파라미터:
e - 에디터 구획
반환값:
예외:
IllegalArgumentException - 부정한 문서형의 경우

setCharacterAttributes

protected final void setCharacterAttributes(JEditorPane  editor,
                                            AttributeSet  attr,
                                            boolean replace)
지정된 속성을 문자 컨텐츠에 적용합니다. 선택이 있는 경우, 속성은 그 선택 범위에 적용됩니다. 선택이 없는 경우, 속성은, 삽입되는 새로운 텍스트의 속성을 정의하는 입력 속성 세트에 적용됩니다.

파라미터:
editor - 에디터
attr - 속성
replace - true 의 경우, 기존의 속성을 최초로 옮겨놓을 수 있다

setParagraphAttributes

protected final void setParagraphAttributes(JEditorPane  editor,
                                            AttributeSet  attr,
                                            boolean replace)
지정된 속성을 단락에 적용합니다. 선택이 있는 경우, 속성은 그 선택과 사귀는 단락에 적용됩니다. 선택이 없는 경우, 속성은 현재의 caret 위치에 있는 단락에 적용됩니다.

파라미터:
editor - 에디터
attr - 속성
replace - true 의 경우, 기존의 속성을 최초로 옮겨놓을 수 있다

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 도 참조해 주세요.