com.togethersoft.openapi.ide.inspector.util.property
Class ReadOnlyProperty

java.lang.Object
  |
  +--java.beans.FeatureDescriptor
        |
        +--com.togethersoft.openapi.ide.inspector.IdeInspectorProperty
              |
              +--com.togethersoft.openapi.ide.inspector.util.property.ReadOnlyProperty

public class ReadOnlyProperty
extends IdeInspectorProperty

Represents read-only inspector property.

Author:
TogetherSoft

Fields inherited from class com.togethersoft.openapi.ide.inspector.IdeInspectorProperty
MULTI_VALUE_TAG, PROP_VALUE, UNDEFINED_VALUE

Constructor Summary
ReadOnlyProperty(Object value, Class valueType)
           Constructs ReadOnlyProperty with specified value and value type.

Method Summary
 booleancanSetValue(Object value)
           Checks whether it is possible to set new value to this property.
 ObjectgetValue()
           Returns value of this property.
 booleanisReadable()
           Checks whether it is possible to read value of this property.
 booleanisWritable()
           Checks whether it is possible to write value to this property.
 voidsetValue(Object value)
           Stub method.

Methods inherited from class com.togethersoft.openapi.ide.inspector.IdeInspectorProperty
addPropertyChangeListener, firePropertyChange, getPropertyEditor, getValueType, removePropertyChangeListener, setPropertyEditor, update

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

Constructor Detail

ReadOnlyProperty

public ReadOnlyProperty(Object value, Class valueType)
Constructs ReadOnlyProperty with specified value and value type.
Parameters:
value - Value of property
valueType - Type of property
Method Detail

canSetValue

public boolean canSetValue(Object value)
Checks whether it is possible to set new value to this property.
Parameters:
value - Value to be checked
Returns: Always false

getValue

public Object getValue()
Returns value of this property.
Returns: Value of this property

isReadable

public boolean isReadable()
Checks whether it is possible to read value of this property.
Returns: Always true

isWritable

public boolean isWritable()
Checks whether it is possible to write value to this property.
Returns: Always true

setValue

public void setValue(Object value)
Stub method. Does nothing.