JavaTM Platform
Standard Ed. 6

java.beans
클래스 EventSetDescriptor

java.lang.Object 
  상위를 확장 java.beans.FeatureDescriptor 
      상위를 확장 java.beans.EventSetDescriptor


public class EventSetDescriptor
extends FeatureDescriptor

EventSetDescriptor 는, 지정된 JavaBean 가 트리거하는 이벤트의 그룹을 기술합니다.

지정된 이벤트 그룹은, 모두 단일의 이벤트 청취자 인터페이스상의 메소드 호출로서 전달됩니다. 이벤트 청취자 객체는, 이벤트 소스로부터 제공되는 등록 메소드의 호출에 의해 등록됩니다.


생성자 의 개요
EventSetDescriptor (Class <? > sourceClass, String  eventSetName, Class <? > listenerType, String  listenerMethodName)
          지정된 이벤트 fred 가 (1) FredListener 인터페이스의 단일의 메소드 호출로서 전달되는, (2) FredEvent 형의 단일의 인수를 취하는, (3) FredListener 를 소스 컴퍼넌트의 addFredListener 메소드의 호출로 등록해 removeFredListener 메소드의 호출로 삭제한다, 라고 하는 가장 단순한 표준 설계 패턴에 따르는 것으로서EventSetDescriptor 를 작성합니다.
EventSetDescriptor (Class <? > sourceClass, String  eventSetName, Class <? > listenerType, String [] listenerMethodNames, String  addListenerMethodName, String  removeListenerMethodName)
          캐릭터 라인명을 사용해, 제로로부터 EventSetDescriptor 를 작성합니다.
EventSetDescriptor (Class <? > sourceClass, String  eventSetName, Class <? > listenerType, String [] listenerMethodNames, String  addListenerMethodName, String  removeListenerMethodName, String  getListenerMethodName)
          이 생성자 은, 캐릭터 라인명을 사용해, 제로로부터 EventSetDescriptor 을 작성합니다.
EventSetDescriptor (String  eventSetName, Class <? > listenerType, Method [] listenerMethods, Method  addListenerMethod, Method  removeListenerMethod)
          java.lang.reflect.Method 객체와 java.lang.Class 객체를 사용해, 제로로부터 EventSetDescriptor 를 작성합니다.
EventSetDescriptor (String  eventSetName, Class <? > listenerType, Method [] listenerMethods, Method  addListenerMethod, Method  removeListenerMethod, Method  getListenerMethod)
          이 생성자 은, java.lang.reflect.Method 객체와 java.lang.Class 객체를 사용해, 제로로부터 EventSetDescriptor 를 작성합니다.
EventSetDescriptor (String  eventSetName, Class <? > listenerType, MethodDescriptor [] listenerMethodDescriptors, Method  addListenerMethod, Method  removeListenerMethod)
          java.lang.reflect.MethodDescriptor 객체와 java.lang.Class 객체를 사용해, 제로로부터 EventSetDescriptor 를 작성합니다.
 
메소드의 개요
 Method getAddListenerMethod ()
          이벤트 청취자의 추가시에 사용하는 메소드를 가져옵니다.
 Method getGetListenerMethod ()
          등록이 끝난 이벤트 청취자에게로의 액세스에 사용하는 메소드를 가져옵니다.
 MethodDescriptor [] getListenerMethodDescriptors ()
          타겟 청취자 인터페이스의 MethodDescriptor 를 가져옵니다.
 Method [] getListenerMethods ()
          타겟 청취자 인터페이스의 메소드를 가져옵니다.
 Class <? > getListenerType ()
          타겟 인터페이스의 Class 객체를 가져옵니다.
 Method getRemoveListenerMethod ()
          이벤트 청취자의 삭제시에 사용하는 메소드를 가져옵니다.
 boolean isInDefaultEventSet ()
          이벤트 세트가 디폴트세트일지 어떨지를 보고합니다.
 boolean isUnicast ()
          일반적으로, 이벤트 소스는 멀티 캐스트입니다.
 void setInDefaultEventSet (boolean inDefaultEventSet)
          이벤트 세트를 디폴트세트 또는 디폴트가 아닌 세트로서 마크 합니다.
 void setUnicast (boolean unicast)
          이벤트 세트를 uni-cast, 또는 비uni-cast로서 마크 합니다.
 
클래스 java.beans. FeatureDescriptor 로부터 상속된 메소드
attributeNames , getDisplayName , getName , getShortDescription , getValue , isExpert , isHidden , isPreferred , setDisplayName , setExpert , setHidden , setName , setPreferred , setShortDescription , setValue
 
클래스 java.lang. Object 로부터 상속된 메소드
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
 

생성자 의 상세

EventSetDescriptor

public EventSetDescriptor(Class <? > sourceClass,
                          String  eventSetName,
                          Class <? > listenerType,
                          String  listenerMethodName)
                   throws IntrospectionException 
지정된 이벤트 fred 가 (1) FredListener 인터페이스의 단일의 메소드 호출로서 전달되는, (2) FredEvent 형의 단일의 인수를 취하는, (3) FredListener 를 소스 컴퍼넌트의 addFredListener 메소드의 호출로 등록해 removeFredListener 메소드의 호출로 삭제한다, 라고 하는 가장 단순한 표준 설계 패턴에 따르는 것으로서EventSetDescriptor 를 작성합니다.

파라미터:
sourceClass - 이벤트를 트리거하는 클래스
eventSetName - 이벤트의 프로그램명 ( 「fred」 등). 일반적으로, 선두의 문자는 알파벳의 소문자가 되는
listenerType - 이벤트의 전달처가 되는 타겟 인터페이스
listenerMethodName - 이벤트가 타겟 청취자 인터페이스에 전달되었을 때에 불려 가는 메소드
예외:
IntrospectionException - 인트로스페크션중에 예외가 발생했을 경우

EventSetDescriptor

public EventSetDescriptor(Class <? > sourceClass,
                          String  eventSetName,
                          Class <? > listenerType,
                          String [] listenerMethodNames,
                          String  addListenerMethodName,
                          String  removeListenerMethodName)
                   throws IntrospectionException 
캐릭터 라인명을 사용해, 제로로부터 EventSetDescriptor 을 작성합니다.

파라미터:
sourceClass - 이벤트를 트리거하는 클래스
eventSetName - 이벤트 세트의 프로그램명 일반적으로, 선두의 문자는 알파벳의 소문자가 되는
listenerType - 이벤트의 전달처가 되는 타겟 인터페이스의 클래스
listenerMethodNames - 이벤트가 타겟 청취자 인터페이스에 전달되었을 때에 불려 가는 메소드의 이름
addListenerMethodName - 이벤트 청취자 객체의 등록에 사용되는 이벤트 소스상의 메소드의 이름
removeListenerMethodName - 이벤트 청취자 객체의 등록 해제에 사용되는 이벤트 소스상의 메소드의 이름
예외:
IntrospectionException - 인트로스페크션중에 예외가 발생했을 경우

EventSetDescriptor

public EventSetDescriptor(Class <? > sourceClass,
                          String  eventSetName,
                          Class <? > listenerType,
                          String [] listenerMethodNames,
                          String  addListenerMethodName,
                          String  removeListenerMethodName,
                          String  getListenerMethodName)
                   throws IntrospectionException 
이 생성자 은, 캐릭터 라인명을 사용해, 제로로부터 EventSetDescriptor 을 작성합니다.

파라미터:
sourceClass - 이벤트를 트리거하는 클래스
eventSetName - 이벤트 세트의 프로그램명 일반적으로, 선두의 문자는 알파벳의 소문자가 됩니다.
listenerType - 이벤트의 전달처가 되는 타겟 인터페이스의 클래스
listenerMethodNames - 이벤트가 타겟 청취자 인터페이스에 전달되었을 때에 불려 가는 메소드의 이름
addListenerMethodName - 이벤트 청취자 객체의 등록에 사용되는 이벤트 소스상의 메소드의 이름
removeListenerMethodName - 이벤트 청취자 객체의 등록 해제에 사용되는 이벤트 소스상의 메소드의 이름
getListenerMethodName - 이벤트 청취자 객체의 배열에의 액세스에 사용되는 이벤트 소스상의 메소드
예외:
IntrospectionException - 인트로스페크션중에 예외가 발생했을 경우
도입된 버젼:
1.4

EventSetDescriptor

public EventSetDescriptor(String  eventSetName,
                          Class <? > listenerType,
                          Method [] listenerMethods,
                          Method  addListenerMethod,
                          Method  removeListenerMethod)
                   throws IntrospectionException 
java.lang.reflect.Method 객체와 java.lang.Class 객체를 사용해, 제로로부터 EventSetDescriptor 를 작성합니다.

파라미터:
eventSetName - 이벤트 세트의 프로그램명
listenerType - 청취자 인터페이스의 클래스
listenerMethods - 타겟 청취자내의 개개의 이벤트 처리 메소드에 대해 기술하는 Method 객체의 배열
addListenerMethod - 이벤트 청취자 객체의 등록에 사용되는 이벤트 소스상의 메소드
removeListenerMethod - 이벤트 청취자 객체의 등록 해제에 사용되는 이벤트 소스상의 메소드
예외:
IntrospectionException - 인트로스페크션중에 예외가 발생했을 경우

EventSetDescriptor

public EventSetDescriptor(String  eventSetName,
                          Class <? > listenerType,
                          Method [] listenerMethods,
                          Method  addListenerMethod,
                          Method  removeListenerMethod,
                          Method  getListenerMethod)
                   throws IntrospectionException 
이 생성자 은, java.lang.reflect.Method 객체와 java.lang.Class 객체를 사용해, 제로로부터 EventSetDescriptor 를 작성합니다.

파라미터:
eventSetName - 이벤트 세트의 프로그램명
listenerType - 청취자 인터페이스의 클래스
listenerMethods - 타겟 청취자내의 개개의 이벤트 처리 메소드에 대해 기술하는 Method 객체의 배열
addListenerMethod - 이벤트 청취자 객체의 등록에 사용되는 이벤트 소스상의 메소드
removeListenerMethod - 이벤트 청취자 객체의 등록 해제에 사용되는 이벤트 소스상의 메소드
getListenerMethod - 이벤트 청취자 객체의 배열에의 액세스에 사용되는 이벤트 소스상의 메소드
예외:
IntrospectionException - 인트로스페크션중에 예외가 발생했을 경우
도입된 버젼:
1.4

EventSetDescriptor

public EventSetDescriptor(String  eventSetName,
                          Class <? > listenerType,
                          MethodDescriptor [] listenerMethodDescriptors,
                          Method  addListenerMethod,
                          Method  removeListenerMethod)
                   throws IntrospectionException 
java.lang.reflect.MethodDescriptor 객체와 java.lang.Class 객체를 사용해, 제로로부터 EventSetDescriptor 를 작성합니다.

파라미터:
eventSetName - 이벤트 세트의 프로그램명
listenerType - 청취자 인터페이스의 클래스
listenerMethodDescriptors - 타겟 청취자내의 개개의 이벤트 처리 메소드에 대해 기술하는 MethodDescriptor 객체의 배열
addListenerMethod - 이벤트 청취자 객체의 등록에 사용되는 이벤트 소스상의 메소드
removeListenerMethod - 이벤트 청취자 객체의 등록 해제에 사용되는 이벤트 소스상의 메소드
예외:
IntrospectionException - 인트로스페크션중에 예외가 발생했을 경우
메소드의 상세

getListenerType

public Class <? > getListenerType()
타겟 인터페이스의 Class 객체를 가져옵니다.

반환값:
이벤트가 트리거되었을 때에 불려 가는 타겟 인터페이스의 Class 객체

getListenerMethods

public Method [] getListenerMethods()
타겟 청취자 인터페이스의 메소드를 가져옵니다.

반환값:
이벤트가 트리거되었을 때에 불려 가는, 타겟 청취자 인터페이스내의 타겟 메소드의 Method 객체의 배열

getListenerMethodDescriptors

public MethodDescriptor [] getListenerMethodDescriptors()
타겟 청취자 인터페이스의 MethodDescriptor 를 가져옵니다.

반환값:
이벤트가 트리거되었을 때에 불려 가는, 타겟 청취자 인터페이스내의 타겟 메소드의 MethodDescriptor 객체의 배열

getAddListenerMethod

public Method  getAddListenerMethod()
이벤트 청취자의 추가시에 사용하는 메소드를 가져옵니다.

반환값:
이벤트 소스의 청취자의 등록에 사용하는 메소드

getRemoveListenerMethod

public Method  getRemoveListenerMethod()
이벤트 청취자의 삭제시에 사용하는 메소드를 가져옵니다.

반환값:
이벤트 소스의 청취자의 삭제에 사용하는 메소드

getGetListenerMethod

public Method  getGetListenerMethod()
등록이 끝난 이벤트 청취자에게로의 액세스에 사용하는 메소드를 가져옵니다.

반환값:
이벤트 소스의 청취자의 배열에 액세스 할 때 사용하는 메소드, 존재하지 않는 경우는 null
도입된 버젼:
1.4

setUnicast

public void setUnicast(boolean unicast)
이벤트 세트를 uni-cast, 또는 비uni-cast로서 마크 합니다.

파라미터:
unicast - 이벤트 세트가 uni-cast인 경우는 true

isUnicast

public boolean isUnicast()
일반적으로, 이벤트 소스는 멀티 캐스트입니다. 그러나, 엄밀하게는 uni-cast이다고 하는 예외도 있습니다.

반환값:
이벤트 세트가 uni-cast인 경우는 true. 디폴트는 false .

setInDefaultEventSet

public void setInDefaultEventSet(boolean inDefaultEventSet)
이벤트 세트를 디폴트세트 또는 디폴트가 아닌 세트로서 마크 합니다. 디폴트는 true 입니다.

파라미터:
inDefaultEventSet - 이벤트 세트가 디폴트세트 인 경우는 true, 그 이외의 경우는 false

isInDefaultEventSet

public boolean isInDefaultEventSet()
이벤트 세트가 디폴트세트일지 어떨지를 보고합니다.

반환값:
이벤트 세트가 디폴트세트 인 경우는 true. 디폴트는 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 도 참조해 주세요.