JavaTM Platform
Standard Ed. 6

인터페이스
javax.swing.text.Element 의 사용

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

javax.swing 에서의 Element 의 사용
 

Element 형의 파라미터를 가지는 javax.swing 의 생성자
JEditorPane.JEditorPaneAccessibleHypertextSupport.HTMLLink (Element  e)
           
 

javax.swing.event 에서의 Element 의 사용
 

Element 를 돌려주는 javax.swing.event 의 메소드
 Element [] DocumentEvent.ElementChange. getChildrenAdded ()
          지정된 친요소에 추가된 아이 요소를 돌려줍니다.
 Element [] DocumentEvent.ElementChange. getChildrenRemoved ()
          지정된 친요소로부터 삭제된 아이 요소를 돌려줍니다.
 Element DocumentEvent.ElementChange. getElement ()
          표시된 요소를 돌려줍니다.
 Element HyperlinkEvent. getSourceElement ()
          이벤트의 소스에 대응하는 Element 를 돌려줍니다.
 

Element 형의 파라미터를 가지는 javax.swing.event 의 메소드
 DocumentEvent.ElementChange DocumentEvent. getChange (Element  elem)
          지정된 요소의 변경 정보를 돌려줍니다.
 

Element 형의 파라미터를 가지는 javax.swing.event 의 생성자
HyperlinkEvent (Object  source, HyperlinkEvent.EventType  type, URL  u, String  desc, Element  sourceElement)
          하이퍼 텍스트(hyper text) 링크 이벤트를 나타내는 새로운 객체를 작성합니다.
 

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

Element 형의 파라미터를 가지는 javax.swing.plaf.basic 의 메소드
 View BasicTextFieldUI. create (Element  elem)
          요소에 근거해 뷰 (FieldView)를 작성합니다.
 View BasicTextUI. create (Element  elem)
          요소의 뷰를 작성합니다.
 View BasicTextAreaUI. create (Element  elem)
          요소의 뷰를 작성합니다.
 View BasicPasswordFieldUI. create (Element  elem)
          요소의 뷰 (PasswordView)를 작성합니다.
 View BasicTextUI. create (Element  elem, int p0, int p1)
          요소의 뷰를 작성합니다.
 

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

Element 를 구현하고 있는 javax.swing.text 의 클래스
 class AbstractDocument.AbstractElement
          요소의 추상 부분을 구현합니다.
 class AbstractDocument.BranchElement
          다른 요소를 포함한 복합 요소를 구현합니다.
 class AbstractDocument.LeafElement
          어떤 종류의 컨텐츠를 직접 나타내는 요소를 구현합니다.
protected  class DefaultStyledDocument.SectionElement
          문서의 디폴트 루트 요소로, 포함되는 단락이나 행을 매핑 합니다.
 

Element 로서 선언되고 있는 javax.swing.text 의 필드
protected  Element DefaultStyledDocument.AttributeUndoableEdit. element
           
 

Element 를 돌려주는 javax.swing.text 의 메소드
 Element DefaultStyledDocument.ElementBuffer. clone (Element  parent, Element  clonee)
          다른 부모를 사용해, 이 요소의 카피를 작성합니다.
protected  Element AbstractDocument. createBranchElement (Element  parent, AttributeSet  a)
          문서의 가지의 요소를 작성합니다.
protected  Element AbstractDocument. createLeafElement (Element  parent, AttributeSet  a, int p0, int p1)
          문서의 잎의 요소를 작성합니다.
 Element ElementIterator. current ()
          현재의 Element 를 가져옵니다.
 Element ElementIterator. first ()
          선두의 요소를 가져옵니다.
 Element AbstractDocument. getBidiRootElement ()
          문서의 쌍방향 구조의 루트 요소를 돌려줍니다.
 Element StyledEditorKit. getCharacterAttributeRun ()
          caret에 대응하는 현재의 문자 속성을 나타내는 요소를 가져옵니다.
 Element StyledDocument. getCharacterElement (int pos)
          문서내의 지정된 오프셋(offset)에 있는 문자를 나타내는 요소를 돌려줍니다.
 Element DefaultStyledDocument. getCharacterElement (int pos)
          위치에 근거해 문자 요소를 가져옵니다.
 Element [] AbstractDocument.ElementEdit. getChildrenAdded ()
          추가된 아이의 리스트를 가져옵니다.
 Element [] AbstractDocument.ElementEdit. getChildrenRemoved ()
          삭제된 아이의 리스트를 가져옵니다.
 Element Document. getDefaultRootElement ()
          루트 요소를 돌려줍니다.
 Element PlainDocument. getDefaultRootElement ()
          문서 모델의 디폴트의 루트 요소를 가져옵니다.
abstract  Element AbstractDocument. getDefaultRootElement ()
          루트 요소를 돌려줍니다.
 Element DefaultStyledDocument. getDefaultRootElement ()
          디폴트의 루트 요소를 가져옵니다.
 Element AbstractDocument.ElementEdit. getElement ()
          처리 대상의 요소를 돌려줍니다.
 Element View. getElement ()
          이 뷰가 매핑 되는 대상의 구조 부분을 꺼냅니다.
 Element Element. getElement (int index)
          지정된 인덱스의 아이 요소를 가져옵니다.
abstract  Element AbstractDocument.AbstractElement. getElement (int index)
          아이 요소를 가져옵니다.
 Element AbstractDocument.BranchElement. getElement (int index)
          아이 요소를 가져옵니다.
 Element AbstractDocument.LeafElement. getElement (int index)
          아이 요소를 가져옵니다.
 Element PlainDocument. getParagraphElement (int pos)
          지정된 위치를 보관 유지하는 단락 요소를 가져옵니다.
abstract  Element AbstractDocument. getParagraphElement (int pos)
          지정된 위치를 보관 유지하는 단락 요소를 돌려줍니다.
 Element StyledDocument. getParagraphElement (int pos)
          문서내의 지정된 오프셋(offset)를 포함한 단락을 나타내는 요소를 돌려줍니다.
 Element DefaultStyledDocument. getParagraphElement (int pos)
          오프셋(offset) pos 의 단락의 요소를 가져옵니다.
static Element Utilities. getParagraphElement (JTextComponent  c, int offs)
          단락 또는 행에 사용하는 요소를 지정합니다.
 Element Element. getParentElement ()
          친요소를 가져옵니다.
 Element AbstractDocument.AbstractElement. getParentElement ()
          요소의 부모를 가져옵니다.
 Element DefaultStyledDocument.ElementBuffer. getRootElement ()
          루트 요소를 가져옵니다.
 Element [] Document. getRootElements ()
          정의 떠날 수 있어 모든 루트 요소를 돌려줍니다.
 Element [] AbstractDocument. getRootElements ()
          정의되고 있는 루트 요소를 모두 가져옵니다.
 Element ElementIterator. next ()
          다음의 Element 를 가져옵니다.
 Element AbstractDocument.BranchElement. positionToElement (int pos)
          지정된 모델 위치를 포함한 아이 요소를 가져옵니다.
 Element ElementIterator. previous ()
          직전의 Element 를 가져옵니다.
 

Element 형의 파라미터를 가지는 javax.swing.text 의 메소드
 Element DefaultStyledDocument.ElementBuffer. clone (Element  parent, Element  clonee)
          다른 부모를 사용해, 이 요소의 카피를 작성합니다.
 View ViewFactory. create (Element  elem)
          문서의 지정된 구조 요소로부터 뷰를 작성합니다.
protected  Element AbstractDocument. createBranchElement (Element  parent, AttributeSet  a)
          문서의 가지의 요소를 작성합니다.
protected  void StyledEditorKit. createInputAttributes (Element  element, MutableAttributeSet  set)
          element 의 AttributeSet 내의 키와 값의 페어를 set 에 카피합니다.
protected  Element AbstractDocument. createLeafElement (Element  parent, AttributeSet  a, int p0, int p1)
          문서의 잎의 요소를 작성합니다.
protected  TableView.TableCell TableView. createTableCell (Element  elem)
          추천 되고 있지 않습니다.  테이블 셀은 임의의 View 구현이 될 수가 있습니다만, 테이블은 아니고, ViewFactory 에 의해 작성되도록(듯이) 합니다.
protected  TableView.TableRow TableView. createTableRow (Element  elem)
          새로운 테이블행을 작성합니다.
 DocumentEvent.ElementChange AbstractDocument.DefaultDocumentEvent. getChange (Element  elem)
          요소의 변경을 가져옵니다.
protected  String AbstractWriter. getText (Element  elem)
          요소에 관련한 텍스트를 돌려줍니다.
protected  boolean AbstractWriter. inRange (Element  next)
          이 메소드는, 현재의 요소가 지정된 범위내에 있을지 어떨지를 판정합니다.
 void AbstractDocument.BranchElement. replace (int offset, int length, Element [] elems)
          컨텐츠를 요소의 신규 세트로 옮겨놓습니다.
protected  void AbstractWriter. text (Element  elem)
          텍스트를 써냅니다.
 

Element 형의 파라미터를 가지는 javax.swing.text 의 생성자
AbstractDocument.AbstractElement (Element  parent, AttributeSet  a)
          새로운 AbstractElement 를 작성합니다.
AbstractDocument.BranchElement (Element  parent, AttributeSet  a)
          처음은 아이를 포함하지 않는, 복합 요소를 작성합니다.
AbstractDocument.ElementEdit (Element  e, int index, Element [] removed, Element [] added)
          편집의 레코드를 구축합니다.
AbstractDocument.ElementEdit (Element  e, int index, Element [] removed, Element [] added)
          편집의 레코드를 구축합니다.
AbstractDocument.ElementEdit (Element  e, int index, Element [] removed, Element [] added)
          편집의 레코드를 구축합니다.
AbstractDocument.LeafElement (Element  parent, AttributeSet  a, int offs0, int offs1)
          문서내의 컨텐츠를 나타내는 (아이를 가지지 않는다) 요소를 작성합니다.
AbstractWriter (Writer  w, Element  root)
          새로운 AbstractWriter 를 작성합니다.
AbstractWriter (Writer  w, Element  root, int pos, int len)
          새로운 AbstractWriter 를 작성합니다.
AsyncBoxView (Element  elem, int axis)
          비동기 레이아웃을 실시하는 복스뷰를 구축합니다.
BoxView (Element  elem, int axis)
          BoxView 를 구축합니다.
ComponentView (Element  elem)
          새로운 ComponentView 객체를 작성합니다.
CompositeView (Element  elem)
          지정된 요소의 CompositeView 를 구축합니다.
DefaultStyledDocument.AttributeUndoableEdit (Element  element, AttributeSet  newAttributes, boolean isReplacing)
           
DefaultStyledDocument.ElementBuffer (Element  root)
          새로운 ElementBuffer 를 작성합니다.
ElementIterator (Element  root)
          새로운 ElementIterator 를 작성합니다.
FieldView (Element  elem)
          랩 한 새로운 FieldView 를 요소로 구축합니다.
FlowView (Element  elem, int axis)
          지정된 요소의 FlowView 를 작성합니다.
GlyphView (Element  elem)
          요소에 랩 된 새로운 뷰를 작성합니다.
IconView (Element  elem)
          요소를 표현하는 새로운 아이콘뷰를 작성합니다.
LabelView (Element  elem)
          요소에 랩 된 새로운 뷰를 작성합니다.
ParagraphView (Element  elem)
          지정된 요소의 ParagraphView 를 구축합니다.
PasswordView (Element  elem)
          요소에 랩 된 새로운 뷰를 작성합니다.
PlainView (Element  elem)
          요소로 랩 된 새로운 PlainView 를 구축합니다.
TableView.TableCell (Element  elem)
          추천 되고 있지 않습니다.  지정된 요소의 테이블 셀을 구축합니다.
TableView.TableRow (Element  elem)
          지정된 요소의 TableView 를 작성합니다.
TableView (Element  elem)
          지정된 요소의 TableView 를 작성합니다.
View (Element  elem)
          새로운 View 객체를 작성합니다.
WrappedPlainView (Element  elem)
          새로운 WrappedPlainView 를 작성합니다.
WrappedPlainView (Element  elem, boolean wordWrap)
          새로운 WrappedPlainView 를 작성합니다.
ZoneView (Element  elem, int axis)
          ZoneView 를 구축합니다.
 

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

Element 를 구현하고 있는 javax.swing.text.html 의 클래스
 class HTMLDocument.BlockElement
          HTML 의 구조 블록을 나타내는 요소입니다.
 class HTMLDocument.RunElement
          HTML 문자 레벨 속성세트를 할당할 수 있고 있는 텍스트의 체크를 나타내는 요소입니다.
 

Element 를 돌려주는 javax.swing.text.html 의 메소드
protected  Element HTMLDocument. createBranchElement (Element  parent, AttributeSet  a)
          문서의 가지의 요소를 작성합니다.
protected  Element HTMLDocument. createLeafElement (Element  parent, AttributeSet  a, int p0, int p1)
          텍스트를 직접 나타내는 (아이를 가지지 않는다) 문서의 잎의 요소를 작성합니다.
protected  Element HTMLEditorKit.HTMLTextAction. findElementMatchingTag (HTMLDocument  doc, int offset, HTML.Tag  tag)
          tag 에 일치하는 offset 에 위치하는, 제일 깊은 요소를 돌려줍니다.
 Element HTMLDocument. getElement (Element  e, Object  attribute, Object  value)
          속성 (값 value 를 가지는 attribute)을 포함하는 e 의 아이 요소를 돌려줍니다.
 Element HTMLDocument. getElement (String  id)
          지정한 id Attribute 를 가지는 요소를 돌려줍니다.
protected  Element [] HTMLEditorKit.HTMLTextAction. getElementsAt (HTMLDocument  doc, int offset)
          offset 를 포함하는 요소로부터 완성되는 배열을 돌려줍니다.
 

Element 형의 파라미터를 가지는 javax.swing.text.html 의 메소드
protected  void HTMLWriter. comment (Element  elem)
          코멘트를 써냅니다.
 View HTMLEditorKit.HTMLFactory. create (Element  elem)
          요소로부터 뷰를 작성합니다.
protected  Element HTMLDocument. createBranchElement (Element  parent, AttributeSet  a)
          문서의 가지의 요소를 작성합니다.
protected  void HTMLEditorKit. createInputAttributes (Element  element, MutableAttributeSet  set)
          element 의 AttributeSet 내의 키와 값의 페어를 set 에 카피합니다.
protected  Element HTMLDocument. createLeafElement (Element  parent, AttributeSet  a, int p0, int p1)
          텍스트를 직접 나타내는 (아이를 가지지 않는다) 문서의 잎의 요소를 작성합니다.
protected  void HTMLWriter. emptyTag (Element  elem)
          모든 빈 상태(empty) 요소 (대응하는 종료 태그가 없는 태그 모든 것)를 써냅니다.
protected  void HTMLWriter. endTag (Element  elem)
          요소의 종료 태그를 써냅니다.
 Element HTMLDocument. getElement (Element  e, Object  attribute, Object  value)
          속성 (값 value 를 가지는 attribute)을 포함하는 e 의 아이 요소를 돌려줍니다.
 Style StyleSheet. getRule (HTML.Tag  t, Element  e)
          지정된 타입의 HTML 태그를 draw 하기 위해서 사용하는 스타일을 가져옵니다.
 void HTMLDocument. insertAfterEnd (Element  elem, String  htmlText)
          지정 요소가 종료후에 캐릭터 라인으로서 지정된 HTML 를 삽입합니다.
 void HTMLDocument. insertAfterStart (Element  elem, String  htmlText)
          요소의 개시 위치에 캐릭터 라인으로서 지정된 HTML 를 삽입합니다.
protected  void HTMLEditorKit.InsertHTMLTextAction. insertAtBoundary (JEditorPane  editor, HTMLDocument  doc, int offset, Element  insertElement, String  html, HTML.Tag  parentTag, HTML.Tag  addTag)
          경계에 삽입할 경우에 불려 갑니다.
protected  void HTMLEditorKit.InsertHTMLTextAction. insertAtBoundry (JEditorPane  editor, HTMLDocument  doc, int offset, Element  insertElement, String  html, HTML.Tag  parentTag, HTML.Tag  addTag)
          추천 되고 있지 않습니다.  Java 2 플랫폼 v1. 3 에 대해 insertAtBoundary 를 사용해 주세요.
 void HTMLDocument. insertBeforeEnd (Element  elem, String  htmlText)
          요소의 종료 위치에 캐릭터 라인으로서 지정된 HTML 를 삽입합니다.
 void HTMLDocument. insertBeforeStart (Element  elem, String  htmlText)
          지정된 요소가 개시되기 전에 캐릭터 라인으로서 지정된 HTML 를 삽입합니다.
protected  boolean MinimalHTMLWriter. isText (Element  elem)
          요소가 텍스트라면 true 를 돌려줍니다.
 void HTMLDocument. setInnerHTML (Element  elem, String  htmlText)
          지정된 요소의 아이를 HTML 캐릭터 라인으로서 지정된 컨텐츠와 옮겨놓습니다.
 void HTMLDocument. setOuterHTML (Element  elem, String  htmlText)
          지정된 부모의 요소를 HTML 캐릭터 라인으로서 지정된 컨텐츠와 옮겨놓습니다.
protected  void HTMLWriter. startTag (Element  elem)
          요소의 개시 태그를 써냅니다.
protected  boolean HTMLWriter. synthesizedElement (Element  elem)
          요소가 합성 요소의 경우는 true 를 돌려줍니다.
protected  void MinimalHTMLWriter. text (Element  elem)
          텍스트를 써냅니다.
protected  void HTMLWriter. text (Element  elem)
          텍스트를 써냅니다.
protected  void MinimalHTMLWriter. writeComponent (Element  elem)
          컴퍼넌트 요소의 서두를 실시합니다.
protected  void MinimalHTMLWriter. writeContent (Element  elem, boolean needsIndenting)
          HTML 에 준거한 방법으로 속성 세트를 써냅니다.
protected  void MinimalHTMLWriter. writeImage (Element  elem)
          아이콘 요소의 서두를 실시합니다.
protected  void MinimalHTMLWriter. writeLeaf (Element  elem)
          텍스트 이외의 잎의 요소의 서두를 제어합니다.
protected  void MinimalHTMLWriter. writeStartParagraph (Element  elem)
          단락의 개시 태그를 발행합니다.
 

Element 형의 파라미터를 가지는 javax.swing.text.html 의 생성자
BlockView (Element  elem, int axis)
          HTML 박스를 나타내는 새로운 뷰를 작성합니다.
FormView (Element  elem)
          새로운 FormView 객체를 작성합니다.
HTMLDocument.BlockElement (Element  parent, AttributeSet  a)
          처음은 아이를 포함하지 않는, 복합 요소를 작성합니다.
HTMLDocument.RunElement (Element  parent, AttributeSet  a, int offs0, int offs1)
          문서내의 컨텐츠를 나타내는 (아이를 가지지 않는다) 요소를 작성합니다.
HTMLFrameHyperlinkEvent (Object  source, HyperlinkEvent.EventType  type, URL  targetURL, Element  sourceElement, String  targetFrame)
          하이퍼 텍스트(hyper text) 링크 이벤트를 나타내는 새로운 객체를 작성합니다.
HTMLFrameHyperlinkEvent (Object  source, HyperlinkEvent.EventType  type, URL  targetURL, String  desc, Element  sourceElement, String  targetFrame)
          하이퍼 텍스트(hyper text) 링크 이벤트를 나타내는 새로운 객체를 작성합니다.
ImageView (Element  elem)
          IMG 요소를 나타내는 새로운 뷰를 작성합니다.
InlineView (Element  elem)
          요소에 랩 된 새로운 뷰를 작성합니다.
ListView (Element  elem)
          리스트 요소를 나타내는 새로운 뷰를 작성합니다.
ObjectView (Element  elem)
          새로운 ObjectView 객체를 작성합니다.
ParagraphView (Element  elem)
          지정된 요소의 ParagraphView 를 구축합니다.
 


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