JavaTM Platform
Standard Ed. 6

javax.swing.undo
클래스 UndoableEditSupport

java.lang.Object 
  상위를 확장 javax.swing.undo.UndoableEditSupport


public class UndoableEditSupport
extends Object

UndoableEdit 청취자를 관리하기 위해서 사용하는 지원 클래스입니다.


필드의 개요
protected  CompoundEdit compoundEdit
           
protected  Vector <UndoableEditListener > listeners
           
protected  Object realSource
           
protected  int updateLevel
           
 
생성자 의 개요
UndoableEditSupport ()
          UndoableEditSupport 객체를 구축합니다.
UndoableEditSupport (Object  r)
          UndoableEditSupport 객체를 구축합니다.
 
메소드의 개요
protected  void _postEdit (UndoableEdit  e)
          postEdit 메소드와 endUpdate 메소드로부터 마셔 불려 갑니다.
 void addUndoableEditListener (UndoableEditListener  l)
          UndoableEditListener 를 등록합니다.
 void beginUpdate ()
           
protected  CompoundEdit createCompoundEdit ()
          beginUpdate 로부터 마셔 불려 갑니다.
 void endUpdate ()
          데드락 경고:이 메소드를 호출하면(자), 모든 청취자로 undoableEditHappened 가 불려 갑니다.
 UndoableEditListener [] getUndoableEditListeners ()
          addUndoableEditListener()에 의해 이 UndoableEditSupport 에 추가된 모든 UndoableEditListener 로부터 완성되는 배열을 돌려줍니다.
 int getUpdateLevel ()
          갱신 레벨의 값을 돌려줍니다.
 void postEdit (UndoableEdit  e)
          데드락 경고:이 메소드를 호출하면(자), 모든 청취자로 undoableEditHappened 가 불려 갑니다.
 void removeUndoableEditListener (UndoableEditListener  l)
          UndoableEditListener 를 삭제합니다.
 String toString ()
          이 객체의 프로퍼티을 표시 및 식별하는 캐릭터 라인을 돌려줍니다.
 
클래스 java.lang. Object 로부터 상속된 메소드
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait
 

필드의 상세

updateLevel

protected int updateLevel

compoundEdit

protected CompoundEdit  compoundEdit

listeners

protected Vector <UndoableEditListener > listeners

realSource

protected Object  realSource
생성자 의 상세

UndoableEditSupport

public UndoableEditSupport()
UndoableEditSupport 객체를 구축합니다.


UndoableEditSupport

public UndoableEditSupport(Object  r)
UndoableEditSupport 객체를 구축합니다.

파라미터:
r - Object
메소드의 상세

addUndoableEditListener

public void addUndoableEditListener(UndoableEditListener  l)
UndoableEditListener 를 등록합니다. 바탕으로 되돌릴 수 있는 편집이 발생하면(자), 반드시 청취자에게 통지됩니다.

파라미터:
l - UndoableEditListener 객체
관련 항목:
removeUndoableEditListener(javax.swing.event.UndoableEditListener)

removeUndoableEditListener

public void removeUndoableEditListener(UndoableEditListener  l)
UndoableEditListener 를 삭제합니다.

파라미터:
l - 삭제하는 UndoableEditListener 객체
관련 항목:
addUndoableEditListener(javax.swing.event.UndoableEditListener)

getUndoableEditListeners

public UndoableEditListener [] getUndoableEditListeners()
addUndoableEditListener()에 의해 이 UndoableEditSupport 에 추가된 모든 UndoableEditListener 로부터 완성되는 배열을 돌려줍니다.

반환값:
추가된 모든 UndoableEditListener, 추가된 청취자가 없는 경우는 빈 상태(empty)의 배열
도입된 버젼:
1.4

_postEdit

protected void _postEdit(UndoableEdit  e)
postEdit 메소드와 endUpdate 메소드로부터 마셔 불려 갑니다. 모든 청취자로 undoableEditHappened 를 호출합니다. 2 개의 호출측 메소드는 동기를 빼앗기므로, 여기서 동기는 실행되지 않습니다.


postEdit

public void postEdit(UndoableEdit  e)
데드락 경고:이 메소드를 호출하면(자), 모든 청취자로 undoableEditHappened 가 불려 갑니다. 이 메소드를 그 청취자의 1 개로부터 호출하는 것은 좋은 방법이 아닙니다.


getUpdateLevel

public int getUpdateLevel()
갱신 레벨의 값을 돌려줍니다.

반환값:
갱신 레벨을 나타내는 정수치

beginUpdate

public void beginUpdate()

createCompoundEdit

protected CompoundEdit  createCompoundEdit()
beginUpdate 로부터 마셔 불려 갑니다. 서브 클래스에서 사용하기 위해서, 여기에 공개되고 있습니다.


endUpdate

public void endUpdate()
데드락 경고:이 메소드를 호출하면(자), 모든 청취자로 undoableEditHappened 가 불려 갑니다. 이 메소드를 그 청취자의 1 개로부터 호출하는 것은 좋은 방법이 아닙니다.


toString

public String  toString()
이 객체의 프로퍼티을 표시 및 식별하는 캐릭터 라인을 돌려줍니다.

오버라이드(override):
클래스 Object 내의 toString
반환값:
이 객체의 String 표현

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