|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Objectjava.beans.FeatureDescriptor
java.beans.EventSetDescriptor
public class EventSetDescriptor
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 |
생성자 의 상세 |
---|
public EventSetDescriptor(Class <? > sourceClass, String eventSetName, Class <? > listenerType, String listenerMethodName) throws IntrospectionException
sourceClass
- 이벤트를 트리거하는 클래스eventSetName
- 이벤트의 프로그램명 ( 「fred」 등).
일반적으로, 선두의 문자는 알파벳의 소문자가 되는listenerType
- 이벤트의 전달처가 되는 타겟 인터페이스listenerMethodName
- 이벤트가 타겟 청취자 인터페이스에 전달되었을 때에 불려 가는 메소드
IntrospectionException
- 인트로스페크션중에 예외가
발생했을 경우public EventSetDescriptor(Class <? > sourceClass, String eventSetName, Class <? > listenerType, String [] listenerMethodNames, String addListenerMethodName, String removeListenerMethodName) throws IntrospectionException
sourceClass
- 이벤트를 트리거하는 클래스eventSetName
- 이벤트 세트의 프로그램명
일반적으로, 선두의 문자는 알파벳의 소문자가 되는listenerType
- 이벤트의 전달처가 되는 타겟 인터페이스의 클래스listenerMethodNames
- 이벤트가 타겟 청취자 인터페이스에 전달되었을 때에 불려 가는 메소드의 이름addListenerMethodName
- 이벤트 청취자 객체의 등록에 사용되는 이벤트 소스상의 메소드의 이름removeListenerMethodName
- 이벤트 청취자 객체의 등록 해제에 사용되는 이벤트 소스상의 메소드의 이름
IntrospectionException
- 인트로스페크션중에 예외가
발생했을 경우public EventSetDescriptor(Class <? > sourceClass, String eventSetName, Class <? > listenerType, String [] listenerMethodNames, String addListenerMethodName, String removeListenerMethodName, String getListenerMethodName) throws IntrospectionException
sourceClass
- 이벤트를 트리거하는 클래스eventSetName
- 이벤트 세트의 프로그램명
일반적으로, 선두의 문자는 알파벳의 소문자가 됩니다. listenerType
- 이벤트의 전달처가 되는 타겟 인터페이스의 클래스listenerMethodNames
- 이벤트가 타겟 청취자 인터페이스에 전달되었을 때에 불려 가는 메소드의 이름addListenerMethodName
- 이벤트 청취자 객체의 등록에 사용되는 이벤트 소스상의 메소드의 이름removeListenerMethodName
- 이벤트 청취자 객체의 등록 해제에 사용되는 이벤트 소스상의 메소드의 이름getListenerMethodName
- 이벤트 청취자 객체의 배열에의 액세스에
사용되는 이벤트 소스상의 메소드
IntrospectionException
- 인트로스페크션중에 예외가
발생했을 경우public EventSetDescriptor(String eventSetName, Class <? > listenerType, Method [] listenerMethods, Method addListenerMethod, Method removeListenerMethod) throws IntrospectionException
eventSetName
- 이벤트 세트의 프로그램명listenerType
- 청취자 인터페이스의 클래스listenerMethods
- 타겟 청취자내의 개개의 이벤트 처리 메소드에 대해 기술하는 Method 객체의 배열addListenerMethod
- 이벤트 청취자 객체의 등록에 사용되는 이벤트 소스상의 메소드removeListenerMethod
- 이벤트 청취자 객체의 등록 해제에 사용되는 이벤트 소스상의 메소드
IntrospectionException
- 인트로스페크션중에 예외가
발생했을 경우public EventSetDescriptor(String eventSetName, Class <? > listenerType, Method [] listenerMethods, Method addListenerMethod, Method removeListenerMethod, Method getListenerMethod) throws IntrospectionException
eventSetName
- 이벤트 세트의 프로그램명listenerType
- 청취자 인터페이스의 클래스listenerMethods
- 타겟 청취자내의 개개의 이벤트 처리 메소드에 대해 기술하는 Method 객체의 배열addListenerMethod
- 이벤트 청취자 객체의 등록에 사용되는 이벤트 소스상의 메소드removeListenerMethod
- 이벤트 청취자 객체의 등록 해제에 사용되는 이벤트 소스상의 메소드getListenerMethod
- 이벤트 청취자 객체의 배열에의 액세스에
사용되는 이벤트 소스상의 메소드
IntrospectionException
- 인트로스페크션중에 예외가
발생했을 경우public EventSetDescriptor(String eventSetName, Class <? > listenerType, MethodDescriptor [] listenerMethodDescriptors, Method addListenerMethod, Method removeListenerMethod) throws IntrospectionException
eventSetName
- 이벤트 세트의 프로그램명listenerType
- 청취자 인터페이스의 클래스listenerMethodDescriptors
- 타겟 청취자내의 개개의 이벤트 처리 메소드에 대해 기술하는 MethodDescriptor
객체의 배열addListenerMethod
- 이벤트 청취자 객체의 등록에 사용되는 이벤트 소스상의 메소드removeListenerMethod
- 이벤트 청취자 객체의 등록 해제에 사용되는 이벤트 소스상의 메소드
IntrospectionException
- 인트로스페크션중에 예외가
발생했을 경우메소드의 상세 |
---|
public Class <? > getListenerType()
public Method [] getListenerMethods()
public MethodDescriptor [] getListenerMethodDescriptors()
MethodDescriptor
를 가져옵니다.
MethodDescriptor
객체의 배열public Method getAddListenerMethod()
public Method getRemoveListenerMethod()
public Method getGetListenerMethod()
public void setUnicast(boolean unicast)
unicast
- 이벤트 세트가 uni-cast인 경우는 truepublic boolean isUnicast()
public void setInDefaultEventSet(boolean inDefaultEventSet)
inDefaultEventSet
- 이벤트 세트가 디폴트세트
인 경우는 true
,
그 이외의 경우는 false
public boolean isInDefaultEventSet()
true
. 디폴트는 true
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.