|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Extension
The Extension interface is used when registering a concrete implementation of an interface for a given property type for use by the InspectorWindow. 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 InspectorWindow 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()
Deprecated. No longer used. Should always return null. |
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()
Deprecated. No longer used. Should always return true. |
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 InspectorWindow. |
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 |
---|
boolean isInline()
getInitializer()
,
getJavaInitializationString()
java.lang.String getInitializer()
isInline()
java.lang.String getJavaInitializationString()
isInline()
java.lang.String getDisplayString()
isInline()
java.lang.String[] getTags()
getImplementationClasses()
void setSelectedTag(java.lang.String tag)
tag
- the selected tag.getTags()
boolean supportsCustomEditor()
getTags()
,
isInline()
,
setSelectedTag(java.lang.String)
,
setValue(java.lang.Object)
java.awt.Component getCustomEditor()
getTags()
,
setSelectedTag(java.lang.String)
,
setValue(java.lang.Object)
java.lang.Object getValue()
getImplementationClasses()
void setValue(java.lang.Object value)
value
- the current value of the property.getImplementationClasses()
java.lang.Class[] getImplementationClasses()
void addPropertyChangeListener(java.beans.PropertyChangeListener l)
l
- the listener to add.void removePropertyChangeListener(java.beans.PropertyChangeListener l)
l
- this listener to remove.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |