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

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

public class RwiInspectorMultipleStringProperty
extends RwiInspectorProperty

Suited to works with multiple string properties of selected RwiElements (RwiRefernces).

Author:
TogetherSoft

Fields inherited from class com.togethersoft.openapi.ide.inspector.util.property.RwiInspectorProperty
myEnforceReadOnly, myPropertyName, myReadableFlag, myRwiPropertyMaps, myValue, myWritableFlag

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

Constructor Summary
 RwiInspectorMultipleStringProperty(RwiPropertyMap[] rwiPropertyMaps, String propertyName)
           Constructs RwiInspectorMultipleStringProperty without a property editor class.
 RwiInspectorMultipleStringProperty(RwiPropertyMap[] rwiPropertyMaps, String propertyName, Class editorClass)
           Constructs RwiInspectorMultipleStringProperty with a property editor class.
 RwiInspectorMultipleStringProperty(RwiPropertyMap rwiPropertyMap, String propertyName)
           Constructs RwiInspectorMultipleStringProperty without a property editor class for the only RwiElement (RwiReference).
 RwiInspectorMultipleStringProperty(RwiPropertyMap rwiPropertyMap, String propertyName, Class editorClass)
           Constructs RwiInspectorMultipleStringProperty with a property editor class for the only RwiElement (RwiReference).
 protected RwiInspectorMultipleStringProperty(RwiPropertyMap[] rwiPropertyMaps, String propertyName, Class valueType, Class editorClass)
           Constructs RwiInspectorMultipleStringProperty with a property editor class.

Method Summary
 booleancanSetValue(Object value)
           Checks whether it is possible to set specified value to this property.
 ObjectgetValue()
           Returns Vector with RwiProperties taken from corresponding RwiPropertyEnumeration.
 protected voidloadValue()
           Loads property value of selected RwiElements (RwiReferences) from RwiModel and stores it.
 protected voidstoreValue()
           Stores property value of selected RwiElements (RwiReferences) to RwiModel.

Methods inherited from class com.togethersoft.openapi.ide.inspector.util.property.RwiInspectorProperty
enforceReadOnly, isDeleted, isReadable, isWritable, setValue, update

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

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

RwiInspectorMultipleStringProperty

public RwiInspectorMultipleStringProperty(RwiPropertyMap[] rwiPropertyMaps, String propertyName)
Constructs RwiInspectorMultipleStringProperty without a property editor class.
Parameters:
rwiPropertyMaps - Array of selected RwiElements or RwiReferences
propertyName - Name of property of selected elements

RwiInspectorMultipleStringProperty

public RwiInspectorMultipleStringProperty(RwiPropertyMap[] rwiPropertyMaps, String propertyName, Class editorClass)
Constructs RwiInspectorMultipleStringProperty with a property editor class.
Parameters:
rwiPropertyMaps - Array of selected RwiElements or RwiReferences
propertyName - Name of property of selected elements
editorClass - Class which will be used as the editor for this property

RwiInspectorMultipleStringProperty

public RwiInspectorMultipleStringProperty(RwiPropertyMap rwiPropertyMap, String propertyName)
Constructs RwiInspectorMultipleStringProperty without a property editor class for the only RwiElement (RwiReference).
Parameters:
rwiPropertyMap - Selected RwiElement or RwiReference
propertyName - Name of property of selected elements

RwiInspectorMultipleStringProperty

public RwiInspectorMultipleStringProperty(RwiPropertyMap rwiPropertyMap, String propertyName, Class editorClass)
Constructs RwiInspectorMultipleStringProperty with a property editor class for the only RwiElement (RwiReference).
Parameters:
rwiPropertyMap - Selected RwiElement or RwiReference
propertyName - Name of property of selected elements
editorClass - Class which will be used as the editor for this property

RwiInspectorMultipleStringProperty

protected RwiInspectorMultipleStringProperty(RwiPropertyMap[] rwiPropertyMaps, String propertyName, Class valueType, Class editorClass)
Constructs RwiInspectorMultipleStringProperty with a property editor class.
Parameters:
rwiPropertyMaps - Array of selected RwiElements or RwiReferences
propertyName - Name of property of selected elements
valueType - Class which is the type of property value
editorClass - Class which will be used as the editor for this property
Method Detail

canSetValue

public boolean canSetValue(Object value)
Checks whether it is possible to set specified value to this property.
Parameters:
object - Value to be checked
Returns: true if so, false otherwise

getValue

public Object getValue()
Returns Vector with RwiProperties taken from corresponding RwiPropertyEnumeration. This is done for the sake of simplicity since RwiPropertyEnumeration is not cloneable (design 'feature' ;)) and when you don't have RwiElement (if you do, you can get enumeration several times) once you traversed the enumeration, it's dead...

loadValue

protected void loadValue()
Loads property value of selected RwiElements (RwiReferences) from RwiModel and stores it.

storeValue

protected void storeValue()
Stores property value of selected RwiElements (RwiReferences) to RwiModel.