| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.beans.FeatureDescriptor
|
+--com.togethersoft.openapi.ide.inspector.IdeInspectorProperty
Class IdeInspectorProperty represents a property inside an inspector component.
| Inner Class Summary | |
public static class | IdeInspectorProperty.Options This interface contains some constants used as keys of the property configuration options. |
| Field Summary | |
final static String | MULTI_VALUE_TAG |
private PropertyEditor | myEditor |
private Class | myEditorClass |
private PropertyChangeSupport | myPropertyChangeSupport |
private Hashtable | myServices |
private Class | myValueType |
final static String | PROP_VALUE |
final static Object | UNDEFINED_VALUE |
| Constructor Summary | |
IdeInspectorProperty(Class valueType)Constructs a property with the specified type and without editor class. | |
IdeInspectorProperty(Class valueType, Class editorClass)Constructs a property with specified type and editor class. | |
| Method Summary | |
void | addPropertyChangeListener(PropertyChangeListener listener)Adds specified listener for the PropertyChange event. |
abstract boolean | canSetValue(Object value)Checks for the possibily to set specified value for this property. |
protected void | firePropertyChange(String propertyName, Object oldValue, Object newValue)Initiates the event of updating the specified property with the new value passed as a parameter. |
String | getModelPropertyName()This method returns name of the underlying model property (if any) accessed via this inspector property. |
PropertyEditor | getPropertyEditor()Returns the editor for this property if it's specified through setPropertyEditor, otherwise returns null. |
Object | getService(Class clazz)Returns an Object that provides service for this proprety. |
abstract Object | getValue()Returns the value of this property. |
Class | getValueType()Returns Type of value of this property. |
abstract boolean | isReadable()Checks if it is possible to read the value of this property. |
abstract boolean | isWritable()Checks if it is possible to write the value for this property. |
void | removePropertyChangeListener(PropertyChangeListener listener)Removes specified listener for PropertyChange event. |
void | setPropertyEditor(PropertyEditor editor)Sets specified editor for this property. |
void | setService(Class clazz, Object service)Adds new service for this proprety. |
abstract void | setValue(Object value)Sets value for this property. |
void | update()Updates this inspector property. |
| Methods inherited from class java.beans.FeatureDescriptor |
getName, setName, getDisplayName, setDisplayName, isExpert, setExpert, isHidden, setHidden, isPreferred, setPreferred, getShortDescription, setShortDescription, setValue, getValue, attributeNames |
| Methods inherited from class java.lang.Object |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize |
| Field Detail |
public final static String MULTI_VALUE_TAG
private PropertyEditor myEditor
private Class myEditorClass
private PropertyChangeSupport myPropertyChangeSupport
private Hashtable myServices
private Class myValueType
public final static String PROP_VALUE
public final static Object UNDEFINED_VALUE
| Constructor Detail |
public IdeInspectorProperty(Class valueType)
Class that defines the property typepublic IdeInspectorProperty(Class valueType, Class editorClass)
Class that defines the property typeClass which will be used to edit this property| Method Detail |
public void addPropertyChangeListener(PropertyChangeListener listener)
PropertyChange event.PropertyChangeListener to be addedpublic abstract boolean canSetValue(Object value)
Object Value to be checkedtrue if this value is OK, false otherwiseprotected void firePropertyChange(String propertyName, Object oldValue, Object newValue)
String name of the property to be changedObject value to be changedObject new value of this propertypublic String getModelPropertyName()
getName() which returns name of this inspector
getDisplayName() which returns label for
IdeInspectorProperty class have no particular underlying
null and should be overwritten
public PropertyEditor getPropertyEditor()
null.
PropertyEditorManager.public Object getService(Class clazz)
Object that provides service for this proprety.
HashTable of services the key for the service object is the class of this object.Class that provides the serviceObject instance of this classpublic abstract Object getValue()
Object.public Class getValueType()
Class that defines the type of this valuepublic abstract boolean isReadable()
true if it is possible, false otherwise.public abstract boolean isWritable()
true if it is possible, false otherwise.public void removePropertyChangeListener(PropertyChangeListener listener)
PropertyChange event.PropertyChangeListener to be removedpublic void setPropertyEditor(PropertyEditor editor)
PropertyEditor new editor for this property.public void setService(Class clazz, Object service)
Class that provides the serviceObject instance of this classpublic abstract void setValue(Object value)
Object new value of the propertypublic void update()
| Association Links |
to Class java.lang.String
to Class java.lang.Object
to Class java.lang.Class
to Class java.lang.Class
to Class java.beans.PropertyEditor
to Class java.beans.PropertyChangeSupport
to Class java.util.Hashtable
| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||