JavaTM Platform
Standard Ed. 6

javax.swing.text
클래스 StyledEditorKit

java.lang.Object 
  상위를 확장 javax.swing.text.EditorKit 
      상위를 확장 javax.swing.text.DefaultEditorKit 
          상위를 확장 javax.swing.text.StyledEditorKit
모든 구현된 인터페이스:
Serializable , Cloneable
직계의 기존의 서브 클래스:
HTMLEditorKit , RTFEditorKit


public class StyledEditorKit
extends DefaultEditorKit

특정의 타입의 텍스트 문서에 대해서 적절한 에디터로서 기능하기 위해서, 텍스트 컴퍼넌트에 필요한 세트입니다. 이 구현은, 텍스트를 서식 첨부 텍스트로서 처리해, 서식 첨부 텍스트를 편집하기 위한 액션의 최소 세트를 제공하는 디폴트의 구현을 제공합니다.


상자의 클래스의 개요
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
          밑줄 속성을 바꾸는 액션입니다.
 
클래스 javax.swing.text. DefaultEditorKit 로부터 상속된 상자의 클래스/인터페이스
DefaultEditorKit.BeepAction , DefaultEditorKit.CopyAction , DefaultEditorKit.CutAction , DefaultEditorKit.DefaultKeyTypedAction , DefaultEditorKit.InsertBreakAction , DefaultEditorKit.InsertContentAction , DefaultEditorKit.InsertTabAction , DefaultEditorKit.PasteAction
 
필드의 개요
 
클래스 javax.swing.text. DefaultEditorKit 로부터 상속된 필드
backwardAction , beepAction , beginAction , beginLineAction , beginParagraphAction , beginWordAction , copyAction , cutAction , defaultKeyTypedAction , deleteNextCharAction , deleteNextWordAction , deletePrevCharAction , deletePrevWordAction , downAction , endAction , endLineAction , EndOfLineStringProperty , endParagraphAction , endWordAction , forwardAction , insertBreakAction , insertContentAction , insertTabAction , nextWordAction , pageDownAction , pageUpAction , pasteAction , previousWordAction , readOnlyAction , selectAllAction , selectionBackwardAction , selectionBeginAction , selectionBeginLineAction , selectionBeginParagraphAction , selectionBeginWordAction , selectionDownAction , selectionEndAction , selectionEndLineAction , selectionEndParagraphAction , selectionEndWordAction , selectionForwardAction , selectionNextWordAction , selectionPreviousWordAction , selectionUpAction , selectLineAction , selectParagraphAction , selectWordAction , upAction , writableAction
 
생성자 의 개요
StyledEditorKit ()
          서식 첨부 문서로 사용하는 새로운 EditorKit 를 작성합니다.
 
메소드의 개요
 Object clone ()
          편집 킷의 카피를 작성합니다.
 Document createDefaultDocument ()
          이 형태의 에디터에 적절하고 있는 미초기화 텍스트 스토리지 모델을 작성합니다.
protected  void createInputAttributes (Element  element, MutableAttributeSet  set)
          element 의 AttributeSet 내의 키와 값의 페어를 set 에 카피합니다.
 void deinstall (JEditorPane  c)
          킷이 JEditorPane 로부터 삭제되고 있을 때 불려 갑니다.
 Action [] getActions ()
          에디터의 커멘드 리스트를 가져옵니다.
 Element getCharacterAttributeRun ()
          caret에 대응하는 현재의 문자 속성을 나타내는 요소를 가져옵니다.
 MutableAttributeSet getInputAttributes ()
          구획의 입력 속성을 가져옵니다.
 ViewFactory getViewFactory ()
          이 킷이 작성한 임의의 모델의 뷰를 작성하는데 적합한 팩토리를 가져옵니다.
 void install (JEditorPane  c)
          킷이 JEditorPane 에 인스톨 되고 있을 때 불려 갑니다.
 
클래스 javax.swing.text. DefaultEditorKit 로부터 상속된 메소드
createCaret , getContentType , read , read , write , write
 
클래스 java.lang. Object 로부터 상속된 메소드
equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
 

생성자 의 상세

StyledEditorKit

public StyledEditorKit()
서식 첨부 문서로 사용하는 새로운 EditorKit 를 작성합니다.

메소드의 상세

getInputAttributes

public MutableAttributeSet  getInputAttributes()
구획의 입력 속성을 가져옵니다. caret가 이동해, 선택이 없는 경우, 입력 속성은 현재의 caret 위치의 문자 속성을 반영하기 위해서 자동적으로 변경됩니다. 서식 첨부 편집 액션은, 입력 속성을 사용해 액션을 실행합니다.

반환값:
속성 세트

getCharacterAttributeRun

public Element  getCharacterAttributeRun()
caret에 대응하는 현재의 문자 속성을 나타내는 요소를 가져옵니다.

반환값:
요소

getActions

public Action [] getActions()
에디터의 커멘드 리스트를 가져옵니다. 이것은, 서식 처리를 위해서(때문에) 로컬로 정의된 커멘드의 컬렉션에 의해 추가된 슈퍼 클래스에 의해 지원되는 커멘드의 리스트입니다.

오버라이드(override):
클래스 DefaultEditorKit 내의 getActions
반환값:
커멘드 리스트

createDefaultDocument

public Document  createDefaultDocument()
이 형태의 에디터에 적절하고 있는 미초기화 텍스트 스토리지 모델을 작성합니다.

오버라이드(override):
클래스 DefaultEditorKit 내의 createDefaultDocument
반환값:
모델

install

public void install(JEditorPane  c)
킷이 JEditorPane 에 인스톨 되고 있을 때 불려 갑니다.

오버라이드(override):
클래스 EditorKit 내의 install
파라미터:
c - JEditorPane

deinstall

public void deinstall(JEditorPane  c)
킷이 JEditorPane 로부터 삭제되고 있을 때 불려 갑니다. 이 메소드는, 추가된 청취자의 등록을 해제하기 위해서 사용됩니다.

오버라이드(override):
클래스 EditorKit 내의 deinstall
파라미터:
c - JEditorPane

getViewFactory

public ViewFactory  getViewFactory()
이 킷이 작성한 임의의 모델의 뷰를 작성하는데 적합한 팩토리를 가져옵니다. 이것은, 이하의 타입의 요소에 대해 View 의 구현을 돌려주기 위해서(때문에) 구현됩니다.

오버라이드(override):
클래스 DefaultEditorKit 내의 getViewFactory
반환값:
팩토리

clone

public Object  clone()
편집 킷의 카피를 작성합니다.

오버라이드(override):
클래스 EditorKit 내의 clone
반환값:
카피
관련 항목:
Cloneable

createInputAttributes

protected void createInputAttributes(Element  element,
                                     MutableAttributeSet  set)
element 의 AttributeSet 내의 키와 값의 페어를 set 에 카피합니다. 이 메소드는, 컴퍼넌트, 아이콘, 요소명의 각 속성은 카피하지 않습니다. 서브 클래스에서는, 어느 속성을 카피해 어느 속성을 카피하지 않는가를 변경할 수도 있습니다. 다만, 최초로 set 내의 모든 속성을 반드시 삭제해 주세요.

이 메소드는, caret가 다른 위치로 이동할 때마다 불려 갑니다.


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