com.togethersoft.openapi.ide.inspector.util.editors
Class PropertyMapMultiValueElementChooserEditor

java.lang.Object
  |
  +--java.beans.PropertyEditorSupport
        |
        +--com.togethersoft.openapi.ide.inspector.util.editors.SwingEditorSupport
              |
              +--com.togethersoft.openapi.ide.inspector.util.editors.ExtendedEditor
                    |
                    +--com.togethersoft.openapi.ide.inspector.util.editors.MultiValueEditor
                          |
                          +--com.togethersoft.openapi.ide.inspector.util.editors.PropertyMapMultiValueElementChooserEditor

public class PropertyMapMultiValueElementChooserEditor
extends MultiValueEditor

Represents the editor for the PropertyMap as the element chooser dialog.

Author:
TogetherSoft
See Also: MultiValueElementChooserUI

Fields inherited from class com.togethersoft.openapi.ide.inspector.util.editors.MultiValueEditor
myValuesVector

Fields inherited from class com.togethersoft.openapi.ide.inspector.util.editors.SwingEditorSupport
MEDIUM_DIMENSION, panel, SMALL_DIMENSION

Constructor Summary
PropertyMapMultiValueElementChooserEditor(RwiElement rwiElement, String propertyName, int selectorType)
           Constructs this editor which will be represented on UI as the MultiValueElementChooser.
PropertyMapMultiValueElementChooserEditor(RwiElement rwiElement, String propertyName, UnaryCondition displayFilter, UnaryCondition classFilter, boolean includeCurrentDiagram, UnaryCondition multiple, UnaryOperation title)
           Constructs this editor which will be represented on UI as the MultiValueElementChooser.

Method Summary
 StringconvertValueToString(Object value)
           Convert given PropertyMap to the String representation.
 protected MultiValueUIgetUI()
           
 ObjectgetValue()
           Returns value of this editor
 voidsetValue(Object value)
           Sets given value to the editor.

Methods inherited from class com.togethersoft.openapi.ide.inspector.util.editors.MultiValueEditor
convertAtomicValueToString, convertStringToAtomicValue, doAction, editingCanceled, editingStopped, filterValues

Methods inherited from class com.togethersoft.openapi.ide.inspector.util.editors.ExtendedEditor
getChooserType, getInnerEditor

Methods inherited from class com.togethersoft.openapi.ide.inspector.util.editors.SwingEditorSupport
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCustomEditor, init, removeCellEditorListener, setAlignment, supportsCustomEditor

Methods inherited from class java.beans.PropertyEditorSupport
isPaintable, paintValue, getJavaInitializationString, getAsText, setAsText, getTags, addPropertyChangeListener, removePropertyChangeListener, firePropertyChange

Methods inherited from class java.lang.Object
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize

Constructor Detail

PropertyMapMultiValueElementChooserEditor

public PropertyMapMultiValueElementChooserEditor(RwiElement rwiElement, String propertyName, int selectorType)
Constructs this editor which will be represented on UI as the MultiValueElementChooser.
Parameters:
rwiElement - RWI element which has RwiPropertyMap
propertyName - name of this RwiPropertyMap
selectorType - predefined configuration of filters
See Also:
MultiValueElementChooserUI, IdeSelectorDialogType

PropertyMapMultiValueElementChooserEditor

public PropertyMapMultiValueElementChooserEditor(RwiElement rwiElement, String propertyName, UnaryCondition displayFilter, UnaryCondition classFilter, boolean includeCurrentDiagram, UnaryCondition multiple, UnaryOperation title)
Constructs this editor which will be represented on UI as the MultiValueElementChooser.
Parameters:
rwiElement - RWI element which has RwiPropertyMap
propertyName - name of this RwiPropertyMap
displayFilter - filters contents of the trees
classFilter - filters elements which can be choosen
includeCurrentDiagram - if true then the first tree will be started from the current diagram
multiple - if true then this chooser will work for the several selected RwiElements
title - calculates the dialog box title
See Also:
MultiValueElementChooserUI, IdeSelectorDialogType
Method Detail

convertValueToString

public String convertValueToString(Object value)
Convert given PropertyMap to the String representation.
Returns: converted PropertyMap, or the empty String if given value is not PropertyMap or equals to null.

getUI

protected MultiValueUI getUI()

getValue

public Object getValue()
Returns value of this editor

setValue

public void setValue(Object value)
Sets given value to the editor.
Parameters:
value - is instance of the PropertyMap

Association Links

to Class com.togethersoft.openapi.ide.inspector.util.editors.MultiValueUI