| |||||||||
| 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.
| Field Summary | |
final static String | MULTI_VALUE_TAG |
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. |
PropertyEditor | getPropertyEditor()Returns the editor for this property if it's specified through setPropertyEditor, otherwise returns null. |
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. |
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
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 PropertyEditor getPropertyEditor()
null.
If the editor class is specified by the
#IdeInspectorProperty(Class, Class) then returns
this editor, otherwise looks for the editor of this property type in
PropertyEditorManager.public 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 abstract void setValue(Object value)
Object new value of the propertypublic void update()
| Association Links |
to Class java.lang.String
to Class java.lang.Class
to Class java.lang.Class
to Class java.beans.PropertyEditor
to Class java.beans.PropertyChangeSupport
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||