|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Objectjavax.swing.AbstractAction
javax.swing.text.TextAction
javax.swing.text.StyledEditorKit.StyledTextAction
public abstract static class StyledEditorKit.StyledTextAction
인스톨 된 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 |
생성자 의 상세 |
---|
public StyledEditorKit.StyledTextAction(String nm)
nm
- 액션의 이름메소드의 상세 |
---|
protected final JEditorPane getEditor(ActionEvent e)
e
- 액션 이벤트
protected final StyledDocument getStyledDocument(JEditorPane e)
e
- 에디터
IllegalArgumentException
- 부정한 문서형의 경우protected final StyledEditorKit getStyledEditorKit(JEditorPane e)
e
- 에디터 구획
IllegalArgumentException
- 부정한 문서형의 경우protected final void setCharacterAttributes(JEditorPane editor, AttributeSet attr, boolean replace)
editor
- 에디터attr
- 속성replace
- true 의 경우, 기존의 속성을 최초로 옮겨놓을 수 있다protected final void setParagraphAttributes(JEditorPane editor, AttributeSet attr, boolean replace)
editor
- 에디터attr
- 속성replace
- true 의 경우, 기존의 속성을 최초로 옮겨놓을 수 있다
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.