|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Objectjava.beans.PropertyEditorSupport
public class PropertyEditorSupport
프로퍼티 에디터를 구축하기 위한 지원 클래스입니다.
base class 또는 위양원으로서 사용할 수 있습니다.
생성자 의 개요 | |
---|---|
PropertyEditorSupport ()
PropertyEditorSupport 객체를 구축합니다. |
|
PropertyEditorSupport (Object source)
PropertyEditorSupport 객체를 구축합니다. |
메소드의 개요 | |
---|---|
void |
addPropertyChangeListener (PropertyChangeListener listener)
PropertyChange 이벤트의 청취자를 등록합니다. |
void |
firePropertyChange ()
관련하는 모든 청취자를 변경한 것을 보고합니다. |
String |
getAsText ()
편집하는 사용자에게로의 표시에 적절한 캐릭터 라인으로서 프로퍼티치를 가져옵니다. |
Component |
getCustomEditor ()
PropertyEditor 는, 프로퍼티치를 편집하는 완전한 커스텀 컴퍼넌트를 제공할 수가 있습니다. |
String |
getJavaInitializationString ()
Java 코드를 생성해 프로퍼티의 값을 설정할 경우에 사용합니다. |
Object |
getSource ()
이벤트의 소스로서 사용되는 Bean 를 돌려줍니다. |
String [] |
getTags ()
프로퍼티치가 기존의 태그 첨0 보다 작은 값세트의 1 개가 아니면 안되는 경우에, 태그 첨0 보다 작은 값의 배열을 돌려줍니다. |
Object |
getValue ()
프로퍼티의 값을 가져옵니다. |
boolean |
isPaintable ()
클래스가 paintValue 메소드를 받을지 어떨지를 판정합니다. |
void |
paintValue (Graphics gfx,
Rectangle box)
값의 표현을 화면의 지정된 영역에 draw 합니다. |
void |
removePropertyChangeListener (PropertyChangeListener listener)
PropertyChange 이벤트의 청취자를 삭제합니다. |
void |
setAsText (String text)
지정된 String (캐릭터 라인)를 해석해 프로퍼티치를 설정합니다. |
void |
setSource (Object source)
소스 Bean 를 설정합니다. |
void |
setValue (Object value)
편집하는 객체를 설정 또는 변경합니다. |
boolean |
supportsCustomEditor ()
propertyEditor 가 커스텀 에디터를 지원할 수 있을지 어떨지를 판정합니다. |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
생성자 의 상세 |
---|
public PropertyEditorSupport()
PropertyEditorSupport
객체를 구축합니다.
public PropertyEditorSupport(Object source)
PropertyEditorSupport
객체를 구축합니다.
source
- 이벤트를 트리거하기 위해서 사용되는 소스메소드의 상세 |
---|
public Object getSource()
PropertyEditorSupport
의 인스턴스가 돌려주어집니다.
public void setSource(Object source)
소스 Bean 는, 프로퍼티 변경의 이벤트의 소스로서 사용됩니다. 이 소스는, 정보를 제공하는 목적만으로 사용해, PropertyEditor 로 변경하지 말아 주세요.
source
- 이벤트에 사용되는 소스 객체public void setValue(Object value)
PropertyEditor
내의 setValue
value
- 편집 대상의 새로운 타겟 객체. 이 객체는
PropertyEditor 로 변경하는 것이 아니라,
PropertyEditor 로 새로운 객체를 작성해
변경된 값을 보존한다public Object getValue()
PropertyEditor
내의 getValue
public boolean isPaintable()
PropertyEditor
내의 isPaintable
public void paintValue(Graphics gfx, Rectangle box)
PropertyEditor 가 draw 요구를 받아들이지 않는 경우 (isPaintable 를 참조), 이 메소드는 아무것도 실시하지 않습니다.
PropertyEditor
내의 paintValue
gfx
- draw 되는 그래픽 객체box
- 그래픽 객체를 draw 하는 구형public String getJavaInitializationString()
결과예로서 「2」, 「new Color(127,127,34)」, 「Color.orange」등이 있습니다.
PropertyEditor
내의 getJavaInitializationString
public String getAsText()
PropertyEditor
내의 getAsText
캐릭터 라인으로서 값을 표현할 수 없는 경우는 null
null 이외의 값이 돌려주어지면(자), PropertyEditor 는 그 캐릭터 라인을 해석해 setAsText()에 되돌린다
public void setAsText(String text) throws IllegalArgumentException
PropertyEditor
내의 setAsText
text
- 해석되는 캐릭터 라인
IllegalArgumentException
public String [] getTags()
PropertyEditor
내의 getTags
public Component getCustomEditor()
getCustomEditor 를 호출하는 고레벨인 코드에서는, 컴퍼넌트를 보다 큰 프로퍼티 시트에 짜넣거나 독자적인 다이얼로그에 배치하거나 할 수가 있습니다.
PropertyEditor
내의 getCustomEditor
public boolean supportsCustomEditor()
PropertyEditor
내의 supportsCustomEditor
public void addPropertyChangeListener(PropertyChangeListener listener)
PropertyEditor
내의 addPropertyChangeListener
listener
- PropertyChange 이벤트가 트리거되었을 때에 불려 가는 객체public void removePropertyChangeListener(PropertyChangeListener listener)
PropertyEditor
내의 removePropertyChangeListener
listener
- 삭제되는 PropertyChange 청취자public void firePropertyChange()
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.