|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Extension interface is used when registering a concrete implementation of an interface for a given property type for use by the Property Inspector Window. For example; an Extension might be written to represent a concrete class named MyBorder which implements javax.swing.border.Border such that the user may set the border property of a Swing control to a new instance of MyBorder directly from the Property Inspector Window without first having to hand code the declaration such that it would appear in the PropertyEditor list of available Border instances.
Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Add a PropertyChangeListener such that it will be notified of any change made to the value originally set upon this Extension. |
java.awt.Component |
getCustomEditor()
Get a custom editor instance for use by the Property Inspector Window when editing a property whose value is an instance of an implementation class represented by this Extension, or when the user has selected a tag provided by this Extension. |
java.lang.String |
getDisplayString()
Get a possibly abbreviated string representation of the value for display in the PropertyEditor when the value of a given property is an inline expression resulting in an instance of one of the implementation classes represented by this Extension. |
java.lang.Class[] |
getImplementationClasses()
Get the one or more concrete implementation classes being represented by this Extension. |
java.lang.String |
getInitializer()
Get the expression to be generated as the initializer of a new data member, a reference to which is to be generated as the argument of the property setting. |
java.lang.String |
getJavaInitializationString()
Get the java source code to be generated verbatim as the argument of the property setting. |
java.lang.String[] |
getTags()
Get an array of Strings to be presented to the user as selectable values from the Property Inspector Window. |
java.lang.Object |
getValue()
Get the value to be set upon the property. |
boolean |
isInline()
Determine whether or not a data member should be declared and initialized. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Remove a PropertyChangeListener from this Extension. |
void |
setSelectedTag(java.lang.String tag)
Set the tag selected by the user via the Property Inspector Window. |
void |
setValue(java.lang.Object value)
Receive the current value of the property. |
boolean |
supportsCustomEditor()
Determine whether or not a custom editor is available to the Property Inspector Window for custom editing when the property value is currently set to an inline instance of an implementation class represented by this Extension, or when the user has selected a tag provided by this Extension. |
Method Detail |
public boolean isInline()
getInitializer()
,
getJavaInitializationString()
public java.lang.String getInitializer()
isInline()
public java.lang.String getJavaInitializationString()
isInline()
public java.lang.String getDisplayString()
isInline()
public java.lang.String[] getTags()
getImplementationClasses()
public void setSelectedTag(java.lang.String tag)
getTags()
public boolean supportsCustomEditor()
getTags()
,
isInline()
,
setSelectedTag(java.lang.String)
,
setValue(java.lang.Object)
public java.awt.Component getCustomEditor()
getTags()
,
setSelectedTag(java.lang.String)
,
setValue(java.lang.Object)
public java.lang.Object getValue()
getImplementationClasses()
public void setValue(java.lang.Object value)
getImplementationClasses()
public java.lang.Class[] getImplementationClasses()
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©1997, 2003, Oracle. All rights reserved.