ilog.views.maps.beans.editor
Class IlvDecorationPropertyEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by ilog.views.util.beans.editor.IlvTaggedValueEditor
          extended by ilog.views.maps.beans.editor.IlvDecorationPropertyEditor
All Implemented Interfaces:
ilog.views.util.beans.editor.IlvCSSPropertyEditor, ilog.views.util.beans.editor.IlvInternationalizedPropertyEditor, PropertyEditor

public class IlvDecorationPropertyEditor
extends ilog.views.util.beans.editor.IlvTaggedValueEditor

A property editor to edit decorations.

Since:
JViews 7.5

Nested Class Summary
static class IlvDecorationPropertyEditor.PredefinedDecoration
          The editor will manage a table of PredefinedDecoration instances attached to a single unique String key.
 
Constructor Summary
IlvDecorationPropertyEditor()
          Creates a new IlvDecorationPropertyEditor.
IlvDecorationPropertyEditor(boolean ignoreCase)
          Creates a new IlvDecorationPropertyEditor.
 
Method Summary
protected  String[] createStringValues()
          Returns a new array of Strings representing Java expressions that evaluate to the values of the property.
protected  String[] createTags()
          Returns a new array of Strings representing the values of the property.
protected  Object[] createValues()
          Returns a new array of Objects representing the values of the property.
 String getAsText()
          Returns the element of getTags() that corresponds to the current value.
protected static IlvPathDecoration[] getDecorationList()
          Returns the table of possible decorations.
 String[] getTags()
          Returns the tags for the editor.
 
Methods inherited from class ilog.views.util.beans.editor.IlvTaggedValueEditor
createLocalizedTextValues, getAsCSSValue, getAsLocalizedText, getJavaInitializationString, getValuesAsLocalizedText, init, setAsLocalizedText, setAsText
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getSource, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.beans.PropertyEditor
addPropertyChangeListener, getCustomEditor, getValue, isPaintable, paintValue, removePropertyChangeListener, setValue, supportsCustomEditor
 
Methods inherited from interface java.beans.PropertyEditor
addPropertyChangeListener, getCustomEditor, getValue, isPaintable, paintValue, removePropertyChangeListener, setValue, supportsCustomEditor
 

Constructor Detail

IlvDecorationPropertyEditor

public IlvDecorationPropertyEditor()
Creates a new IlvDecorationPropertyEditor.


IlvDecorationPropertyEditor

public IlvDecorationPropertyEditor(boolean ignoreCase)
Creates a new IlvDecorationPropertyEditor.

Parameters:
ignoreCase - If set to true, case is ignored to look up the constant value corresponding to a specified tag.
Since:
JViews 7.5
Method Detail

getAsText

public String getAsText()
Returns the element of getTags() that corresponds to the current value.

Specified by:
getAsText in interface PropertyEditor
Overrides:
getAsText in class ilog.views.util.beans.editor.IlvTaggedValueEditor
See Also:
IlvTaggedValueEditor.getAsText()

createTags

protected String[] createTags()
Returns a new array of Strings representing the values of the property. For instance, {"White", "Red", "Yellow"}.

If the method IlvTaggedValueEditor.getAsCSSValue() is not overridden, this method is used for representing the values in a CSS style sheet. Therefore, this method should not return localized strings.

This method is also used for representing the values in a property sheet. Therefore, this method should not return strings starting with a full Java class name.

Backward compatibility constraint: If the set of tags of a class changes, you need to make sure that the getAsText method still accepts the older values. This is needed for reading old CSS files.

Specified by:
createTags in class ilog.views.util.beans.editor.IlvTaggedValueEditor
See Also:
IlvTaggedValueEditor.createTags()

createStringValues

protected String[] createStringValues()
Returns a new array of Strings representing Java expressions that evaluate to the values of the property. For instance, {"ilog.views.IlvManagerMagViewInteractor.Filled", "ilog.views.IlvManagerMagViewInteractor.Wired"}.

This method in used in the implementation of IlvTaggedValueEditor.getJavaInitializationString().

Specified by:
createStringValues in class ilog.views.util.beans.editor.IlvTaggedValueEditor
See Also:
IlvTaggedValueEditor.createStringValues()

getDecorationList

protected static IlvPathDecoration[] getDecorationList()
Returns the table of possible decorations.

Returns:
Returns the table of possible decorations.

createValues

protected Object[] createValues()
Returns a new array of Objects representing the values of the property. For instance, {Color.black, Color.gray, Color.white}

Specified by:
createValues in class ilog.views.util.beans.editor.IlvTaggedValueEditor
See Also:
IlvTaggedValueEditor.createValues()

getTags

public String[] getTags()
Returns the tags for the editor.

Specified by:
getTags in interface PropertyEditor
Overrides:
getTags in class ilog.views.util.beans.editor.IlvTaggedValueEditor
Since:
JViews 8.1


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.